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() |
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() |
int |
getReadCount() |
<T extends Capability> |
getRepositoryCapability(Class<T> capabilityClass) |
long |
getRepositoryId() |
long |
getSize() |
StagedModelType |
getStagedModelType() |
String |
getTitle() |
long |
getUserId() |
String |
getUserName() |
String |
getUserUuid() |
String |
getUuid() |
String |
getVersion() |
long |
getVersionUserId()
Deprecated.
As of Wilberforce (7.0.x), replaced by
FileVersionProxyBean.getUserId() |
String |
getVersionUserName()
Deprecated.
As of Wilberforce (7.0.x), replaced by
FileVersionProxyBean.getUserName() |
String |
getVersionUserUuid()
Deprecated.
As of Wilberforce (7.0.x), replaced by
FileVersionProxyBean.getUserUuid() |
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, toObjectProxyBeans
public FileEntryProxyBean(FileEntry fileEntry, ClassLoader classLoader)
public Object clone()
clone
in interface StagedModel
clone
in class Object
public boolean containsPermission(PermissionChecker permissionChecker, String actionId) throws PortalException
containsPermission
in interface FileEntry
PortalException
public void execute(RepositoryModelOperation repositoryModelOperation) throws PortalException
execute
in interface RepositoryModel<FileEntry>
PortalException
public Map<String,Serializable> getAttributes()
getAttributes
in interface RepositoryModel<FileEntry>
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface StagedModel
getCompanyId
in interface FileEntry
getCompanyId
in interface RepositoryEntry
public InputStream getContentStream() throws PortalException
FileEntry
getContentStream
in interface FileEntry
PortalException
FileEntry.getFileVersion()
public InputStream getContentStream(String version) throws PortalException
getContentStream
in interface FileEntry
PortalException
public Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
getCreateDate
in interface FileEntry
getCreateDate
in interface RepositoryEntry
public String getDescription()
getDescription
in interface FileEntry
public ExpandoBridge getExpandoBridge()
getExpandoBridge
in interface ClassedModel
public String getExtension()
getExtension
in interface FileEntry
public long getFileEntryId()
getFileEntryId
in interface FileEntry
public String getFileName()
getFileName
in interface FileEntry
public List<FileShortcut> getFileShortcuts()
getFileShortcuts
in interface FileEntry
public FileVersion getFileVersion() throws PortalException
FileEntry
FileEntry.getLatestFileVersion()
. In third-party repositories, these two methods
may function identically.getFileVersion
in interface FileEntry
PortalException
public FileVersion getFileVersion(String version) throws PortalException
getFileVersion
in interface FileEntry
PortalException
public List<FileVersion> getFileVersions(int status)
getFileVersions
in interface FileEntry
public int getFileVersionsCount(int status)
getFileVersionsCount
in interface FileEntry
public long getFolderId()
getFolderId
in interface FileEntry
public long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface FileEntry
getGroupId
in interface RepositoryEntry
public String getIconCssClass()
getIconCssClass
in interface FileEntry
public Date getLastPublishDate()
getLastPublishDate
in interface StagedGroupedModel
public FileVersion getLatestFileVersion() throws PortalException
FileEntry
FileEntry.getFileVersion()
may be identical.getLatestFileVersion
in interface FileEntry
PortalException
public FileVersion getLatestFileVersion(boolean trusted) throws PortalException
FileEntry
FileEntry.getFileVersion()
may be identical.getLatestFileVersion
in interface FileEntry
trusted
- whether to bypass permission checks. In third-party
repositories, this parameter may be ignored.PortalException
public String getMimeType()
getMimeType
in interface FileEntry
public String getMimeType(String version)
getMimeType
in interface FileEntry
public Object getModel()
getModel
in interface RepositoryModel<FileEntry>
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
getModifiedDate
in interface FileEntry
getModifiedDate
in interface RepositoryEntry
public long getPrimaryKey()
getPrimaryKey
in interface RepositoryModel<FileEntry>
public Serializable getPrimaryKeyObj()
getPrimaryKeyObj
in interface ClassedModel
public int getReadCount()
getReadCount
in interface FileEntry
public <T extends Capability> T getRepositoryCapability(Class<T> capabilityClass)
getRepositoryCapability
in interface FileEntry
public long getRepositoryId()
getRepositoryId
in interface FileEntry
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface FileEntry
getUserId
in interface RepositoryEntry
public String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface FileEntry
getUserName
in interface RepositoryEntry
public String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface FileEntry
getUserUuid
in interface RepositoryEntry
public String getUuid()
getUuid
in interface StagedModel
getUuid
in interface FileEntry
public String getVersion()
getVersion
in interface FileEntry
@Deprecated public long getVersionUserId()
FileVersionProxyBean.getUserId()
getVersionUserId
in interface FileEntry
@Deprecated public String getVersionUserName()
FileVersionProxyBean.getUserName()
getVersionUserName
in interface FileEntry
@Deprecated public String getVersionUserUuid()
FileVersionProxyBean.getUserUuid()
getVersionUserUuid
in interface FileEntry
public boolean isCheckedOut()
isCheckedOut
in interface FileEntry
public boolean isDefaultRepository()
isDefaultRepository
in interface FileEntry
public boolean isEscapedModel()
isEscapedModel
in interface RepositoryModel<FileEntry>
public boolean isInTrashContainer()
isInTrashContainer
in interface FileEntry
public boolean isManualCheckInRequired()
isManualCheckInRequired
in interface FileEntry
public <T extends Capability> boolean isRepositoryCapabilityProvided(Class<T> capabilityClass)
isRepositoryCapabilityProvided
in interface FileEntry
public boolean isSupportsLocking()
isSupportsLocking
in interface FileEntry
public boolean isSupportsMetadata()
isSupportsMetadata
in interface FileEntry
public boolean isSupportsSocial()
isSupportsSocial
in interface FileEntry
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface StagedModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
public void setLastPublishDate(Date lastPublishDate)
setLastPublishDate
in interface StagedGroupedModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
setPrimaryKeyObj
in interface ClassedModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
public void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
public void setUuid(String uuid)
setUuid
in interface StagedModel
public FileEntry toEscapedModel()
toEscapedModel
in interface RepositoryModel<FileEntry>
public FileEntry toUnescapedModel()
toUnescapedModel
in interface RepositoryModel<FileEntry>