public class FileEntryProxyBean extends RepositoryModelProxyBean implements FileEntry
FILE_ENTRY_ID_ACCESSOR| Constructor and Description |
|---|
FileEntryProxyBean(FileEntry fileEntry,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
containsPermission(PermissionChecker permissionChecker,
String actionId) |
void |
execute(RepositoryModelOperation repositoryModelOperation) |
Map<String,Serializable> |
getAttributes() |
long |
getCompanyId() |
InputStream |
getContentStream()
Returns the content stream of the current file version.
|
InputStream |
getContentStream(String version) |
Date |
getCreateDate() |
String |
getDescription() |
ExpandoBridge |
getExpandoBridge() |
Date |
getExpirationDate() |
String |
getExtension() |
long |
getFileEntryId() |
String |
getFileName() |
List<FileShortcut> |
getFileShortcuts() |
FileVersion |
getFileVersion()
Returns the current file version.
|
FileVersion |
getFileVersion(String version) |
List<FileVersion> |
getFileVersions(int status) |
int |
getFileVersionsCount(int status) |
Folder |
getFolder() |
long |
getFolderId() |
long |
getGroupId() |
String |
getIcon() |
String |
getIconCssClass() |
Date |
getLastPublishDate() |
FileVersion |
getLatestFileVersion()
Returns the latest file version.
|
FileVersion |
getLatestFileVersion(boolean trusted)
Returns the latest file version, optionally bypassing security checks.
|
Lock |
getLock() |
String |
getMimeType() |
String |
getMimeType(String version) |
Object |
getModel() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate() |
long |
getPrimaryKey() |
Serializable |
getPrimaryKeyObj() |
long |
getReadCount() |
<T extends Capability> |
getRepositoryCapability(Class<T> capabilityClass) |
long |
getRepositoryId() |
Date |
getReviewDate() |
long |
getSize() |
StagedModelType |
getStagedModelType() |
String |
getTitle() |
long |
getUserId() |
String |
getUserName() |
String |
getUserUuid() |
String |
getUuid() |
String |
getVersion() |
boolean |
hasLock() |
boolean |
isCheckedOut() |
boolean |
isDefaultRepository() |
boolean |
isEscapedModel() |
boolean |
isInTrash() |
boolean |
isInTrashContainer() |
boolean |
isManualCheckInRequired() |
<T extends Capability> |
isRepositoryCapabilityProvided(Class<T> capabilityClass) |
boolean |
isSupportsLocking() |
boolean |
isSupportsMetadata() |
boolean |
isSupportsSocial() |
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 |
setUuid(String uuid) |
FileEntry |
toEscapedModel() |
FileEntry |
toUnescapedModel() |
newFileEntryProxyBean, newFileShortcutProxyBean, newFileVersionProxyBean, newFolderProxyBean, newLocalRepositoryProxyBean, newProxyBean, newProxyInstance, toFileEntryProxyBeans, toFileVersionProxyBeans, toFolderProxyBeans, toObjectProxyBeansequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExternalReferenceCodepublic FileEntryProxyBean(FileEntry fileEntry, ClassLoader classLoader)
public Object clone()
clone in interface StagedModelclone in class Objectpublic boolean containsPermission(PermissionChecker permissionChecker, String actionId) throws PortalException
containsPermission in interface FileEntryPortalExceptionpublic void execute(RepositoryModelOperation repositoryModelOperation) throws PortalException
execute in interface RepositoryModel<FileEntry>PortalExceptionpublic Map<String,Serializable> getAttributes()
getAttributes in interface RepositoryModel<FileEntry>public long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface StagedModelgetCompanyId in interface FileEntrygetCompanyId in interface RepositoryEntrypublic InputStream getContentStream()
throws PortalException
FileEntrygetContentStream in interface FileEntryPortalExceptionFileEntry.getFileVersion()public InputStream getContentStream(String version)
throws PortalException
getContentStream in interface FileEntryPortalExceptionpublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface FileEntrygetCreateDate in interface RepositoryEntrypublic String getDescription()
getDescription in interface FileEntrypublic ExpandoBridge getExpandoBridge()
getExpandoBridge in interface ClassedModelpublic Date getExpirationDate()
getExpirationDate in interface FileEntrypublic String getExtension()
getExtension in interface FileEntrypublic long getFileEntryId()
getFileEntryId in interface FileEntrypublic String getFileName()
getFileName in interface FileEntrypublic List<FileShortcut> getFileShortcuts()
getFileShortcuts in interface FileEntrypublic FileVersion getFileVersion() throws PortalException
FileEntryFileEntry.getLatestFileVersion(). In third-party repositories, these two methods
may function identically.getFileVersion in interface FileEntryPortalExceptionpublic FileVersion getFileVersion(String version) throws PortalException
getFileVersion in interface FileEntryPortalExceptionpublic List<FileVersion> getFileVersions(int status)
getFileVersions in interface FileEntrypublic int getFileVersionsCount(int status)
getFileVersionsCount in interface FileEntrypublic long getFolderId()
getFolderId in interface FileEntrypublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface FileEntrygetGroupId in interface RepositoryEntrypublic String getIconCssClass()
getIconCssClass in interface FileEntrypublic Date getLastPublishDate()
getLastPublishDate in interface StagedGroupedModelpublic FileVersion getLatestFileVersion() throws PortalException
FileEntryFileEntry.getFileVersion() may be identical.getLatestFileVersion in interface FileEntryPortalExceptionpublic FileVersion getLatestFileVersion(boolean trusted) throws PortalException
FileEntryFileEntry.getFileVersion() may be identical.getLatestFileVersion in interface FileEntrytrusted - whether to bypass permission checks. In third-party
repositories, this parameter may be ignored.PortalExceptionpublic String getMimeType()
getMimeType in interface FileEntrypublic String getMimeType(String version)
getMimeType in interface FileEntrypublic Object getModel()
getModel in interface RepositoryModel<FileEntry>public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface FileEntrygetModifiedDate in interface RepositoryEntrypublic long getPrimaryKey()
getPrimaryKey in interface RepositoryModel<FileEntry>public Serializable getPrimaryKeyObj()
getPrimaryKeyObj in interface ClassedModelpublic long getReadCount()
getReadCount in interface FileEntrypublic <T extends Capability> T getRepositoryCapability(Class<T> capabilityClass)
getRepositoryCapability in interface FileEntrypublic long getRepositoryId()
getRepositoryId in interface FileEntrypublic Date getReviewDate()
getReviewDate in interface FileEntrypublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface FileEntrygetUserId in interface RepositoryEntrypublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface FileEntrygetUserName in interface RepositoryEntrypublic String getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface FileEntrygetUserUuid in interface RepositoryEntrypublic String getUuid()
getUuid in interface StagedModelgetUuid in interface FileEntrypublic String getVersion()
getVersion in interface FileEntrypublic boolean isCheckedOut()
isCheckedOut in interface FileEntrypublic boolean isDefaultRepository()
isDefaultRepository in interface FileEntrypublic boolean isEscapedModel()
isEscapedModel in interface RepositoryModel<FileEntry>public boolean isInTrashContainer()
isInTrashContainer in interface FileEntrypublic boolean isManualCheckInRequired()
isManualCheckInRequired in interface FileEntrypublic <T extends Capability> boolean isRepositoryCapabilityProvided(Class<T> capabilityClass)
isRepositoryCapabilityProvided in interface FileEntrypublic boolean isSupportsLocking()
isSupportsLocking in interface FileEntrypublic boolean isSupportsMetadata()
isSupportsMetadata in interface FileEntrypublic boolean isSupportsSocial()
isSupportsSocial in interface FileEntrypublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface StagedModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelpublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate in interface StagedGroupedModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
setPrimaryKeyObj in interface ClassedModelpublic void setUserId(long userId)
setUserId in interface AuditedModelpublic void setUserName(String userName)
setUserName in interface AuditedModelpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelpublic void setUuid(String uuid)
setUuid in interface StagedModelpublic FileEntry toEscapedModel()
toEscapedModel in interface RepositoryModel<FileEntry>public FileEntry toUnescapedModel()
toUnescapedModel in interface RepositoryModel<FileEntry>