@JSON @ProviderType public interface FileEntry extends RepositoryEntry, RepositoryModel<FileEntry>
| Modifier and Type | Field and Description |
|---|---|
static Accessor<FileEntry,Long> |
FILE_ENTRY_ID_ACCESSOR |
execute, getAttributes, getModel, getPrimaryKey, isEscapedModel, toEscapedModel, toUnescapedModelgetLastPublishDate, setLastPublishDatesetGroupIdsetCompanyId, setCreateDate, setModifiedDate, setUserId, setUserName, setUserUuidgetExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, setPrimaryKeyObjclone, getStagedModelType, setCompanyId, setCreateDate, setModifiedDate, setUuidboolean containsPermission(PermissionChecker permissionChecker, String actionId) throws PortalException
PortalExceptionlong getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface RepositoryEntrygetCompanyId in interface StagedModel@JSON(include=false) InputStream getContentStream() throws PortalException
PortalExceptiongetFileVersion()InputStream getContentStream(String version) throws PortalException
PortalExceptionDate getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface RepositoryEntrygetCreateDate in interface StagedModelString getDescription()
String getExtension()
long getFileEntryId()
String getFileName()
List<FileShortcut> getFileShortcuts()
FileVersion getFileVersion() throws PortalException
getLatestFileVersion(). In third-party repositories, these two methods
may function identically.PortalExceptionFileVersion getFileVersion(String version) throws PortalException
PortalExceptionList<FileVersion> getFileVersions(int status)
int getFileVersionsCount(int status)
Folder getFolder()
long getFolderId()
long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface RepositoryEntryString getIcon()
String getIconCssClass()
FileVersion getLatestFileVersion() throws PortalException
getFileVersion() may be identical.PortalExceptionFileVersion getLatestFileVersion(boolean trusted) throws PortalException
getFileVersion() may be identical.trusted - whether to bypass permission checks. In third-party
repositories, this parameter may be ignored.PortalExceptionLock getLock()
String getMimeType()
Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface RepositoryEntrygetModifiedDate in interface StagedModelint getReadCount()
<T extends Capability> T getRepositoryCapability(Class<T> capabilityClass)
long getRepositoryId()
long getSize()
String getTitle()
long getUserId()
getUserId in interface AuditedModelgetUserId in interface RepositoryEntryString getUserName()
getUserName in interface AuditedModelgetUserName in interface RepositoryEntryString getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface RepositoryEntryString getUuid()
getUuid in interface StagedModelString getVersion()
long getVersionUserId()
String getVersionUserName()
String getVersionUserUuid()
boolean hasLock()
boolean isCheckedOut()
boolean isDefaultRepository()
boolean isInTrash()
boolean isInTrashContainer()
boolean isManualCheckInRequired()
<T extends Capability> boolean isRepositoryCapabilityProvided(Class<T> capabilityClass)
boolean isSupportsLocking()
boolean isSupportsMetadata()
boolean isSupportsSocial()