Liferay 6.2-ce-ga5

com.liferay.portal.repository.liferayrepository.model
Class LiferayFileVersion

java.lang.Object
  extended by com.liferay.portal.repository.liferayrepository.util.LiferayBase
      extended by com.liferay.portal.repository.liferayrepository.model.LiferayModel
          extended by com.liferay.portal.repository.liferayrepository.model.LiferayFileVersion
All Implemented Interfaces:
FileVersion, RepositoryModel<FileVersion>, AuditedModel, ClassedModel, GroupedModel, StagedGroupedModel, StagedModel, Serializable

public class LiferayFileVersion
extends LiferayModel
implements FileVersion

See Also:
Serialized Form

Constructor Summary
LiferayFileVersion(DLFileVersion dlFileVersion)
           
LiferayFileVersion(DLFileVersion dlFileVersion, boolean escapedModel)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 Map<String,Serializable> getAttributes()
           
 String getChangeLog()
           
 long getCompanyId()
           
 InputStream getContentStream(boolean incrementCounter)
           
 Date getCreateDate()
           
 String getDescription()
           
 ExpandoBridge getExpandoBridge()
           
 String getExtension()
           
 String getExtraSettings()
           
 File getFile(boolean incrementCounter)
           
 FileEntry getFileEntry()
           
 long getFileEntryId()
           
 long getFileVersionId()
           
 long getGroupId()
           
 String getIcon()
           
 String getMimeType()
           
 Object getModel()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
           
 long getRepositoryId()
           
 long getSize()
           
 StagedModelType getStagedModelType()
           
 int getStatus()
           
 long getStatusByUserId()
           
 String getStatusByUserName()
           
 String getStatusByUserUuid()
           
 Date getStatusDate()
           
 String getTitle()
           
 long getUserId()
           
 String getUserName()
           
 String getUserUuid()
           
 String getUuid()
           
 String getVersion()
           
 boolean isApproved()
           
 boolean isDefaultRepository()
           
 boolean isDraft()
           
 boolean isEscapedModel()
           
 boolean isExpired()
           
 boolean isPending()
           
 void setCompanyId(long companyId)
           
 void setCreateDate(Date date)
           
 void setGroupId(long groupId)
           
 void setModifiedDate(Date date)
           
 void setPrimaryKey(long primaryKey)
           
 void setPrimaryKeyObj(Serializable primaryKeyObj)
           
 void setUserId(long userId)
           
 void setUserName(String userName)
           
 void setUserUuid(String userUuid)
           
 void setUuid(String uuid)
           
 FileVersion toEscapedModel()
           
 String toString()
           
 FileVersion toUnescapedModel()
           
 
Methods inherited from class com.liferay.portal.repository.liferayrepository.util.LiferayBase
toFileEntries, toFileEntriesAndFolders, toFileVersions, toFolders
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiferayFileVersion

public LiferayFileVersion(DLFileVersion dlFileVersion)

LiferayFileVersion

public LiferayFileVersion(DLFileVersion dlFileVersion,
                          boolean escapedModel)
Method Detail

clone

public Object clone()
Specified by:
clone in interface StagedModel
Overrides:
clone in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getAttributes

public Map<String,Serializable> getAttributes()
Specified by:
getAttributes in interface RepositoryModel<FileVersion>

getChangeLog

public String getChangeLog()
Specified by:
getChangeLog in interface FileVersion

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface FileVersion
Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface StagedModel
Specified by:
getCompanyId in class LiferayModel

getContentStream

public InputStream getContentStream(boolean incrementCounter)
                             throws PortalException,
                                    SystemException
Specified by:
getContentStream in interface FileVersion
Throws:
PortalException
SystemException

getCreateDate

public Date getCreateDate()
Specified by:
getCreateDate in interface FileVersion
Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface StagedModel

getDescription

public String getDescription()
Specified by:
getDescription in interface FileVersion

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface FileVersion
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in class LiferayModel

getExtension

public String getExtension()
Specified by:
getExtension in interface FileVersion

getExtraSettings

public String getExtraSettings()
Specified by:
getExtraSettings in interface FileVersion

getFile

