Package com.enonic.xp.repository
Class RepositorySegmentUtils
- java.lang.Object
-
- com.enonic.xp.repository.RepositorySegmentUtils
-
public class RepositorySegmentUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intBLOB_TYPE_LEVELstatic intREPOSITORY_LEVEL
-
Constructor Summary
Constructors Constructor Description RepositorySegmentUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanhasBlobTypeLevel(Segment segment, SegmentLevel blobType)static booleanhasRepository(Segment segment, RepositoryId repositoryId)Deprecated.static RepositoryIdtoRepositoryId(Segment segment)static SegmenttoSegment(RepositoryId repositoryId, SegmentLevel blobType)static SegmentLeveltoSegmentLevel(RepositoryId repositoryId)
-
-
-
Field Detail
-
REPOSITORY_LEVEL
public static final int REPOSITORY_LEVEL
- See Also:
- Constant Field Values
-
BLOB_TYPE_LEVEL
public static final int BLOB_TYPE_LEVEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
toSegmentLevel
public static SegmentLevel toSegmentLevel(RepositoryId repositoryId)
-
toSegment
public static Segment toSegment(RepositoryId repositoryId, SegmentLevel blobType)
-
toRepositoryId
public static RepositoryId toRepositoryId(Segment segment)
-
hasRepository
@Deprecated public static boolean hasRepository(Segment segment, RepositoryId repositoryId)
Deprecated.
-
hasBlobTypeLevel
public static boolean hasBlobTypeLevel(Segment segment, SegmentLevel blobType)
-
-