Class ContentItemVersionId


  • public class ContentItemVersionId
    extends Object
    This class represents the id of a content item version.
    • 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 with
        id - 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 using Session.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 by MediaItemVersion.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 by PageVersion.getId() or Wrapper.getId().
        Returns:
        the id of the content item version associated with this id
        Since:
        10.34.0