Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.model.impl
Class DLFileEntryImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<DLFileEntry>
      extended by com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl
          extended by com.liferay.portlet.documentlibrary.model.impl.DLFileEntryBaseImpl
              extended by com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl
All Implemented Interfaces:
AttachedModel, AuditedModel, BaseModel<DLFileEntry>, ClassedModel, GroupedModel, PersistedModel, ShardedModel, StagedGroupedModel, StagedModel, TrashedModel, TreeModel, TypedModel, DLFileEntry, DLFileEntryModel, Serializable, Cloneable, Comparable<DLFileEntry>

public class DLFileEntryImpl
extends DLFileEntryBaseImpl

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl
COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, ENTITY_CACHE_ENABLED, FILEENTRYTYPEID_COLUMN_BITMASK, FILENAME_COLUMN_BITMASK, FINDER_CACHE_ENABLED, FOLDERID_COLUMN_BITMASK, GROUPID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, MIMETYPE_COLUMN_BITMASK, NAME_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, REPOSITORYID_COLUMN_BITMASK, SESSION_FACTORY, TABLE_COLUMNS, TABLE_COLUMNS_MAP, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TITLE_COLUMN_BITMASK, TX_MANAGER, USERID_COLUMN_BITMASK, UUID_COLUMN_BITMASK
 
Fields inherited from interface com.liferay.portlet.documentlibrary.model.DLFileEntry
FILE_ENTRY_ID_ACCESSOR
 
Constructor Summary
DLFileEntryImpl()
           
 
Method Summary
 String buildTreePath()
           
 InputStream getContentStream()
           
 InputStream getContentStream(String version)
           
 long getDataRepositoryId()
           
 Map<String,DDMFormValues> getDDMFormValuesMap(long fileVersionId)
           
 DLFileEntryType getDLFileEntryType()
           
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 String getExtraSettings()
          Returns the extra settings of this document library file entry.
 UnicodeProperties getExtraSettingsProperties()
           
 List<DLFileShortcut> getFileShortcuts()
           
 DLFileVersion getFileVersion()
           
 DLFileVersion getFileVersion(String version)
           
 List<DLFileVersion> getFileVersions(int status)
           
 int getFileVersionsCount(int status)
           
 DLFolder getFolder()
           
 String getIcon()
           
 String getIconCssClass()
           
 DLFileVersion getLatestFileVersion(boolean trusted)
           
 Lock getLock()
           
 String getLuceneProperties()
           
 StagedModelType getStagedModelType()
           
 int getStatus()
          Returns the status 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.
 void setExtraSettings(String extraSettings)
          Sets the extra settings of this document library file entry.
 void setExtraSettingsProperties(UnicodeProperties extraSettingsProperties)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.model.impl.DLFileEntryBaseImpl
persist, updateTreePath
 
Methods inherited from class com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl
clone, compareTo, equals, getClassName, getClassNameId, getClassPK, getColumnBitmask, getCompanyId, getCreateDate, getCustom1ImageId, getCustom2ImageId, getDescription, getExtension, getFileEntryId, getFileEntryTypeId, getFileName, getFolderId, getGroupId, getLargeImageId, getLastPublishDate, getManualCheckInRequired, getMimeType, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getName, getOriginalCompanyId, getOriginalFileEntryTypeId, getOriginalFileName, getOriginalFolderId, getOriginalGroupId, getOriginalMimeType, getOriginalName, getOriginalRepositoryId, getOriginalTitle, getOriginalUserId, getOriginalUuid, getPrimaryKey, getPrimaryKeyObj, getReadCount, getRepositoryId, getSize, getSmallImageId, getTitle, getTrashEntry, getTrashEntryClassPK, getTrashHandler, getTreePath, getUserId, getUserName, getUserUuid, getUuid, getVersion, hashCode, hasSetModifiedDate, isEntityCacheEnabled, isFinderCacheEnabled, isInTrashContainer, isInTrashExplicitly, isInTrashImplicitly, isManualCheckInRequired, resetOriginalValues, setClassName, setClassNameId, setClassPK, setCompanyId, setCreateDate, setCustom1ImageId, setCustom2ImageId, setDescription, setExpandoBridgeAttributes, setExtension, setFileEntryId, setFileEntryTypeId, setFileName, setFolderId, setGroupId, setLargeImageId, setLastPublishDate, setManualCheckInRequired, setMimeType, setModelAttributes, setModifiedDate, setName, setPrimaryKey, setPrimaryKeyObj, setReadCount, setRepositoryId, setSize, setSmallImageId, setTitle, setTreePath, setUserId, setUserName, setUserUuid, setUuid, setVersion, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.documentlibrary.model.DLFileEntryModel
clone, compareTo, getClassName, getClassNameId, getClassPK, getCompanyId, getCreateDate, getCustom1ImageId, getCustom2ImageId, getDescription, getExtension, getFileEntryId, getFileEntryTypeId, getFileName, getFolderId, getGroupId, getLargeImageId, getLastPublishDate, getManualCheckInRequired, getMimeType, getModifiedDate, getName, getPrimaryKey, getPrimaryKeyObj, getReadCount, getRepositoryId, getSize, getSmallImageId, getTitle, getTrashEntry, getTrashEntryClassPK, getTrashHandler, getTreePath, getUserId, getUserName, getUserUuid, getUuid, getVersion, hashCode, isCachedModel, isEscapedModel, isInTrashContainer, isInTrashExplicitly, isInTrashImplicitly, isManualCheckInRequired, isNew, setCachedModel, setClassName, setClassNameId, setClassPK, setCompanyId, setCreateDate, setCustom1ImageId, setCustom2ImageId, setDescription, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExtension, setFileEntryId, setFileEntryTypeId, setFileName, setFolderId, setGroupId, setLargeImageId, setLastPublishDate, setManualCheckInRequired, setMimeType, setModifiedDate, setName, setNew, setPrimaryKey, setPrimaryKeyObj, setReadCount, setRepositoryId, setSize, setSmallImageId, setTitle, setTreePath, setUserId, setUserName, setUserUuid, setUuid, setVersion, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
 
