Class FileEntryProxyBean
Object
com.liferay.portal.kernel.repository.proxy.RepositoryModelProxyBean
com.liferay.portal.kernel.repository.proxy.FileEntryProxyBean
- All Implemented Interfaces:
AuditedModel
,ClassedModel
,GroupedModel
,StagedGroupedModel
,StagedModel
,FileEntry
,RepositoryEntry
,RepositoryModel<FileEntry>
,Serializable
- Author:
- Mika Koivisto
- 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()
boolean
containsPermission
(PermissionChecker permissionChecker, String actionId) void
execute
(RepositoryModelOperation repositoryModelOperation) long
Returns the content stream of the current file version.getContentStream
(String version) long
Returns the current file version.getFileVersion
(String version) getFileVersions
(int status) getFileVersions
(int status, int start, int end) int
getFileVersionsCount
(int status) long
long
getIcon()
Returns the latest file version.getLatestFileVersion
(boolean trusted) Returns the latest file version, optionally bypassing security checks.getLock()
getMimeType
(String version) getModel()
Class<?>
long
long
<T extends Capability>
TgetRepositoryCapability
(Class<T> capabilityClass) long
long
getSize()
getTitle()
long
getUuid()
boolean
hasLock()
boolean
boolean
boolean
boolean
boolean
boolean
<T extends Capability>
booleanisRepositoryCapabilityProvided
(Class<T> capabilityClass) boolean
boolean
boolean
void
setCompanyId
(long companyId) void
setCreateDate
(Date createDate) void
setGroupId
(long groupId) void
setLastPublishDate
(Date lastPublishDate) void
setModifiedDate
(Date modifiedDate) void
setPrimaryKeyObj
(Serializable primaryKeyObj) void
setUserId
(long userId) void
setUserName
(String userName) void
setUserUuid
(String userUuid) void
Methods inherited from class com.liferay.portal.kernel.repository.proxy.RepositoryModelProxyBean
newFileEntryProxyBean, newFileShortcutProxyBean, newFileVersionProxyBean, newFolderProxyBean, newLocalRepositoryProxyBean, newProxyBean, newProxyInstance, toFileEntryProxyBeans, toFileVersionProxyBeans, toFolderProxyBeans, toObjectProxyBeans
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.repository.model.FileEntry
getExternalReferenceCode
-
Constructor Details
-
FileEntryProxyBean
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceStagedModel
- Overrides:
clone
in classObject
-
containsPermission
public boolean containsPermission(PermissionChecker permissionChecker, String actionId) throws PortalException - Specified by:
containsPermission
in interfaceFileEntry
- Throws:
PortalException
-
execute
- Specified by:
execute
in interfaceRepositoryModel<FileEntry>
- Throws:
PortalException
-
getAttributes
- Specified by:
getAttributes
in interfaceRepositoryModel<FileEntry>
-
getCompanyId
public long getCompanyId()- Specified by:
getCompanyId
in interfaceAuditedModel
- Specified by:
getCompanyId
in interfaceFileEntry
- Specified by:
getCompanyId
in interfaceRepositoryEntry
- Specified by:
getCompanyId
in interfaceStagedModel
-
getContentStream
Description copied from interface:FileEntry
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.- Specified by:
getContentStream
in interfaceFileEntry
- Returns:
- the content stream of the current file version
- Throws:
PortalException
- See Also:
-
getContentStream
- Specified by:
getContentStream
in interfaceFileEntry
- Throws:
PortalException
-
getCreateDate
- Specified by:
getCreateDate
in interfaceAuditedModel
- Specified by:
getCreateDate
in interfaceFileEntry
- Specified by:
getCreateDate
in interfaceRepositoryEntry
- Specified by:
getCreateDate
in interfaceStagedModel
-
getDescription
- Specified by:
getDescription
in interfaceFileEntry
-
getDisplayDate
- Specified by:
getDisplayDate
in interfaceFileEntry
-
getExpandoBridge
- Specified by:
getExpandoBridge
in interfaceClassedModel
-
getExpirationDate
- Specified by:
getExpirationDate
in interfaceFileEntry
-
getExtension
- Specified by:
getExtension
in interfaceFileEntry
-
getFileEntryId
public long getFileEntryId()- Specified by:
getFileEntryId
in interfaceFileEntry
-
getFileName
- Specified by:
getFileName
in interfaceFileEntry
-
getFileShortcuts
- Specified by:
getFileShortcuts
in interfaceFileEntry
-
getFileVersion
Description copied from interface:FileEntry
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 byFileEntry.getLatestFileVersion()
. In third-party repositories, these two methods may function identically.- Specified by:
getFileVersion
in interfaceFileEntry
- Returns:
- the current file version
- Throws:
PortalException
-
getFileVersion
- Specified by:
getFileVersion
in interfaceFileEntry
- Throws:
PortalException
-
getFileVersions
- Specified by:
getFileVersions
in interfaceFileEntry
-
getFileVersions
- Specified by:
getFileVersions
in interfaceFileEntry
-
getFileVersionsCount
public int getFileVersionsCount(int status) - Specified by:
getFileVersionsCount
in interfaceFileEntry
-
getFolder
-
getFolderId
public long getFolderId()- Specified by:
getFolderId
in interfaceFileEntry
-
getGroupId
public long getGroupId()- Specified by:
getGroupId
in interfaceFileEntry
- Specified by:
getGroupId
in interfaceGroupedModel
- Specified by:
getGroupId
in interfaceRepositoryEntry
-
getIcon
-
getIconCssClass
- Specified by:
getIconCssClass
in interfaceFileEntry
-
getLastPublishDate
- Specified by:
getLastPublishDate
in interfaceStagedGroupedModel
-
getLatestFileVersion
Description copied from interface:FileEntry
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 andFileEntry.getFileVersion()
may be identical.- Specified by:
getLatestFileVersion
in interfaceFileEntry
- Returns:
- the latest file version
- Throws:
PortalException
-
getLatestFileVersion
Description copied from interface:FileEntry
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 andFileEntry.getFileVersion()
may be identical.- Specified by:
getLatestFileVersion
in 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:
getMimeType
in interfaceFileEntry
-
getMimeType
- Specified by:
getMimeType
in interfaceFileEntry
-
getModel
- Specified by:
getModel
in interfaceRepositoryModel<FileEntry>
-
getModelClass
- Specified by:
getModelClass
in interfaceClassedModel
-
getModelClassName
- Specified by:
getModelClassName
in interfaceClassedModel
-
getModifiedDate
- Specified by:
getModifiedDate
in interfaceAuditedModel
- Specified by:
getModifiedDate
in interfaceFileEntry
- Specified by:
getModifiedDate
in interfaceRepositoryEntry
- Specified by:
getModifiedDate
in interfaceStagedModel
-
getPrimaryKey
public long getPrimaryKey()- Specified by:
getPrimaryKey
in interfaceRepositoryModel<FileEntry>
-
getPrimaryKeyObj
- Specified by:
getPrimaryKeyObj
in interfaceClassedModel
-
getReadCount
public long getReadCount()- Specified by:
getReadCount
in interfaceFileEntry
-
getRepositoryCapability
- Specified by:
getRepositoryCapability
in interfaceFileEntry
-
getRepositoryId
public long getRepositoryId()- Specified by:
getRepositoryId
in interfaceFileEntry
-
getReviewDate
- Specified by:
getReviewDate
in interfaceFileEntry
-
getSize
public long getSize() -
getStagedModelType
- Specified by:
getStagedModelType
in interfaceStagedModel
-
getTitle
-
getUserId
public long getUserId()- Specified by:
getUserId
in interfaceAuditedModel
- Specified by:
getUserId
in interfaceFileEntry
- Specified by:
getUserId
in interfaceRepositoryEntry
-
getUserName
- Specified by:
getUserName
in interfaceAuditedModel
- Specified by:
getUserName
in interfaceFileEntry
- Specified by:
getUserName
in interfaceRepositoryEntry
-
getUserUuid
- Specified by:
getUserUuid
in interfaceAuditedModel
- Specified by:
getUserUuid
in interfaceFileEntry
- Specified by:
getUserUuid
in interfaceRepositoryEntry
-
getUuid
- Specified by:
getUuid
in interfaceFileEntry
- Specified by:
getUuid
in interfaceStagedModel
-
getVersion
- Specified by:
getVersion
in interfaceFileEntry
-
hasLock
public boolean hasLock() -
isCheckedOut
public boolean isCheckedOut()- Specified by:
isCheckedOut
in interfaceFileEntry
-
isDefaultRepository
public boolean isDefaultRepository()- Specified by:
isDefaultRepository
in interfaceFileEntry
-
isEscapedModel
public boolean isEscapedModel()- Specified by:
isEscapedModel
in interfaceRepositoryModel<FileEntry>
-
isInTrash
public boolean isInTrash() -
isInTrashContainer
public boolean isInTrashContainer()- Specified by:
isInTrashContainer
in interfaceFileEntry
-
isManualCheckInRequired
public boolean isManualCheckInRequired()- Specified by:
isManualCheckInRequired
in interfaceFileEntry
-
isRepositoryCapabilityProvided
- Specified by:
isRepositoryCapabilityProvided
in interfaceFileEntry
-
isSupportsLocking
public boolean isSupportsLocking()- Specified by:
isSupportsLocking
in interfaceFileEntry
-
isSupportsMetadata
public boolean isSupportsMetadata()- Specified by:
isSupportsMetadata
in interfaceFileEntry
-
isSupportsSocial
public boolean isSupportsSocial()- Specified by:
isSupportsSocial
in interfaceFileEntry
-
setCompanyId
public void setCompanyId(long companyId) - Specified by:
setCompanyId
in interfaceAuditedModel
- Specified by:
setCompanyId
in interfaceStagedModel
-
setCreateDate
- Specified by:
setCreateDate
in interfaceAuditedModel
- Specified by:
setCreateDate
in interfaceStagedModel
-
setGroupId
public void setGroupId(long groupId) - Specified by:
setGroupId
in interfaceGroupedModel
-
setLastPublishDate
- Specified by:
setLastPublishDate
in interfaceStagedGroupedModel
-
setModifiedDate
- Specified by:
setModifiedDate
in interfaceAuditedModel
- Specified by:
setModifiedDate
in interfaceStagedModel
-
setPrimaryKeyObj
- Specified by:
setPrimaryKeyObj
in interfaceClassedModel
-
setUserId
public void setUserId(long userId) - Specified by:
setUserId
in interfaceAuditedModel
-
setUserName
- Specified by:
setUserName
in interfaceAuditedModel
-
setUserUuid
- Specified by:
setUserUuid
in interfaceAuditedModel
-
setUuid
- Specified by:
setUuid
in interfaceStagedModel
-
toEscapedModel
- Specified by:
toEscapedModel
in interfaceRepositoryModel<FileEntry>
-
toUnescapedModel
- Specified by:
toUnescapedModel
in interfaceRepositoryModel<FileEntry>
-