public class DLFileEntryWrapper extends BaseModelWrapper<DLFileEntry> implements DLFileEntry, ModelWrapper<DLFileEntry>
This class is a wrapper for DLFileEntry
.
DLFileEntry
,
Serialized Formmodel
FILE_ENTRY_ID_ACCESSOR
Constructor and Description |
---|
DLFileEntryWrapper(DLFileEntry dlFileEntry) |
Modifier and Type | Method and Description |
---|---|
String |
buildTreePath() |
DLFileEntry |
cloneWithOriginalValues() |
Map<String,Function<DLFileEntry,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<DLFileEntry,Object>> |
getAttributeSetterBiConsumers() |
String |
getClassName()
Returns the fully qualified class name of this document library file entry.
|
long |
getClassNameId()
Returns the class name ID of this document library file entry.
|
long |
getClassPK()
Returns the class pk of this document library file entry.
|
long |
getCompanyId()
Returns the company ID of this document library file entry.
|
InputStream |
getContentStream() |
InputStream |
getContentStream(String version) |
Date |
getCreateDate()
Returns the create date of this document library file entry.
|
long |
getCtCollectionId()
Returns the ct collection ID of this document library file entry.
|
long |
getCustom1ImageId()
Returns the custom1 image ID of this document library file entry.
|
long |
getCustom2ImageId()
Returns the custom2 image ID of this document library file entry.
|
long |
getDataRepositoryId() |
Map<String,DDMFormValues> |
getDDMFormValuesMap(long fileVersionId) |
String |
getDescription()
Returns the description of this document library file entry.
|
DLFileEntryType |
getDLFileEntryType() |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Date |
getExpirationDate()
Returns the expiration date of this document library file entry.
|
String |
getExtension()
Returns the extension of this document library file entry.
|
String |
getExternalReferenceCode()
Returns the external reference code of this document library file entry.
|
String |
getExtraSettings()
Returns the extra settings of this document library file entry.
|
UnicodeProperties |
getExtraSettingsProperties() |
long |
getFileEntryId()
Returns the file entry ID of this document library file entry.
|
long |
getFileEntryTypeId()
Returns the file entry type ID of this document library file entry.
|
String |
getFileName()
Returns the file name of this document library file entry.
|
List<DLFileShortcut> |
getFileShortcuts() |
DLFileVersion |
getFileVersion() |
DLFileVersion |
getFileVersion(String version) |
List<DLFileVersion> |
getFileVersions(int status) |
int |
getFileVersionsCount(int status) |
DLFolder |
getFolder() |
long |
getFolderId()
Returns the folder ID of this document library file entry.
|
long |
getGroupId()
Returns the group ID of this document library file entry.
|
String |
getIcon() |
String |
getIconCssClass() |
long |
getLargeImageId()
Returns the large image ID of this document library file entry.
|
Date |
getLastPublishDate()
Returns the last publish date of this document library file entry.
|
DLFileVersion |
getLatestFileVersion(boolean trusted) |
Lock |
getLock() |
String |
getLuceneProperties()
Deprecated.
As of Cavanaugh (7.4.x)
|
boolean |
getManualCheckInRequired()
Returns the manual check in required of this document library file entry.
|
String |
getMimeType()
Returns the mime type of this document library file entry.
|
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this document library file entry.
|
long |
getMvccVersion()
Returns the mvcc version of this document library file entry.
|
String |
getName()
Returns the name of this document library file entry.
|
long |
getPrimaryKey()
Returns the primary key of this document library file entry.
|
long |
getReadCount() |
long |
getRepositoryId()
Returns the repository ID of this document library file entry.
|
Date |
getReviewDate()
Returns the review date of this document library file entry.
|
long |
getSize()
Returns the size of this document library file entry.
|
long |
getSmallImageId()
Returns the small image ID of this document library file entry.
|
StagedModelType |
getStagedModelType() |
int |
getStatus()
Returns the status of this document library file entry.
|
String |
getTitle()
Returns the title of this document library file entry.
|
TrashEntry |
getTrashEntry()
Returns the trash entry created when this document library file entry was moved to the Recycle Bin.
|
long |
getTrashEntryClassPK()
Returns the class primary key of the trash entry for this document library file entry.
|
String |
getTreePath()
Returns the tree path of this document library file entry.
|
long |
getUserId()
Returns the user ID of this document library file entry.
|
String |
getUserName()
Returns the user name of this document library file entry.
|
String |
getUserUuid()
Returns the user uuid of this document library file entry.
|
String |
getUuid()
Returns the uuid of this document library file entry.
|
String |
getVersion()
Returns the version of this document library file entry.
|
boolean |
hasLock() |
boolean |
isCheckedOut() |
boolean |
isInHiddenFolder() |
boolean |
isInTrash()
Returns
true if this document library file entry is in the Recycle Bin. |
boolean |
isInTrashContainer()
Returns
true if the parent of this document library file entry is in the Recycle Bin. |
boolean |
isInTrashExplicitly() |
boolean |
isInTrashImplicitly() |
boolean |
isManualCheckInRequired()
Returns
true if this document library file entry is manual check in required. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this document library file entry.
|
void |
setClassPK(long classPK)
Sets the class pk of this document library file entry.
|
void |
setCompanyId(long companyId)
Sets the company ID of this document library file entry.
|
void |
setCreateDate(Date createDate)
Sets the create date of this document library file entry.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this document library file entry.
|
void |
setCustom1ImageId(long custom1ImageId)
Sets the custom1 image ID of this document library file entry.
|
void |
setCustom2ImageId(long custom2ImageId)
Sets the custom2 image ID of this document library file entry.
|
void |
setDescription(String description)
Sets the description of this document library file entry.
|
void |
setExpirationDate(Date expirationDate)
Sets the expiration date of this document library file entry.
|
void |
setExtension(String extension)
Sets the extension of this document library file entry.
|
void |
setExternalReferenceCode(String externalReferenceCode)
Sets the external reference code of this document library file entry.
|
void |
setExtraSettings(String extraSettings)
Sets the extra settings of this document library file entry.
|
void |
setExtraSettingsProperties(UnicodeProperties extraSettingsUnicodeProperties) |
void |
setFileEntryId(long fileEntryId)
Sets the file entry ID of this document library file entry.
|
void |
setFileEntryTypeId(long fileEntryTypeId)
Sets the file entry type ID of this document library file entry.
|
void |
setFileName(String fileName)
Sets the file name of this document library file entry.
|
void |
setFolderId(long folderId)
Sets the folder ID of this document library file entry.
|
void |
setGroupId(long groupId)
Sets the group ID of this document library file entry.
|
void |
setLargeImageId(long largeImageId)
Sets the large image ID of this document library file entry.
|
void |
setLastPublishDate(Date lastPublishDate)
Sets the last publish date of this document library file entry.
|
void |
setManualCheckInRequired(boolean manualCheckInRequired)
Sets whether this document library file entry is manual check in required.
|
void |
setMimeType(String mimeType)
Sets the mime type of this document library file entry.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this document library file entry.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this document library file entry.
|
void |
setName(String name)
Sets the name of this document library file entry.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this document library file entry.
|
void |
setRepositoryId(long repositoryId)
Sets the repository ID of this document library file entry.
|
void |
setReviewDate(Date reviewDate)
Sets the review date of this document library file entry.
|
void |
setSize(long size)
Sets the size of this document library file entry.
|
void |
setSmallImageId(long smallImageId)
Sets the small image ID of this document library file entry.
|
void |
setTitle(String title)
Sets the title of this document library file entry.
|
void |
setTreePath(String treePath)
Sets the tree path of this document library file entry.
|
void |
setUserId(long userId)
Sets the user ID of this document library file entry.
|
void |
setUserName(String userName)
Sets the user name of this document library file entry.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this document library file entry.
|
void |
setUuid(String uuid)
Sets the uuid of this document library file entry.
|
void |
setVersion(String version)
Sets the version of this document library file entry.
|
void |
updateTreePath(String treePath) |
protected DLFileEntryWrapper |
wrap(DLFileEntry dlFileEntry) |
clone, compareTo, equals, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
clone, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
clone
getPrimaryKeyObj
getWrappedModel
public DLFileEntryWrapper(DLFileEntry dlFileEntry)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<DLFileEntry>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<DLFileEntry>
public String buildTreePath() throws PortalException
buildTreePath
in interface DLFileEntry
buildTreePath
in interface TreeModel
PortalException
public DLFileEntry cloneWithOriginalValues()
cloneWithOriginalValues
in interface DLFileEntryModel
cloneWithOriginalValues
in interface BaseModel<DLFileEntry>
public String getClassName()
getClassName
in interface DLFileEntryModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface DLFileEntryModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface DLFileEntryModel
getClassPK
in interface AttachedModel
public long getCompanyId()
getCompanyId
in interface DLFileEntryModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public InputStream getContentStream() throws PortalException
getContentStream
in interface DLFileEntry
PortalException
public InputStream getContentStream(String version) throws PortalException
getContentStream
in interface DLFileEntry
PortalException
public Date getCreateDate()
getCreateDate
in interface DLFileEntryModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
public long getCtCollectionId()
getCtCollectionId
in interface DLFileEntryModel
getCtCollectionId
in interface CTModel<DLFileEntry>
public long getCustom1ImageId()
getCustom1ImageId
in interface DLFileEntryModel
public long getCustom2ImageId()
getCustom2ImageId
in interface DLFileEntryModel
public long getDataRepositoryId()
getDataRepositoryId
in interface DLFileEntry
public Map<String,DDMFormValues> getDDMFormValuesMap(long fileVersionId) throws PortalException
getDDMFormValuesMap
in interface DLFileEntry
PortalException
public String getDescription()
getDescription
in interface DLFileEntryModel
public DLFileEntryType getDLFileEntryType() throws PortalException
getDLFileEntryType
in interface DLFileEntry
PortalException
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface DLFileEntry
getExpandoBridge
in interface BaseModel<DLFileEntry>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in class BaseModelWrapper<DLFileEntry>
public Date getExpirationDate()
getExpirationDate
in interface DLFileEntryModel
public String getExtension()
getExtension
in interface DLFileEntryModel
public String getExternalReferenceCode()
getExternalReferenceCode
in interface DLFileEntryModel
public String getExtraSettings()
getExtraSettings
in interface DLFileEntryModel
public UnicodeProperties getExtraSettingsProperties()
getExtraSettingsProperties
in interface DLFileEntry
public long getFileEntryId()
getFileEntryId
in interface DLFileEntryModel
public long getFileEntryTypeId()
getFileEntryTypeId
in interface DLFileEntryModel
public String getFileName()
getFileName
in interface DLFileEntryModel
public List<DLFileShortcut> getFileShortcuts()
getFileShortcuts
in interface DLFileEntry
public DLFileVersion getFileVersion() throws PortalException
getFileVersion
in interface DLFileEntry
PortalException
public DLFileVersion getFileVersion(String version) throws PortalException
getFileVersion
in interface DLFileEntry
PortalException
public List<DLFileVersion> getFileVersions(int status)
getFileVersions
in interface DLFileEntry
public int getFileVersionsCount(int status)
getFileVersionsCount
in interface DLFileEntry
public DLFolder getFolder() throws PortalException
getFolder
in interface DLFileEntry
PortalException
public long getFolderId()
getFolderId
in interface DLFileEntryModel
public long getGroupId()
getGroupId
in interface DLFileEntryModel
getGroupId
in interface GroupedModel
public String getIcon()
getIcon
in interface DLFileEntry
public String getIconCssClass()
getIconCssClass
in interface DLFileEntry
public long getLargeImageId()
getLargeImageId
in interface DLFileEntryModel
public Date getLastPublishDate()
getLastPublishDate
in interface DLFileEntryModel
getLastPublishDate
in interface StagedGroupedModel
public DLFileVersion getLatestFileVersion(boolean trusted) throws PortalException
getLatestFileVersion
in interface DLFileEntry
PortalException
public Lock getLock()
getLock
in interface DLFileEntry
@Deprecated public String getLuceneProperties()
getLuceneProperties
in interface DLFileEntry
public boolean getManualCheckInRequired()
getManualCheckInRequired
in interface DLFileEntryModel
public String getMimeType()
getMimeType
in interface DLFileEntryModel
public Date getModifiedDate()
getModifiedDate
in interface DLFileEntryModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
public long getMvccVersion()
getMvccVersion
in interface DLFileEntryModel
getMvccVersion
in interface MVCCModel
public String getName()
getName
in interface DLFileEntryModel
public long getPrimaryKey()
getPrimaryKey
in interface DLFileEntryModel
getPrimaryKey
in interface CTModel<DLFileEntry>
public long getReadCount()
getReadCount
in interface DLFileEntry
public long getRepositoryId()
getRepositoryId
in interface DLFileEntryModel
public Date getReviewDate()
getReviewDate
in interface DLFileEntryModel
public long getSize()
getSize
in interface DLFileEntryModel
public long getSmallImageId()
getSmallImageId
in interface DLFileEntryModel
public int getStatus()
getStatus
in interface DLFileEntryModel
getStatus
in interface TrashedModel
public String getTitle()
getTitle
in interface DLFileEntryModel
public TrashEntry getTrashEntry() throws PortalException
getTrashEntry
in interface DLFileEntryModel
getTrashEntry
in interface TrashedModel
PortalException
public long getTrashEntryClassPK()
getTrashEntryClassPK
in interface DLFileEntryModel
getTrashEntryClassPK
in interface TrashedModel
public String getTreePath()
getTreePath
in interface DLFileEntryModel
getTreePath
in interface TreeModel
public long getUserId()
getUserId
in interface DLFileEntryModel
getUserId
in interface AuditedModel
public String getUserName()
getUserName
in interface DLFileEntryModel
getUserName
in interface AuditedModel
public String getUserUuid()
getUserUuid
in interface DLFileEntryModel
getUserUuid
in interface AuditedModel
public String getUuid()
getUuid
in interface DLFileEntryModel
getUuid
in interface StagedModel
public String getVersion()
getVersion
in interface DLFileEntryModel
public boolean hasLock()
hasLock
in interface DLFileEntry
public boolean isCheckedOut()
isCheckedOut
in interface DLFileEntry
public boolean isInHiddenFolder()
isInHiddenFolder
in interface DLFileEntry
public boolean isInTrash()
true
if this document library file entry is in the Recycle Bin.isInTrash
in interface DLFileEntryModel
isInTrash
in interface TrashedModel
true
if this document library file entry is in the Recycle Bin; false
otherwisepublic boolean isInTrashContainer()
true
if the parent of this document library file entry is in the Recycle Bin.isInTrashContainer
in interface DLFileEntryModel
isInTrashContainer
in interface TrashedModel
true
if the parent of this document library file entry is in the Recycle Bin; false
otherwisepublic boolean isInTrashExplicitly()
isInTrashExplicitly
in interface DLFileEntryModel
isInTrashExplicitly
in interface TrashedModel
public boolean isInTrashImplicitly()
isInTrashImplicitly
in interface DLFileEntryModel
isInTrashImplicitly
in interface TrashedModel
public boolean isManualCheckInRequired()
true
if this document library file entry is manual check in required.isManualCheckInRequired
in interface DLFileEntryModel
true
if this document library file entry is manual check in required; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setClassName(String className)
setClassName
in interface DLFileEntryModel
public void setClassNameId(long classNameId)
setClassNameId
in interface DLFileEntryModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this document library file entrypublic void setClassPK(long classPK)
setClassPK
in interface DLFileEntryModel
setClassPK
in interface AttachedModel
classPK
- the class pk of this document library file entrypublic void setCompanyId(long companyId)
setCompanyId
in interface DLFileEntryModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this document library file entrypublic void setCreateDate(Date createDate)
setCreateDate
in interface DLFileEntryModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
createDate
- the create date of this document library file entrypublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface DLFileEntryModel
setCtCollectionId
in interface CTModel<DLFileEntry>
ctCollectionId
- the ct collection ID of this document library file entrypublic void setCustom1ImageId(long custom1ImageId)
setCustom1ImageId
in interface DLFileEntryModel
custom1ImageId
- the custom1 image ID of this document library file entrypublic void setCustom2ImageId(long custom2ImageId)
setCustom2ImageId
in interface DLFileEntryModel
custom2ImageId
- the custom2 image ID of this document library file entrypublic void setDescription(String description)
setDescription
in interface DLFileEntryModel
description
- the description of this document library file entrypublic void setExpirationDate(Date expirationDate)
setExpirationDate
in interface DLFileEntryModel
expirationDate
- the expiration date of this document library file entrypublic void setExtension(String extension)
setExtension
in interface DLFileEntryModel
extension
- the extension of this document library file entrypublic void setExternalReferenceCode(String externalReferenceCode)
setExternalReferenceCode
in interface DLFileEntryModel
externalReferenceCode
- the external reference code of this document library file entrypublic void setExtraSettings(String extraSettings)
setExtraSettings
in interface DLFileEntryModel
extraSettings
- the extra settings of this document library file entrypublic void setExtraSettingsProperties(UnicodeProperties extraSettingsUnicodeProperties)
setExtraSettingsProperties
in interface DLFileEntry
public void setFileEntryId(long fileEntryId)
setFileEntryId
in interface DLFileEntryModel
fileEntryId
- the file entry ID of this document library file entrypublic void setFileEntryTypeId(long fileEntryTypeId)
setFileEntryTypeId
in interface DLFileEntryModel
fileEntryTypeId
- the file entry type ID of this document library file entrypublic void setFileName(String fileName)
setFileName
in interface DLFileEntryModel
fileName
- the file name of this document library file entrypublic void setFolderId(long folderId)
setFolderId
in interface DLFileEntryModel
folderId
- the folder ID of this document library file entrypublic void setGroupId(long groupId)
setGroupId
in interface DLFileEntryModel
setGroupId
in interface GroupedModel
groupId
- the group ID of this document library file entrypublic void setLargeImageId(long largeImageId)
setLargeImageId
in interface DLFileEntryModel
largeImageId
- the large image ID of this document library file entrypublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate
in interface DLFileEntryModel
setLastPublishDate
in interface StagedGroupedModel
lastPublishDate
- the last publish date of this document library file entrypublic void setManualCheckInRequired(boolean manualCheckInRequired)
setManualCheckInRequired
in interface DLFileEntryModel
manualCheckInRequired
- the manual check in required of this document library file entrypublic void setMimeType(String mimeType)
setMimeType
in interface DLFileEntryModel
mimeType
- the mime type of this document library file entrypublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface DLFileEntryModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this document library file entrypublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface DLFileEntryModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this document library file entrypublic void setName(String name)
setName
in interface DLFileEntryModel
name
- the name of this document library file entrypublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface DLFileEntryModel
setPrimaryKey
in interface CTModel<DLFileEntry>
primaryKey
- the primary key of this document library file entrypublic void setRepositoryId(long repositoryId)
setRepositoryId
in interface DLFileEntryModel
repositoryId
- the repository ID of this document library file entrypublic void setReviewDate(Date reviewDate)
setReviewDate
in interface DLFileEntryModel
reviewDate
- the review date of this document library file entrypublic void setSize(long size)
setSize
in interface DLFileEntryModel
size
- the size of this document library file entrypublic void setSmallImageId(long smallImageId)
setSmallImageId
in interface DLFileEntryModel
smallImageId
- the small image ID of this document library file entrypublic void setTitle(String title)
setTitle
in interface DLFileEntryModel
title
- the title of this document library file entrypublic void setTreePath(String treePath)
setTreePath
in interface DLFileEntryModel
treePath
- the tree path of this document library file entrypublic void setUserId(long userId)
setUserId
in interface DLFileEntryModel
setUserId
in interface AuditedModel
userId
- the user ID of this document library file entrypublic void setUserName(String userName)
setUserName
in interface DLFileEntryModel
setUserName
in interface AuditedModel
userName
- the user name of this document library file entrypublic void setUserUuid(String userUuid)
setUserUuid
in interface DLFileEntryModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this document library file entrypublic void setUuid(String uuid)
setUuid
in interface DLFileEntryModel
setUuid
in interface StagedModel
uuid
- the uuid of this document library file entrypublic void setVersion(String version)
setVersion
in interface DLFileEntryModel
version
- the version of this document library file entrypublic void updateTreePath(String treePath)
updateTreePath
in interface TreeModel
public Map<String,Function<DLFileEntry,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<DLFileEntry>
public Map<String,BiConsumer<DLFileEntry,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<DLFileEntry>
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
protected DLFileEntryWrapper wrap(DLFileEntry dlFileEntry)
wrap
in class BaseModelWrapper<DLFileEntry>