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

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.documentlibrary.model.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:
com.liferay.portal.model.AuditedModel, com.liferay.portal.model.BaseModel<com.liferay.portlet.documentlibrary.model.DLFileEntry>, com.liferay.portal.model.ClassedModel, com.liferay.portal.model.GroupedModel, com.liferay.portal.model.PersistedModel, com.liferay.portlet.documentlibrary.model.DLFileEntry, com.liferay.portlet.documentlibrary.model.DLFileEntryModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portlet.documentlibrary.model.DLFileEntry>

public class DLFileEntryImpl
extends DLFileEntryBaseImpl

Author:
Brian Wing Shun Chan, Alexander Chow
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, NAME_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, 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
 java.io.InputStream getContentStream()
           
 java.io.InputStream getContentStream(java.lang.String version)
           
 long getDataRepositoryId()
           
 com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
           
 java.lang.String getExtraSettings()
           
 com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties()
           
 java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> getFieldsMap(long fileVersionId)
           
 com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion()
           
 com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(java.lang.String version)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(int status)
           
 com.liferay.portlet.documentlibrary.model.DLFolder getFolder()
           
 java.lang.String getIcon()
           
 com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(boolean trusted)
           
 com.liferay.portal.model.Lock getLock()
           
 java.lang.String getLuceneProperties()
           
 boolean hasLock()
           
 boolean isCheckedOut()
           
 void setExtraSettings(java.lang.String extraSettings)
           
 void setExtraSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties)
           
 void setFileVersion(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.model.impl.DLFileEntryBaseImpl
persist
 
Methods inherited from class com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl
clone, compareTo, equals, getColumnBitmask, getCompanyId, getCreateDate, getCustom1ImageId, getCustom2ImageId, getDescription, getExtension, getFileEntryId, getFileEntryTypeId, getFolderId, getGroupId, getLargeImageId, getMimeType, getModelClass, getModelClassName, getModifiedDate, getName, getOriginalCompanyId, getOriginalFileEntryTypeId, getOriginalFolderId, getOriginalGroupId, getOriginalName, getOriginalTitle, getOriginalUserId, getOriginalUuid, getPrimaryKey, getPrimaryKeyObj, getReadCount, getRepositoryId, getSize, getSmallImageId, getTitle, getUserId, getUserName, getUserUuid, getUuid, getVersion, getVersionUserId, getVersionUserName, getVersionUserUuid, hashCode, resetOriginalValues, setCompanyId, setCreateDate, setCustom1ImageId, setCustom2ImageId, setDescription, setExpandoBridgeAttributes, setExtension, setFileEntryId, setFileEntryTypeId, setFolderId, setGroupId, setLargeImageId, setMimeType, setModifiedDate, setName, setPrimaryKey, setPrimaryKeyObj, setReadCount, setRepositoryId, setSize, setSmallImageId, setTitle, setUserId, setUserName, setUserUuid, setUuid, setVersion, setVersionUserId, setVersionUserName, setVersionUserUuid, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
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, getCompanyId, getCreateDate, getCustom1ImageId, getCustom2ImageId, getDescription, getExtension, getFileEntryId, getFileEntryTypeId, getFolderId, getGroupId, getLargeImageId, getMimeType, getModifiedDate, getName, getPrimaryKey, getPrimaryKeyObj, getReadCount, getRepositoryId, getSize, getSmallImageId, getTitle, getUserId, getUserName, getUserUuid, getUuid, getVersion, getVersionUserId, getVersionUserName, getVersionUserUuid, hashCode, isCachedModel, isEscapedModel, isNew, setCachedModel, setCompanyId, setCreateDate, setCustom1ImageId, setCustom2ImageId, setDescription, setExpandoBridgeAttributes, setExtension, setFileEntryId, setFileEntryTypeId, setFolderId, setGroupId, setLargeImageId, setMimeType, setModifiedDate, setName, setNew, setPrimaryKey, setPrimaryKeyObj, setReadCount, setRepositoryId, setSize, setSmallImageId, setTitle, setUserId, setUserName, setUserUuid, setUuid, setVersion, setVersionUserId, setVersionUserName, setVersionUserUuid, toCacheModel, toEscapedModel, toString, toXmlString
 
Methods inherited from interface com.liferay.portal.model.BaseModel
resetOriginalValues
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 

Constructor Detail

DLFileEntryImpl

public DLFileEntryImpl()
Method Detail

getContentStream

public java.io.InputStream getContentStream()
                                     throws com.liferay.portal.kernel.exception.PortalException,
                                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getContentStream

public java.io.InputStream getContentStream(java.lang.String version)
                                     throws com.liferay.portal.kernel.exception.PortalException,
                                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getDataRepositoryId

public long getDataRepositoryId()

getExpandoBridge

public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.documentlibrary.model.DLFileEntry>
Specified by:
getExpandoBridge in interface com.liferay.portal.model.ClassedModel
Specified by:
getExpandoBridge in interface com.liferay.portlet.documentlibrary.model.DLFileEntry
Specified by:
getExpandoBridge in interface com.liferay.portlet.documentlibrary.model.DLFileEntryModel
Overrides:
getExpandoBridge in class DLFileEntryModelImpl

getExtraSettings

public java.lang.String getExtraSettings()
Specified by:
getExtraSettings in interface com.liferay.portlet.documentlibrary.model.DLFileEntry
Specified by:
getExtraSettings in interface com.liferay.portlet.documentlibrary.model.DLFileEntryModel
Overrides:
getExtraSettings in class DLFileEntryModelImpl

getExtraSettingsProperties

public com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties()

getFieldsMap

public java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> getFieldsMap(long fileVersionId)
                                                                                                   throws com.liferay.portal.kernel.exception.PortalException,
                                                                                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFileVersion

public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion()
                                                                       throws com.liferay.portal.kernel.exception.PortalException,
                                                                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFileVersion

public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(java.lang.String version)
                                                                       throws com.liferay.portal.kernel.exception.PortalException,
                                                                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFileVersions

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(int status)
                                                                                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getFolder

public com.liferay.portlet.documentlibrary.model.DLFolder getFolder()

getIcon

public java.lang.String getIcon()

getLatestFileVersion

public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(boolean trusted)
                                                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getLock

public com.liferay.portal.model.Lock getLock()

getLuceneProperties

public java.lang.String getLuceneProperties()

hasLock

public boolean hasLock()

isCheckedOut

public boolean isCheckedOut()

setExtraSettings

public void setExtraSettings(java.lang.String extraSettings)
Specified by:
setExtraSettings in interface com.liferay.portlet.documentlibrary.model.DLFileEntry
Specified by:
setExtraSettings in interface com.liferay.portlet.documentlibrary.model.DLFileEntryModel
Overrides:
setExtraSettings in class DLFileEntryModelImpl

setExtraSettingsProperties

public void setExtraSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties)

setFileVersion

public void setFileVersion(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)