public File getFile(boolean incrementCounter)
             throws PortalException,
                    SystemException
Throws:
PortalException
SystemException

getFileEntry

public FileEntry getFileEntry()
                       throws PortalException,
                              SystemException
Specified by:
getFileEntry in interface FileVersion
Throws:
PortalException
SystemException

getFileEntryId

public long getFileEntryId()
Specified by:
getFileEntryId in interface FileVersion

getFileVersionId

public long getFileVersionId()
Specified by:
getFileVersionId in interface FileVersion

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface FileVersion
Specified by:
getGroupId in interface GroupedModel

getIcon

public String getIcon()
Specified by:
getIcon in interface FileVersion

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface FileVersion

getModel

public Object getModel()
Specified by:
getModel in interface RepositoryModel<FileVersion>

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel
Specified by:
getModelClassName in class LiferayModel

getModifiedDate

public Date getModifiedDate()
Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface StagedModel

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface RepositoryModel<FileVersion>
Specified by:
getPrimaryKey in class LiferayModel

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface ClassedModel

getRepositoryId

public long getRepositoryId()
Specified by:
getRepositoryId in interface FileVersion

getSize

public long getSize()
Specified by:
getSize in interface FileVersion

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getStatus

public int getStatus()
Specified by:
getStatus in interface FileVersion

getStatusByUserId

public long getStatusByUserId()
Specified by:
getStatusByUserId in interface FileVersion

getStatusByUserName

public String getStatusByUserName()
Specified by:
getStatusByUserName in interface FileVersion

getStatusByUserUuid

public String getStatusByUserUuid()
                           throws SystemException
Specified by:
getStatusByUserUuid in interface FileVersion
Throws:
SystemException

getStatusDate

public Date getStatusDate()
Specified by:
getStatusDate in interface FileVersion

getTitle

public String getTitle()
Specified by:
getTitle in interface FileVersion

getUserId

public long getUserId()
Specified by:
getUserId in interface FileVersion
Specified by:
getUserId in interface AuditedModel

getUserName

public String getUserName()
Specified by:
getUserName in interface FileVersion
Specified by:
getUserName in interface AuditedModel

getUserUuid

public String getUserUuid()
                   throws SystemException
Specified by:
getUserUuid in interface FileVersion
Specified by:
getUserUuid in interface AuditedModel
Throws:
SystemException

getUuid

public String getUuid()
Specified by:
getUuid in interface FileVersion
Specified by:
getUuid in interface StagedModel

getVersion

public String getVersion()
Specified by:
getVersion in interface FileVersion

isApproved

public boolean isApproved()
Specified by:
isApproved in interface FileVersion

isDefaultRepository

public boolean isDefaultRepository()
Specified by:
isDefaultRepository in interface FileVersion

isDraft

public boolean isDraft()
Specified by:
isDraft in interface FileVersion

isEscapedModel

public boolean isEscapedModel()
Specified by:
isEscapedModel in interface RepositoryModel<FileVersion>

isExpired

public boolean isExpired()
Specified by:
isExpired in interface FileVersion

isPending

public boolean isPending()
Specified by:
isPending in interface FileVersion

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface StagedModel

setCreateDate

public void setCreateDate(Date date)
Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface StagedModel

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface GroupedModel

setModifiedDate

public void setModifiedDate(Date date)
Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface StagedModel

setPrimaryKey

public void setPrimaryKey(long primaryKey)

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Specified by:
setPrimaryKeyObj in interface ClassedModel

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface AuditedModel

setUserName

public void setUserName(String userName)
Specified by:
setUserName in interface AuditedModel

setUserUuid

public void setUserUuid(String userUuid)
Specified by:
setUserUuid in interface AuditedModel

setUuid

public void setUuid(String uuid)
Specified by:
setUuid in interface StagedModel

toEscapedModel

public FileVersion toEscapedModel()
Specified by:
toEscapedModel in interface RepositoryModel<FileVersion>

toString

public String toString()
Overrides:
toString in class Object

toUnescapedModel

public FileVersion toUnescapedModel()
Specified by:
toUnescapedModel in interface RepositoryModel<FileVersion>

Liferay 6.2-ce-ga5