Interface FileEntry
- All Superinterfaces:
AuditedModel,ClassedModel,GroupedModel,RepositoryEntry,RepositoryModel<FileEntry>,Serializable,StagedGroupedModel,StagedModel
- All Known Implementing Classes:
FileEntryProxyBean,FileEntryWrapper
- Author:
- Alexander Chow
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsPermission(PermissionChecker permissionChecker, String actionId) longReturns the content stream of the current file version.getContentStream(String version) default StringlongReturns 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) long<T extends Capability>
TgetRepositoryCapability(Class<T> capabilityClass) longlonggetSize()getTitle()longgetUuid()booleanhasLock()booleanbooleanbooleanbooleanboolean<T extends Capability>
booleanisRepositoryCapabilityProvided(Class<T> capabilityClass) booleanbooleanbooleanMethods inherited from interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId, setCreateDate, setModifiedDate, setUserId, setUserName, setUserUuidMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, setPrimaryKeyObjMethods inherited from interface com.liferay.portal.kernel.model.GroupedModel
setGroupIdMethods inherited from interface com.liferay.portal.kernel.repository.model.RepositoryModel
execute, getAttributes, getModel, getPrimaryKey, isEscapedModel, toEscapedModel, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.StagedGroupedModel
getLastPublishDate, setLastPublishDateMethods inherited from interface com.liferay.portal.kernel.model.StagedModel
clone, getStagedModelType, setCompanyId, setCreateDate, setModifiedDate, setUuid
-
Field Details
-
FILE_ENTRY_ID_ACCESSOR
-
-
Method Details
-
containsPermission
boolean containsPermission(PermissionChecker permissionChecker, String actionId) throws PortalException - Throws:
PortalException
-
getCompanyId
long getCompanyId()- Specified by:
getCompanyIdin interfaceAuditedModel- Specified by:
getCompanyIdin interfaceRepositoryEntry- Specified by:
getCompanyIdin interfaceStagedModel
-
getContentStream
Returns 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.- Returns:
- the content stream of the current file version
- Throws:
PortalException- See Also:
-
getContentStream
- Throws:
PortalException
-
getCreateDate
Date getCreateDate()- Specified by:
getCreateDatein interfaceAuditedModel- Specified by:
getCreateDatein interfaceRepositoryEntry- Specified by:
getCreateDatein interfaceStagedModel
-
getDescription
String getDescription() -
getDisplayDate
Date getDisplayDate() -
getExpirationDate
Date getExpirationDate() -
getExtension
String getExtension() -
getExternalReferenceCode
-
getFileEntryId
long getFileEntryId() -
getFileName
String getFileName() -
getFileShortcuts
List<FileShortcut> getFileShortcuts() -
getFileVersion
Returns 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 bygetLatestFileVersion(). In third-party repositories, these two methods may function identically.- Returns:
- the current file version
- Throws:
PortalException
-
getFileVersion
- Throws:
PortalException
-
getFileVersions
-
getFileVersions
-
getFileVersionsCount
int getFileVersionsCount(int status) -
getFolder
Folder getFolder() -
getFolderId
long getFolderId() -
getGroupId
long getGroupId()- Specified by:
getGroupIdin interfaceGroupedModel- Specified by:
getGroupIdin interfaceRepositoryEntry
-
getIcon
String getIcon() -
getIconCssClass
String getIconCssClass() -
getLatestFileVersion
Returns 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 andgetFileVersion()may be identical.- Returns:
- the latest file version
- Throws:
PortalException
-
getLatestFileVersion
Returns 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 andgetFileVersion()may be identical.- Parameters:
trusted- whether to bypass permission checks. In third-party repositories, this parameter may be ignored.- Returns:
- the latest file version
- Throws:
PortalException
-
getLock
Lock getLock() -
getMimeType
String getMimeType() -
getMimeType
-
getModifiedDate
Date getModifiedDate()- Specified by:
getModifiedDatein interfaceAuditedModel- Specified by:
getModifiedDatein interfaceRepositoryEntry- Specified by:
getModifiedDatein interfaceStagedModel
-
getReadCount
long getReadCount() -
getRepositoryCapability
-
getRepositoryId
long getRepositoryId() -
getReviewDate
Date getReviewDate() -
getSize
long getSize() -
getTitle
String getTitle() -
getUserId
long getUserId()- Specified by:
getUserIdin interfaceAuditedModel- Specified by:
getUserIdin interfaceRepositoryEntry
-
getUserName
String getUserName()- Specified by:
getUserNamein interfaceAuditedModel- Specified by:
getUserNamein interfaceRepositoryEntry
-
getUserUuid
String getUserUuid()- Specified by:
getUserUuidin interfaceAuditedModel- Specified by:
getUserUuidin interfaceRepositoryEntry
-
getUuid
String getUuid()- Specified by:
getUuidin interfaceStagedModel
-
getVersion
String getVersion() -
hasLock
boolean hasLock() -
isCheckedOut
boolean isCheckedOut() -
isDefaultRepository
boolean isDefaultRepository() -
isInTrash
boolean isInTrash() -
isInTrashContainer
boolean isInTrashContainer() -
isManualCheckInRequired
boolean isManualCheckInRequired() -
isRepositoryCapabilityProvided
-
isSupportsLocking
boolean isSupportsLocking() -
isSupportsMetadata
boolean isSupportsMetadata() -
isSupportsSocial
boolean isSupportsSocial()
-