Class FileEntryWrapper
Object
com.liferay.portal.kernel.repository.model.FileEntryWrapper
- All Implemented Interfaces:
AuditedModel,ClassedModel,GroupedModel,ModelWrapper<FileEntry>,StagedGroupedModel,StagedModel,FileEntry,RepositoryEntry,RepositoryModel<FileEntry>,Serializable
- Author:
- Kyle Stiemann
- See Also:
-
Field Summary
Fields inherited from interface com.liferay.portal.kernel.repository.model.FileEntry
FILE_ENTRY_ID_ACCESSOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleancontainsPermission(PermissionChecker permissionChecker, String actionId) booleanvoidexecute(RepositoryModelOperation repositoryModelOperation) longReturns the content stream of the current file version.getContentStream(String version) longReturns the current file version.getFileVersion(String version) getFileVersions(int status) getFileVersions(int status, int start, int end) intgetFileVersionsCount(int status) longlonggetIcon()Returns the latest file version.getLatestFileVersion(boolean trusted) Returns the latest file version, optionally bypassing security checks.getLock()getMimeType(String version) getModel()Class<?>longlong<T extends Capability>
TgetRepositoryCapability(Class<T> capabilityClass) longlonggetSize()getTitle()longgetUuid()inthashCode()booleanhasLock()booleanbooleanbooleanbooleanbooleanboolean<T extends Capability>
booleanisRepositoryCapabilityProvided(Class<T> capabilityClass) booleanbooleanbooleanvoidsetCompanyId(long companyId) voidsetCreateDate(Date createDate) voidsetGroupId(long groupId) voidsetLastPublishDate(Date lastPublishDate) voidsetModifiedDate(Date modifiedDate) voidsetPrimaryKeyObj(Serializable primaryKeyObj) voidsetUserId(long userId) voidsetUserName(String userName) voidsetUserUuid(String userUuid) voidtoString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.repository.model.FileEntry
getExternalReferenceCode
-
Constructor Details
-
FileEntryWrapper
-
-
Method Details
-
clone
- Specified by:
clonein interfaceStagedModel- Overrides:
clonein classObject
-
containsPermission
public boolean containsPermission(PermissionChecker permissionChecker, String actionId) throws PortalException - Specified by:
containsPermissionin interfaceFileEntry- Throws:
PortalException
-
equals
-
execute
- Specified by:
executein interfaceRepositoryModel<FileEntry>- Throws:
PortalException
-
getAttributes
- Specified by:
getAttributesin interfaceRepositoryModel<FileEntry>
-
getCompanyId
public long getCompanyId()- Specified by:
getCompanyIdin interfaceAuditedModel- Specified by:
getCompanyIdin interfaceFileEntry- Specified by:
getCompanyIdin interfaceRepositoryEntry- Specified by:
getCompanyIdin interfaceStagedModel
-
getContentStream
Description copied from interface:FileEntryReturns the content stream of the current file version. In a Liferay repository, this is the latest approved version. In third-party repositories, the latest content stream may be returned, regardless of workflow state.- Specified by:
getContentStreamin interfaceFileEntry- Returns:
- the content stream of the current file version
- Throws:
PortalException- See Also:
-
getContentStream
- Specified by:
getContentStreamin interfaceFileEntry- Throws:
PortalException
-
getCreateDate
- Specified by:
getCreateDatein interfaceAuditedModel- Specified by:
getCreateDatein interfaceFileEntry- Specified by:
getCreateDatein interfaceRepositoryEntry- Specified by:
getCreateDatein interfaceStagedModel
-
getDescription
- Specified by:
getDescriptionin interfaceFileEntry
-
getDisplayDate
- Specified by:
getDisplayDatein interfaceFileEntry
-
getExpandoBridge
- Specified by:
getExpandoBridgein interfaceClassedModel
-
getExpirationDate
- Specified by:
getExpirationDatein interfaceFileEntry
-
getExtension
- Specified by:
getExtensionin interfaceFileEntry
-
getFileEntryId
public long getFileEntryId()- Specified by:
getFileEntryIdin interfaceFileEntry
-
getFileName
- Specified by:
getFileNamein interfaceFileEntry
-
getFileShortcuts
- Specified by:
getFileShortcutsin interfaceFileEntry
-
getFileVersion
Description copied from interface:FileEntryReturns the current file version. The workflow state of the latest file version may affect the file version that is returned. In a Liferay repository, the latest approved version is returned; the latest version regardless of workflow state can be retrieved byFileEntry.getLatestFileVersion(). In third-party repositories, these two methods may function identically.- Specified by:
getFileVersionin interfaceFileEntry- Returns:
- the current file version
- Throws:
PortalException
-
getFileVersion
- Specified by:
getFileVersionin interfaceFileEntry- Throws:
PortalException
-
getFileVersions
- Specified by:
getFileVersionsin interfaceFileEntry
-
getFileVersions
- Specified by:
getFileVersionsin interfaceFileEntry
-
getFileVersionsCount
public int getFileVersionsCount(int status) - Specified by:
getFileVersionsCountin interfaceFileEntry
-
getFolder
-
getFolderId
public long getFolderId()- Specified by:
getFolderIdin interfaceFileEntry
-
getGroupId
public long getGroupId()- Specified by:
getGroupIdin interfaceFileEntry- Specified by:
getGroupIdin interfaceGroupedModel- Specified by:
getGroupIdin interfaceRepositoryEntry
-
getIcon
-
getIconCssClass
- Specified by:
getIconCssClassin interfaceFileEntry
-
getLastPublishDate
- Specified by:
getLastPublishDatein interfaceStagedGroupedModel
-
getLatestFileVersion
Description copied from interface:FileEntryReturns the latest file version. In a Liferay repository, the latest version is returned, regardless of workflow state. In third-party repositories, the functionality of this method andFileEntry.getFileVersion()may be identical.- Specified by:
getLatestFileVersionin interfaceFileEntry- Returns:
- the latest file version
- Throws:
PortalException
-
getLatestFileVersion
Description copied from interface:FileEntryReturns the latest file version, optionally bypassing security checks. In a Liferay repository, the latest version is returned, regardless of workflow state. In third-party repositories, the functionality of this method andFileEntry.getFileVersion()may be identical.- Specified by:
getLatestFileVersionin interfaceFileEntry- Parameters:
trusted- whether to bypass permission checks. In third-party repositories, this parameter may be ignored.- Returns:
- the latest file version
- Throws:
PortalException
-
getLock
-
getMimeType
- Specified by:
getMimeTypein interfaceFileEntry
-
getMimeType
- Specified by:
getMimeTypein interfaceFileEntry
-
getModel
- Specified by:
getModelin interfaceRepositoryModel<FileEntry>
-
getModelClass
- Specified by:
getModelClassin interfaceClassedModel
-
getModelClassName
- Specified by:
getModelClassNamein interfaceClassedModel
-
getModifiedDate
- Specified by:
getModifiedDatein interfaceAuditedModel- Specified by:
getModifiedDatein interfaceFileEntry- Specified by:
getModifiedDatein interfaceRepositoryEntry- Specified by:
getModifiedDatein interfaceStagedModel
-
getPrimaryKey
public long getPrimaryKey()- Specified by:
getPrimaryKeyin interfaceRepositoryModel<FileEntry>
-
getPrimaryKeyObj
- Specified by:
getPrimaryKeyObjin interfaceClassedModel
-
getReadCount
public long getReadCount()- Specified by:
getReadCountin interfaceFileEntry
-
getRepositoryCapability
- Specified by:
getRepositoryCapabilityin interfaceFileEntry
-
getRepositoryId
public long getRepositoryId()- Specified by:
getRepositoryIdin interfaceFileEntry
-
getReviewDate
- Specified by:
getReviewDatein interfaceFileEntry
-
getSize
public long getSize() -
getStagedModelType
- Specified by:
getStagedModelTypein interfaceStagedModel
-
getTitle
-
getUserId
public long getUserId()- Specified by:
getUserIdin interfaceAuditedModel- Specified by:
getUserIdin interfaceFileEntry- Specified by:
getUserIdin interfaceRepositoryEntry
-
getUserName
- Specified by:
getUserNamein interfaceAuditedModel- Specified by:
getUserNamein interfaceFileEntry- Specified by:
getUserNamein interfaceRepositoryEntry
-
getUserUuid
- Specified by:
getUserUuidin interfaceAuditedModel- Specified by:
getUserUuidin interfaceFileEntry- Specified by:
getUserUuidin interfaceRepositoryEntry
-
getUuid
- Specified by:
getUuidin interfaceFileEntry- Specified by:
getUuidin interfaceStagedModel
-
getVersion
- Specified by:
getVersionin interfaceFileEntry
-
getWrappedModel
- Specified by:
getWrappedModelin interfaceModelWrapper<FileEntry>
-
hashCode
public int hashCode() -
hasLock
public boolean hasLock() -
isCheckedOut
public boolean isCheckedOut()- Specified by:
isCheckedOutin interfaceFileEntry
-
isDefaultRepository
public boolean isDefaultRepository()- Specified by:
isDefaultRepositoryin interfaceFileEntry
-
isEscapedModel
public boolean isEscapedModel()- Specified by:
isEscapedModelin interfaceRepositoryModel<FileEntry>
-
isInTrash
public boolean isInTrash() -
isInTrashContainer
public boolean isInTrashContainer()- Specified by:
isInTrashContainerin interfaceFileEntry
-
isManualCheckInRequired
public boolean isManualCheckInRequired()- Specified by:
isManualCheckInRequiredin interfaceFileEntry
-
isRepositoryCapabilityProvided
- Specified by:
isRepositoryCapabilityProvidedin interfaceFileEntry
-
isSupportsLocking
public boolean isSupportsLocking()- Specified by:
isSupportsLockingin interfaceFileEntry
-
isSupportsMetadata
public boolean isSupportsMetadata()- Specified by:
isSupportsMetadatain interfaceFileEntry
-
isSupportsSocial
public boolean isSupportsSocial()- Specified by:
isSupportsSocialin interfaceFileEntry
-
setCompanyId
public void setCompanyId(long companyId) - Specified by:
setCompanyIdin interfaceAuditedModel- Specified by:
setCompanyIdin interfaceStagedModel
-
setCreateDate
- Specified by:
setCreateDatein interfaceAuditedModel- Specified by:
setCreateDatein interfaceStagedModel
-
setGroupId
public void setGroupId(long groupId) - Specified by:
setGroupIdin interfaceGroupedModel
-
setLastPublishDate
- Specified by:
setLastPublishDatein interfaceStagedGroupedModel
-
setModifiedDate
- Specified by:
setModifiedDatein interfaceAuditedModel- Specified by:
setModifiedDatein interfaceStagedModel
-
setPrimaryKeyObj
- Specified by:
setPrimaryKeyObjin interfaceClassedModel
-
setUserId
public void setUserId(long userId) - Specified by:
setUserIdin interfaceAuditedModel
-
setUserName
- Specified by:
setUserNamein interfaceAuditedModel
-
setUserUuid
- Specified by:
setUserUuidin interfaceAuditedModel
-
setUuid
- Specified by:
setUuidin interfaceStagedModel
-
toEscapedModel
- Specified by:
toEscapedModelin interfaceRepositoryModel<FileEntry>
-
toString
-
toUnescapedModel
- Specified by:
toUnescapedModelin interfaceRepositoryModel<FileEntry>
-