Liferay 6.2-ce-ga5

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, 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, 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_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TITLE_COLUMN_BITMASK, TX_MANAGER, USERID_COLUMN_BITMASK, UUID_COLUMN_BITMASK
 
Constructor Summary
DLFileEntryImpl()
           
 
Method Summary
 String buildTreePath()
           
 InputStream getContentStream()
           
 InputStream getContentStream(String version)
           
 long getDataRepositoryId()
           
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 String getExtraSettings()
          Returns the extra settings of this document library file entry.
 UnicodeProperties getExtraSettingsProperties()
           
 Map<String,Fields> getFieldsMap(long fileVersionId)
           
 DLFileVersion getFileVersion()
           
 DLFileVersion getFileVersion(String version)
           
 List<DLFileVersion> getFileVersions(int status)
           
 int getFileVersionsCount(int status)
           
 DLFolder getFolder()
           
 String getIcon()
           
 DLFileVersion getLatestFileVersion(boolean trusted)
           
 Lock getLock()
           
 String getLuceneProperties()
           
 StagedModelType getStagedModelType()
           
 int getStatus()
          Returns the status of this document library file entry.
 long getVersionUserId()
          Deprecated. As of 6.2.0, replaced by DLFileVersionModel.getUserId()
 String getVersionUserName()
          Deprecated. As of 6.2.0, replaced by DLFileVersionModel.getUserName()
 String getVersionUserUuid()
          Deprecated. As of 6.2.0, replaced by DLFileVersionModel.getUserUuid()
 boolean hasLock()
           
 boolean isCheckedOut()
           
 boolean isInHiddenFolder()
           
 boolean isInTrash()
          Returns true if this document library file entry is in the Recycle Bin.
 boolean isInTrashExplicitly()
           
 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, getFolderId, getGroupId, getLargeImageId, getManualCheckInRequired, getMimeType, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getName, getOriginalCompanyId, getOriginalFileEntryTypeId, 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, isInTrashContainer, isManualCheckInRequired, resetOriginalValues, setClassName, setClassNameId, setClassPK, setCompanyId, setCreateDate, setCustom1ImageId, setCustom2ImageId, setDescription, setExpandoBridgeAttributes, setExtension, setFileEntryId, setFileEntryTypeId, setFolderId, setGroupId, setLargeImageId, 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, getFolderId, getGroupId, getLargeImageId, getManualCheckInRequired, getMimeType, getModifiedDate, getName, getPrimaryKey, getPrimaryKeyObj, getReadCount, getRepositoryId, getSize, getSmallImageId, getTitle, getTrashEntry, getTrashEntryClassPK, getTrashHandler, getTreePath, getUserId, getUserName, getUserUuid, getUuid, getVersion, hashCode, isCachedModel, isEscapedModel, isInTrashContainer, isManualCheckInRequired, isNew, setCachedModel, setClassName, setClassNameId, setClassPK, setCompanyId, setCreateDate, setCustom1ImageId, setCustom2ImageId, setDescription, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExtension, setFileEntryId, setFileEntryTypeId, setFolderId, setGroupId, setLargeImageId, 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, 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,
                            SystemException
Throws:
PortalException
SystemException

getContentStream

public InputStream getContentStream()
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getContentStream

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

getDataRepositoryId

public long getDataRepositoryId()

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()

getFieldsMap

public Map<String,Fields> getFieldsMap(long fileVersionId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getFileVersion

public DLFileVersion getFileVersion()
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getFileVersion

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

getFileVersions

public List<DLFileVersion> getFileVersions(int status)
                                    throws SystemException
Throws:
SystemException

getFileVersionsCount

public int getFileVersionsCount(int status)
                         throws SystemException
Throws:
SystemException

getFolder

public DLFolder getFolder()
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getIcon

public String getIcon()

getLatestFileVersion

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

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

getVersionUserId

public long getVersionUserId()
Deprecated. As of 6.2.0, replaced by DLFileVersionModel.getUserId()


getVersionUserName

public String getVersionUserName()
Deprecated. As of 6.2.0, replaced by DLFileVersionModel.getUserName()


getVersionUserUuid

public String getVersionUserUuid()
Deprecated. As of 6.2.0, replaced by DLFileVersionModel.getUserUuid()


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

isInTrashExplicitly

public boolean isInTrashExplicitly()
                            throws SystemException
Throws:
SystemException

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 6.2-ce-ga5