|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.documentlibrary.model.DLFileEntryWrapper
public class DLFileEntryWrapper
This class is a wrapper for DLFileEntry.
DLFileEntry,
Serialized Form| Constructor Summary | |
|---|---|
DLFileEntryWrapper(DLFileEntry dlFileEntry)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(DLFileEntry dlFileEntry)
|
long |
getCompanyId()
Gets the company ID of this d l file entry. |
InputStream |
getContentStream()
|
InputStream |
getContentStream(String version)
|
Date |
getCreateDate()
Gets the create date of this d l file entry. |
String |
getDescription()
Gets the description of this d l file entry. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
String |
getExtension()
Gets the extension of this d l file entry. |
String |
getExtraSettings()
Gets the extra settings of this d l file entry. |
UnicodeProperties |
getExtraSettingsProperties()
|
long |
getFileEntryId()
Gets the file entry ID of this d l file entry. |
DLFileVersion |
getFileVersion()
|
DLFileVersion |
getFileVersion(String version)
|
List<DLFileVersion> |
getFileVersions(int status)
|
DLFolder |
getFolder()
|
long |
getFolderId()
Gets the folder ID of this d l file entry. |
long |
getGroupId()
Gets the group ID of this d l file entry. |
String |
getIcon()
|
DLFileVersion |
getLatestFileVersion()
|
Lock |
getLock()
|
String |
getLuceneProperties()
|
String |
getMimeType()
Gets the mime type of this d l file entry. |
String |
getMimeType(String version)
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Gets the modified date of this d l file entry. |
String |
getName()
Gets the name of this d l file entry. |
long |
getPrimaryKey()
Gets the primary key of this d l file entry. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
int |
getReadCount()
Gets the read count of this d l file entry. |
long |
getRepositoryId()
|
long |
getSize()
Gets the size of this d l file entry. |
String |
getTitle()
Gets the title of this d l file entry. |
long |
getUserId()
Gets the user ID of this d l file entry. |
String |
getUserName()
Gets the user name of this d l file entry. |
String |
getUserUuid()
Gets the user uuid of this d l file entry. |
String |
getUuid()
Gets the uuid of this d l file entry. |
String |
getVersion()
Gets the version of this d l file entry. |
long |
getVersionUserId()
Gets the version user ID of this d l file entry. |
String |
getVersionUserName()
Gets the version user name of this d l file entry. |
String |
getVersionUserUuid()
Gets the version user uuid of this d l file entry. |
DLFileEntry |
getWrappedDLFileEntry()
|
int |
hashCode()
|
boolean |
hasLock(long userId)
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isLocked()
|
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 d l file entry. |
void |
setCreateDate(Date createDate)
Sets the create date of this d l file entry. |
void |
setDescription(String description)
Sets the description of this d l file entry. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
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 d l file entry. |
void |
setExtraSettings(String extraSettings)
Sets the extra settings of this d l file entry. |
void |
setExtraSettingsProperties(UnicodeProperties extraSettingsProperties)
|
void |
setFileEntryId(long fileEntryId)
Sets the file entry ID of this d l file entry. |
void |
setFolderId(long folderId)
Sets the folder ID of this d l file entry. |
void |
setGroupId(long groupId)
Sets the group ID of this d l file entry. |
void |
setMimeType(String mimeType)
Sets the mime type of this d l file entry. |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this d l file entry. |
void |
setName(String name)
Sets the name of this d l 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 d l file entry |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setReadCount(int readCount)
Sets the read count of this d l file entry. |
void |
setSize(long size)
Sets the size of this d l file entry. |
void |
setTitle(String title)
Sets the title of this d l file entry. |
void |
setUserId(long userId)
Sets the user ID of this d l file entry. |
void |
setUserName(String userName)
Sets the user name of this d l file entry. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this d l file entry. |
void |
setUuid(String uuid)
Sets the uuid of this d l file entry. |
void |
setVersion(String version)
Sets the version of this d l file entry. |
void |
setVersionUserId(long versionUserId)
Sets the version user ID of this d l file entry. |
void |
setVersionUserName(String versionUserName)
Sets the version user name of this d l file entry. |
void |
setVersionUserUuid(String versionUserUuid)
Sets the version user uuid of this d l 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()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DLFileEntryWrapper(DLFileEntry dlFileEntry)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic long getPrimaryKey()
getPrimaryKey in interface DLFileEntryModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface DLFileEntryModelprimaryKey - the primary key of this d l file entrypublic String getUuid()
getUuid in interface DLFileEntryModelpublic void setUuid(String uuid)
setUuid in interface DLFileEntryModeluuid - the uuid of this d l file entrypublic long getFileEntryId()
getFileEntryId in interface DLFileEntryModelpublic void setFileEntryId(long fileEntryId)
setFileEntryId in interface DLFileEntryModelfileEntryId - the file entry ID of this d l file entrypublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface DLFileEntryModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface DLFileEntryModelgroupId - the group ID of this d l file entrypublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface DLFileEntryModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface DLFileEntryModelcompanyId - the company ID of this d l file entrypublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface DLFileEntryModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface DLFileEntryModeluserId - the user ID of this d l file entry
public String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface DLFileEntryModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface DLFileEntryModeluserUuid - the user uuid of this d l file entrypublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface DLFileEntryModelpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface DLFileEntryModeluserName - the user name of this d l file entrypublic long getVersionUserId()
getVersionUserId in interface DLFileEntryModelpublic void setVersionUserId(long versionUserId)
setVersionUserId in interface DLFileEntryModelversionUserId - the version user ID of this d l file entry
public String getVersionUserUuid()
throws SystemException
getVersionUserUuid in interface DLFileEntryModelSystemException - if a system exception occurredpublic void setVersionUserUuid(String versionUserUuid)
setVersionUserUuid in interface DLFileEntryModelversionUserUuid - the version user uuid of this d l file entrypublic String getVersionUserName()
getVersionUserName in interface DLFileEntryModelpublic void setVersionUserName(String versionUserName)
setVersionUserName in interface DLFileEntryModelversionUserName - the version user name of this d l file entrypublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface DLFileEntryModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface DLFileEntryModelcreateDate - the create date of this d l file entrypublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface DLFileEntryModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface DLFileEntryModelmodifiedDate - the modified date of this d l file entrypublic long getFolderId()
getFolderId in interface DLFileEntryModelpublic void setFolderId(long folderId)
setFolderId in interface DLFileEntryModelfolderId - the folder ID of this d l file entrypublic String getName()
getName in interface DLFileEntryModelpublic void setName(String name)
setName in interface DLFileEntryModelname - the name of this d l file entrypublic String getExtension()
getExtension in interface DLFileEntryModelpublic void setExtension(String extension)
setExtension in interface DLFileEntryModelextension - the extension of this d l file entrypublic String getMimeType()
getMimeType in interface DLFileEntryModelpublic void setMimeType(String mimeType)
setMimeType in interface DLFileEntryModelmimeType - the mime type of this d l file entrypublic String getTitle()
getTitle in interface DLFileEntryModelpublic void setTitle(String title)
setTitle in interface DLFileEntryModeltitle - the title of this d l file entrypublic String getDescription()
getDescription in interface DLFileEntryModelpublic void setDescription(String description)
setDescription in interface DLFileEntryModeldescription - the description of this d l file entrypublic String getExtraSettings()
getExtraSettings in interface DLFileEntrygetExtraSettings in interface DLFileEntryModelpublic void setExtraSettings(String extraSettings)
setExtraSettings in interface DLFileEntrysetExtraSettings in interface DLFileEntryModelextraSettings - the extra settings of this d l file entrypublic String getVersion()
getVersion in interface DLFileEntryModelpublic void setVersion(String version)
setVersion in interface DLFileEntryModelversion - the version of this d l file entrypublic long getSize()
getSize in interface DLFileEntryModelpublic void setSize(long size)
setSize in interface DLFileEntryModelsize - the size of this d l file entrypublic int getReadCount()
getReadCount in interface DLFileEntryModelpublic void setReadCount(int readCount)
setReadCount in interface DLFileEntryModelreadCount - the read count of this d l file entrypublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<DLFileEntry>isNew in interface DLFileEntryModeltrue 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 DLFileEntryModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<DLFileEntry>isCachedModel in interface DLFileEntryModeltrue 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 DLFileEntryModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<DLFileEntry>isEscapedModel in interface DLFileEntryModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<DLFileEntry>setEscapedModel in interface DLFileEntryModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<DLFileEntry>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface DLFileEntryModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<DLFileEntry>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface DLFileEntryModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<DLFileEntry>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface DLFileEntrygetExpandoBridge in interface DLFileEntryModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<DLFileEntry>setExpandoBridgeAttributes in interface DLFileEntryModelserviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<DLFileEntry>clone in interface DLFileEntryModelclone in class Objectpublic int compareTo(DLFileEntry dlFileEntry)
compareTo in interface DLFileEntryModelcompareTo in interface Comparable<DLFileEntry>public int hashCode()
hashCode in interface DLFileEntryModelhashCode in class Objectpublic CacheModel<DLFileEntry> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<DLFileEntry>toCacheModel in interface DLFileEntryModelpublic DLFileEntry toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<DLFileEntry>toEscapedModel in interface DLFileEntryModelAutoEscapeBeanHandlerpublic String toString()
toString in interface DLFileEntryModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<DLFileEntry>toXmlString in interface DLFileEntryModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurred
public InputStream getContentStream()
throws PortalException,
SystemException
getContentStream in interface DLFileEntryPortalException
SystemException
public InputStream getContentStream(String version)
throws PortalException,
SystemException
getContentStream in interface DLFileEntryPortalException
SystemExceptionpublic String getMimeType(String version)
getMimeType in interface DLFileEntrypublic UnicodeProperties getExtraSettingsProperties()
getExtraSettingsProperties in interface DLFileEntry
public DLFileVersion getFileVersion()
throws PortalException,
SystemException
getFileVersion in interface DLFileEntryPortalException
SystemException
public DLFileVersion getFileVersion(String version)
throws PortalException,
SystemException
getFileVersion in interface DLFileEntryPortalException
SystemException
public List<DLFileVersion> getFileVersions(int status)
throws SystemException
getFileVersions in interface DLFileEntrySystemExceptionpublic DLFolder getFolder()
getFolder in interface DLFileEntrypublic String getIcon()
getIcon in interface DLFileEntry
public DLFileVersion getLatestFileVersion()
throws PortalException,
SystemException
getLatestFileVersion in interface DLFileEntryPortalException
SystemExceptionpublic Lock getLock()
getLock in interface DLFileEntrypublic String getLuceneProperties()
getLuceneProperties in interface DLFileEntrypublic long getRepositoryId()
getRepositoryId in interface DLFileEntrypublic boolean hasLock(long userId)
hasLock in interface DLFileEntrypublic boolean isLocked()
isLocked in interface DLFileEntrypublic void setExtraSettingsProperties(UnicodeProperties extraSettingsProperties)
setExtraSettingsProperties in interface DLFileEntrypublic DLFileEntry getWrappedDLFileEntry()
public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<DLFileEntry>
|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||