Package nl.gx.webmanager.cms.core
Class ContentItemVersionId
- java.lang.Object
-
- nl.gx.webmanager.cms.core.ContentItemVersionId
-
public class ContentItemVersionId extends Object
This class represents the id of a content item version.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PAGESECTIONVERSION_TYPE
String that represents a page section version type.static String
PAGEVERSION_TYPE
String that represents a page version type.
-
Constructor Summary
Constructors Constructor Description ContentItemVersionId(String fullContentItemVersionId)
Constructs a new content item version id from a full content item id using the syntax [type]-[id] (i.e.ContentItemVersionId(String type, int id)
Constructs a new content item version id from a type and id (i.e.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
Returns the id of the content item version associated with this id, as returned byPageVersion.getId()
orWrapper.getId()
.String
getType()
Returns a String representing the type of the content item version associated with this id.Class<?>
getWrapperClass()
Returns the wrapper class needed to create a wrapper for this content item version usingSession.getWrapper(int, Class)
.String
toString()
-
-
-
Field Detail
-
PAGEVERSION_TYPE
public static final String PAGEVERSION_TYPE
String that represents a page version type.- See Also:
- Constant Field Values
-
PAGESECTIONVERSION_TYPE
public static final String PAGESECTIONVERSION_TYPE
String that represents a page section version type.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContentItemVersionId
public ContentItemVersionId(String fullContentItemVersionId) throws ContentDomainException
Constructs a new content item version id from a full content item id using the syntax [type]-[id] (i.e. pageversion-24356).- Parameters:
fullContentItemVersionId
- the full content item version id- Throws:
ContentDomainException
- In case the provided identifier does not conform to the syntax [type]-[id]
-
ContentItemVersionId
public ContentItemVersionId(String type, int id)
Constructs a new content item version id from a type and id (i.e. type is 'pageversion' and id is 24356)- Parameters:
type
- The type to construct the content item id withid
- The id of the content item version to construct
-
-
Method Detail
-
getWrapperClass
public Class<?> getWrapperClass()
Returns the wrapper class needed to create a wrapper for this content item version usingSession.getWrapper(int, Class)
.- Returns:
- the wrapper class needed to create a wrapper
- Since:
- 10.34.0
-
getType
public String getType()
Returns a String representing the type of the content item version associated with this id. The type is either 'pageversion', 'pagesectionversion' or the content type of the media item (as returned byMediaItemVersion.getContentType()
.- Returns:
- the type of the content item version associated with this id.
- Since:
- 10.34.0
-
getId
public int getId()
Returns the id of the content item version associated with this id, as returned byPageVersion.getId()
orWrapper.getId()
.- Returns:
- the id of the content item version associated with this id
- Since:
- 10.34.0
-
-