Package com.enonic.xp.repository
Class RepositorySegmentUtils
- java.lang.Object
-
- com.enonic.xp.repository.RepositorySegmentUtils
-
public class RepositorySegmentUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
BLOB_TYPE_LEVEL
static int
REPOSITORY_LEVEL
-
Constructor Summary
Constructors Constructor Description RepositorySegmentUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasBlobTypeLevel(Segment segment, SegmentLevel blobType)
static boolean
hasRepository(Segment segment, RepositoryId repositoryId)
static RepositoryId
toRepositoryId(Segment segment)
static Segment
toSegment(RepositoryId repositoryId, SegmentLevel blobType)
static SegmentLevel
toSegmentLevel(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
public static boolean hasRepository(Segment segment, RepositoryId repositoryId)
-
hasBlobTypeLevel
public static boolean hasBlobTypeLevel(Segment segment, SegmentLevel blobType)
-
-