|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.documentlibrary.model.DLFileEntryWrapper
public class DLFileEntryWrapper
This class is a wrapper for DLFileEntry
.
DLFileEntry
,
Serialized FormConstructor Summary | |
---|---|
DLFileEntryWrapper(DLFileEntry dlFileEntry)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(DLFileEntry dlFileEntry)
|
boolean |
equals(Object obj)
|
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 |
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()
|
String |
getDescription()
Returns the description of this document library file entry. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
String |
getExtension()
Returns the extension of this document library file entry. |
String |
getExtraSettings()
Returns the extra settings of this document library file entry. |
UnicodeProperties |
getExtraSettingsProperties()
|
Map<String,Fields> |
getFieldsMap(long fileVersionId)
|
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. |
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()
|
long |
getLargeImageId()
Returns the large image ID of this document library file entry. |
DLFileVersion |
getLatestFileVersion(boolean trusted)
|
Lock |
getLock()
|
String |
getLuceneProperties()
|
String |
getMimeType()
Returns the mime type of this document library file entry. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date 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. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
int |
getReadCount()
Returns the read count of this document library file entry. |
long |
getRepositoryId()
Returns the repository ID 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. |
String |
getTitle()
Returns the title 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. |
long |
getVersionUserId()
Returns the version user ID of this document library file entry. |
String |
getVersionUserName()
Returns the version user name of this document library file entry. |
String |
getVersionUserUuid()
Returns the version user uuid of this document library file entry. |
DLFileEntry |
getWrappedDLFileEntry()
Deprecated. Renamed to getWrappedModel() |
DLFileEntry |
getWrappedModel()
|
int |
hashCode()
|
boolean |
hasLock()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isCheckedOut()
|
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
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 |
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 |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setExtension(String extension)
Sets the extension of this document library file entry. |
void |
setExtraSettings(String extraSettings)
Sets the extra settings of this document library file entry. |
void |
setExtraSettingsProperties(UnicodeProperties extraSettingsProperties)
|
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 |
setFileVersion(DLFileVersion dlFileVersion)
|
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 |
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 |
setName(String name)
Sets the name of this document library file entry. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this document library file entry. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setReadCount(int readCount)
Sets the read count of this document library file entry. |
void |
setRepositoryId(long repositoryId)
Sets the repository ID 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 |
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 |
setVersionUserId(long versionUserId)
Sets the version user ID of this document library file entry. |
void |
setVersionUserName(String versionUserName)
Sets the version user name of this document library file entry. |
void |
setVersionUserUuid(String versionUserUuid)
Sets the version user uuid of this document library file entry. |
CacheModel<DLFileEntry> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
DLFileEntry |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
DLFileEntry |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DLFileEntryWrapper(DLFileEntry dlFileEntry)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<DLFileEntry>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<DLFileEntry>
public long getPrimaryKey()
getPrimaryKey
in interface DLFileEntryModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface DLFileEntryModel
primaryKey
- the primary key of this document library file entrypublic String getUuid()
getUuid
in interface DLFileEntryModel
public void setUuid(String uuid)
setUuid
in interface DLFileEntryModel
uuid
- the uuid of this document library file entrypublic long getFileEntryId()
getFileEntryId
in interface DLFileEntryModel
public void setFileEntryId(long fileEntryId)
setFileEntryId
in interface DLFileEntryModel
fileEntryId
- the file entry ID of this document library file entrypublic long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface DLFileEntryModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface DLFileEntryModel
groupId
- the group ID of this document library file entrypublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface DLFileEntryModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface DLFileEntryModel
companyId
- the company ID of this document library file entrypublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface DLFileEntryModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface DLFileEntryModel
userId
- the user ID of this document library file entrypublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface DLFileEntryModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface DLFileEntryModel
userUuid
- the user uuid of this document library file entrypublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface DLFileEntryModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface DLFileEntryModel
userName
- the user name of this document library file entrypublic long getVersionUserId()
getVersionUserId
in interface DLFileEntryModel
public void setVersionUserId(long versionUserId)
setVersionUserId
in interface DLFileEntryModel
versionUserId
- the version user ID of this document library file entrypublic String getVersionUserUuid() throws SystemException
getVersionUserUuid
in interface DLFileEntryModel
SystemException
- if a system exception occurredpublic void setVersionUserUuid(String versionUserUuid)
setVersionUserUuid
in interface DLFileEntryModel
versionUserUuid
- the version user uuid of this document library file entrypublic String getVersionUserName()
getVersionUserName
in interface DLFileEntryModel
public void setVersionUserName(String versionUserName)
setVersionUserName
in interface DLFileEntryModel
versionUserName
- the version user name of this document library file entrypublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface DLFileEntryModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface DLFileEntryModel
createDate
- the create date of this document library file entrypublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface DLFileEntryModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface DLFileEntryModel
modifiedDate
- the modified date of this document library file entrypublic long getRepositoryId()
getRepositoryId
in interface DLFileEntryModel
public void setRepositoryId(long repositoryId)
setRepositoryId
in interface DLFileEntryModel
repositoryId
- the repository ID of this document library file entrypublic long getFolderId()
getFolderId
in interface DLFileEntryModel
public void setFolderId(long folderId)
setFolderId
in interface DLFileEntryModel
folderId
- the folder ID of this document library file entrypublic String getName()
getName
in interface DLFileEntryModel
public void setName(String name)
setName
in interface DLFileEntryModel
name
- the name of this document library file entrypublic String getExtension()
getExtension
in interface DLFileEntryModel
public void setExtension(String extension)
setExtension
in interface DLFileEntryModel
extension
- the extension of this document library file entrypublic String getMimeType()
getMimeType
in interface DLFileEntryModel
public void setMimeType(String mimeType)
setMimeType
in interface DLFileEntryModel
mimeType
- the mime type of this document library file entrypublic String getTitle()
getTitle
in interface DLFileEntryModel
public void setTitle(String title)
setTitle
in interface DLFileEntryModel
title
- the title of this document library file entrypublic String getDescription()
getDescription
in interface DLFileEntryModel
public void setDescription(String description)
setDescription
in interface DLFileEntryModel
description
- the description of this document library file entrypublic String getExtraSettings()
getExtraSettings
in interface DLFileEntry
getExtraSettings
in interface DLFileEntryModel
public void setExtraSettings(String extraSettings)
setExtraSettings
in interface DLFileEntry
setExtraSettings
in interface DLFileEntryModel
extraSettings
- the extra settings of this document library file entrypublic long getFileEntryTypeId()
getFileEntryTypeId
in interface DLFileEntryModel
public void setFileEntryTypeId(long fileEntryTypeId)
setFileEntryTypeId
in interface DLFileEntryModel
fileEntryTypeId
- the file entry type ID of this document library file entrypublic String getVersion()
getVersion
in interface DLFileEntryModel
public void setVersion(String version)
setVersion
in interface DLFileEntryModel
version
- the version of this document library file entrypublic long getSize()
getSize
in interface DLFileEntryModel
public void setSize(long size)
setSize
in interface DLFileEntryModel
size
- the size of this document library file entrypublic int getReadCount()
getReadCount
in interface DLFileEntryModel
public void setReadCount(int readCount)
setReadCount
in interface DLFileEntryModel
readCount
- the read count of this document library file entrypublic long getSmallImageId()
getSmallImageId
in interface DLFileEntryModel
public void setSmallImageId(long smallImageId)
setSmallImageId
in interface DLFileEntryModel
smallImageId
- the small image ID of this document library file entrypublic long getLargeImageId()
getLargeImageId
in interface DLFileEntryModel
public void setLargeImageId(long largeImageId)
setLargeImageId
in interface DLFileEntryModel
largeImageId
- the large image ID of this document library file entrypublic long getCustom1ImageId()
getCustom1ImageId
in interface DLFileEntryModel
public void setCustom1ImageId(long custom1ImageId)
setCustom1ImageId
in interface DLFileEntryModel
custom1ImageId
- the custom1 image ID of this document library file entrypublic long getCustom2ImageId()
getCustom2ImageId
in interface DLFileEntryModel
public void setCustom2ImageId(long custom2ImageId)
setCustom2ImageId
in interface DLFileEntryModel
custom2ImageId
- the custom2 image ID of this document library file entrypublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<DLFileEntry>
isNew
in interface DLFileEntryModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<DLFileEntry>
setNew
in interface DLFileEntryModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<DLFileEntry>
isCachedModel
in interface DLFileEntryModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<DLFileEntry>
setCachedModel
in interface DLFileEntryModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<DLFileEntry>
isEscapedModel
in interface DLFileEntryModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<DLFileEntry>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface DLFileEntryModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<DLFileEntry>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface DLFileEntryModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<DLFileEntry>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface DLFileEntry
getExpandoBridge
in interface DLFileEntryModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<DLFileEntry>
setExpandoBridgeAttributes
in interface DLFileEntryModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<DLFileEntry>
clone
in interface DLFileEntryModel
clone
in class Object
public int compareTo(DLFileEntry dlFileEntry)
compareTo
in interface DLFileEntryModel
compareTo
in interface Comparable<DLFileEntry>
public int hashCode()
hashCode
in interface DLFileEntryModel
hashCode
in class Object
public CacheModel<DLFileEntry> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<DLFileEntry>
toCacheModel
in interface DLFileEntryModel
public DLFileEntry toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<DLFileEntry>
toEscapedModel
in interface DLFileEntryModel
AutoEscapeBeanHandler
public DLFileEntry toUnescapedModel()
toUnescapedModel
in interface BaseModel<DLFileEntry>
toUnescapedModel
in interface DLFileEntryModel
public String toString()
toString
in interface DLFileEntryModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<DLFileEntry>
toXmlString
in interface DLFileEntryModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic InputStream getContentStream() throws PortalException, SystemException
getContentStream
in interface DLFileEntry
PortalException
SystemException
public InputStream getContentStream(String version) throws PortalException, SystemException
getContentStream
in interface DLFileEntry
PortalException
SystemException
public long getDataRepositoryId()
getDataRepositoryId
in interface DLFileEntry
public UnicodeProperties getExtraSettingsProperties()
getExtraSettingsProperties
in interface DLFileEntry
public Map<String,Fields> getFieldsMap(long fileVersionId) throws PortalException, SystemException
getFieldsMap
in interface DLFileEntry
PortalException
SystemException
public DLFileVersion getFileVersion() throws PortalException, SystemException
getFileVersion
in interface DLFileEntry
PortalException
SystemException
public DLFileVersion getFileVersion(String version) throws PortalException, SystemException
getFileVersion
in interface DLFileEntry
PortalException
SystemException
public List<DLFileVersion> getFileVersions(int status) throws SystemException
getFileVersions
in interface DLFileEntry
SystemException
public int getFileVersionsCount(int status) throws SystemException
getFileVersionsCount
in interface DLFileEntry
SystemException
public DLFolder getFolder()
getFolder
in interface DLFileEntry
public String getIcon()
getIcon
in interface DLFileEntry
public DLFileVersion getLatestFileVersion(boolean trusted) throws PortalException, SystemException
getLatestFileVersion
in interface DLFileEntry
PortalException
SystemException
public Lock getLock()
getLock
in interface DLFileEntry
public String getLuceneProperties()
getLuceneProperties
in interface DLFileEntry
public boolean hasLock()
hasLock
in interface DLFileEntry
public boolean isCheckedOut()
isCheckedOut
in interface DLFileEntry
public void setExtraSettingsProperties(UnicodeProperties extraSettingsProperties)
setExtraSettingsProperties
in interface DLFileEntry
public void setFileVersion(DLFileVersion dlFileVersion)
setFileVersion
in interface DLFileEntry
public boolean equals(Object obj)
equals
in class Object
public DLFileEntry getWrappedDLFileEntry()
getWrappedModel()
public DLFileEntry getWrappedModel()
getWrappedModel
in interface ModelWrapper<DLFileEntry>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<DLFileEntry>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |