Class RepositoryItem

  • All Implemented Interfaces:
    java.io.Serializable

    public class RepositoryItem
    extends java.lang.Object
    implements java.io.Serializable
    RepositoryItemStatus provides status information for a repository folder item.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RepositoryItem()
      Default constructor needed for de-serialization
        RepositoryItem​(java.lang.String folderPath, java.lang.String itemName, java.lang.String fileID, int itemType, java.lang.String contentType, int version, long versionTime)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      Returns content class
      java.lang.String getFileID()  
      int getItemType()
      Returns type of item.
      java.lang.String getName()
      Returns the item name.
      java.lang.String getParentPath()
      Returns path of the parent folder containing this item.
      java.lang.String getPathName()
      Returns the folder item path within the repository.
      int getVersion()
      Returns the current version of the item or -1 if versioning not supported.
      long getVersionTime()
      Returns the time (UTC milliseconds) when the current version was created.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • folderPath

        protected java.lang.String folderPath
      • itemName

        protected java.lang.String itemName
      • fileID

        protected java.lang.String fileID
      • itemType

        protected int itemType
      • contentType

        protected java.lang.String contentType
      • version

        protected int version
      • versionTime

        protected long versionTime
    • Constructor Detail

      • RepositoryItem

        protected RepositoryItem()
        Default constructor needed for de-serialization
      • RepositoryItem

        public RepositoryItem​(java.lang.String folderPath,
                              java.lang.String itemName,
                              java.lang.String fileID,
                              int itemType,
                              java.lang.String contentType,
                              int version,
                              long versionTime)
        Constructor.
        Parameters:
        folderPath - path of folder containing item.
        itemName - name of item
        itemType - type of item (FILE or DATABASE)
        contentType - content type associated with item
        version - repository item version or -1 if versioning not supported
        versionTime - version creation time
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the item name.
      • getPathName

        public java.lang.String getPathName()
        Returns the folder item path within the repository.
      • getParentPath

        public java.lang.String getParentPath()
        Returns path of the parent folder containing this item.
      • getItemType

        public int getItemType()
        Returns type of item.
      • getContentType

        public java.lang.String getContentType()
        Returns content class
      • getFileID

        public java.lang.String getFileID()
      • getVersion

        public int getVersion()
        Returns the current version of the item or -1 if versioning not supported.
      • getVersionTime

        public long getVersionTime()
        Returns the time (UTC milliseconds) when the current version was created.