Methods inherited from interface com.liferay.portal.model.BaseModel
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributes
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 
Methods inherited from interface com.liferay.portal.model.TreeModel
getPrimaryKeyObj, getTreePath
 

Constructor Detail

DLFileEntryImpl

public DLFileEntryImpl()
Method Detail

buildTreePath

public String buildTreePath()
                     throws PortalException
Throws:
PortalException

getContentStream

public InputStream getContentStream()
                             throws PortalException
Throws:
PortalException

getContentStream

public InputStream getContentStream(String version)
                             throws PortalException
Throws:
PortalException

getDataRepositoryId

public long getDataRepositoryId()

getDDMFormValuesMap

public Map<String,DDMFormValues> getDDMFormValuesMap(long fileVersionId)
                                              throws PortalException
Throws:
PortalException

getDLFileEntryType

public DLFileEntryType getDLFileEntryType()
                                   throws PortalException
Throws:
PortalException

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<DLFileEntry>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DLFileEntryModel
Overrides:
getExpandoBridge in class DLFileEntryModelImpl
Returns:
the expando bridge for this model instance

getExtraSettings

public String getExtraSettings()
Description copied from interface: DLFileEntryModel
Returns the extra settings of this document library file entry.

Specified by:
getExtraSettings in interface DLFileEntryModel
Overrides:
getExtraSettings in class DLFileEntryModelImpl
Returns:
the extra settings of this document library file entry

getExtraSettingsProperties

public UnicodeProperties getExtraSettingsProperties()

getFileShortcuts

public List<DLFileShortcut> getFileShortcuts()

getFileVersion

public DLFileVersion getFileVersion()
                             throws PortalException
Throws:
PortalException

getFileVersion

public DLFileVersion getFileVersion(String version)
                             throws PortalException
Throws:
PortalException

getFileVersions

public List<DLFileVersion> getFileVersions(int status)

getFileVersionsCount

public int getFileVersionsCount(int status)

getFolder

public DLFolder getFolder()
                   throws PortalException
Throws:
PortalException

getIcon

public String getIcon()

getIconCssClass

public String getIconCssClass()

getLatestFileVersion

public DLFileVersion getLatestFileVersion(boolean trusted)
                                   throws PortalException
Throws:
PortalException

getLock

public Lock getLock()

getLuceneProperties

public String getLuceneProperties()

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel
Overrides:
getStagedModelType in class DLFileEntryModelImpl

getStatus

public int getStatus()
Description copied from interface: DLFileEntryModel
Returns the status of this document library file entry.

Specified by:
getStatus in interface TrashedModel
Specified by:
getStatus in interface DLFileEntryModel
Overrides:
getStatus in class DLFileEntryModelImpl
Returns:
the status of this document library file entry

hasLock

public boolean hasLock()

isCheckedOut

public boolean isCheckedOut()

isInHiddenFolder

public boolean isInHiddenFolder()

isInTrash

public boolean isInTrash()
Description copied from interface: DLFileEntryModel
Returns true if this document library file entry is in the Recycle Bin.

Specified by:
isInTrash in interface TrashedModel
Specified by:
isInTrash in interface DLFileEntryModel
Overrides:
isInTrash in class DLFileEntryModelImpl
Returns:
true if this document library file entry is in the Recycle Bin; false otherwise

setExtraSettings

public void setExtraSettings(String extraSettings)
Description copied from interface: DLFileEntryModel
Sets the extra settings of this document library file entry.

Specified by:
setExtraSettings in interface DLFileEntryModel
Overrides:
setExtraSettings in class DLFileEntryModelImpl
Parameters:
extraSettings - the extra settings of this document library file entry

setExtraSettingsProperties

public void setExtraSettingsProperties(UnicodeProperties extraSettingsProperties)

Liferay 7.0-ce-b4