Class AbstractAsset<T>

    • Constructor Detail

      • AbstractAsset

        public AbstractAsset()
    • Method Detail

      • getAssetLocation

        public String getAssetLocation()
        Description copied from interface: Asset
        Returns location in the repository where this asset is stored
        Specified by:
        getAssetLocation in interface Asset<T>
        Returns:
        - asset location
      • getAssetType

        public String getAssetType()
        Description copied from interface: Asset
        Returns type of the asset.
        Specified by:
        getAssetType in interface Asset<T>
        Returns:
        - asset type
      • getUniqueId

        public String getUniqueId()
        Description copied from interface: Item
        Returns uniqueId of this asset
        Specified by:
        getUniqueId in interface Item
        Returns:
        unique identifier of this asset
      • getName

        public String getName()
        Description copied from interface: Item
        Returns name of the item if present
        Specified by:
        getName in interface Item
        Returns:
        - item name
      • getDescription

        public String getDescription()
        Description copied from interface: Item
        Returns description of the item if present
        Specified by:
        getDescription in interface Item
        Returns:
        - item description
      • getVersion

        public String getVersion()
        Description copied from interface: Item
        Returns version of this item
        Specified by:
        getVersion in interface Item
        Returns:
        - item version
      • getOwner

        public String getOwner()
        Description copied from interface: Item
        Returns owner (usually user if) of this item
        Specified by:
        getOwner in interface Item
        Returns:
        - item owner
      • getCreationDate

        public String getCreationDate()
        Description copied from interface: Item
        Returns date when this item was created
        Specified by:
        getCreationDate in interface Item
        Returns:
        - item creation date
      • getLastModificationDate

        public String getLastModificationDate()
        Description copied from interface: Item
        Returns date when this item was last time modified
        Specified by:
        getLastModificationDate in interface Item
        Returns:
        - item last modification date
      • setUniqueId

        public void setUniqueId​(String uniqueId)
      • setName

        public void setName​(String name)
      • setDescription

        public void setDescription​(String description)
      • setVersion

        public void setVersion​(String version)
      • setOwner

        public void setOwner​(String owner)
      • setAssetTpe

        public void setAssetTpe​(String assetTpe)
      • setAssetLocation

        public void setAssetLocation​(String assetLocation)
      • setCreationDate

        public void setCreationDate​(String creationDate)
      • setLastModificationDate

        public void setLastModificationDate​(String lastModificationDate)
      • getFullName

        public String getFullName()
        Description copied from interface: Item
        Returns full name of the asset that usually is name and type. e.g. in case of files it's file name and extension.
        Specified by:
        getFullName in interface Item
        Returns:
        - returns full asset name
      • setAssetContent

        public abstract void setAssetContent​(T content)
      • acceptBytes

        public abstract boolean acceptBytes()