@JSON @ProviderType public interface FileEntry extends RepositoryEntry, RepositoryModel<FileEntry>
Modifier and Type | Field and Description |
---|---|
static Accessor<FileEntry,Long> |
FILE_ENTRY_ID_ACCESSOR |
Modifier and Type | Method and Description |
---|---|
boolean |
containsPermission(PermissionChecker permissionChecker,
String actionId) |
long |
getCompanyId() |
InputStream |
getContentStream()
Returns the content stream of the current file version.
|
InputStream |
getContentStream(String version) |
Date |
getCreateDate() |
String |
getDescription() |
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() |
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) |
Date |
getModifiedDate() |
long |
getReadCount() |
<T extends Capability> |
getRepositoryCapability(Class<T> capabilityClass) |
long |
getRepositoryId() |
long |
getSize() |
String |
getTitle() |
long |
getUserId() |
String |
getUserName() |
String |
getUserUuid() |
String |
getUuid() |
String |
getVersion() |
boolean |
hasLock() |
boolean |
isCheckedOut() |
boolean |
isDefaultRepository() |
boolean |
isInTrash() |
boolean |
isInTrashContainer() |
boolean |
isManualCheckInRequired() |
<T extends Capability> |
isRepositoryCapabilityProvided(Class<T> capabilityClass) |
boolean |
isSupportsLocking() |
boolean |
isSupportsMetadata() |
boolean |
isSupportsSocial() |
execute, getAttributes, getModel, getPrimaryKey, isEscapedModel, toEscapedModel, toUnescapedModel
getLastPublishDate, setLastPublishDate
setGroupId
setCompanyId, setCreateDate, setModifiedDate, setUserId, setUserName, setUserUuid
getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, setPrimaryKeyObj
clone, getStagedModelType, setCompanyId, setCreateDate, setModifiedDate, setUuid
boolean containsPermission(PermissionChecker permissionChecker, String actionId) throws PortalException
PortalException
long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface RepositoryEntry
getCompanyId
in interface StagedModel
@JSON(include=false) InputStream getContentStream() throws PortalException
PortalException
getFileVersion()
InputStream getContentStream(String version) throws PortalException
PortalException
Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface RepositoryEntry
getCreateDate
in interface StagedModel
String 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.PortalException
FileVersion getFileVersion(String version) throws PortalException
PortalException
List<FileVersion> getFileVersions(int status)
int getFileVersionsCount(int status)
Folder getFolder()
long getFolderId()
long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface RepositoryEntry
String getIcon()
String getIconCssClass()
FileVersion getLatestFileVersion() throws PortalException
getFileVersion()
may be identical.PortalException
FileVersion getLatestFileVersion(boolean trusted) throws PortalException
getFileVersion()
may be identical.trusted
- whether to bypass permission checks. In third-party
repositories, this parameter may be ignored.PortalException
Lock getLock()
String getMimeType()
String getMimeType(String version)
Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface RepositoryEntry
getModifiedDate
in interface StagedModel
long getReadCount()
<T extends Capability> T getRepositoryCapability(Class<T> capabilityClass)
long getRepositoryId()
long getSize()
String getTitle()
long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface RepositoryEntry
String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface RepositoryEntry
String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface RepositoryEntry
String getUuid()
getUuid
in interface StagedModel
String getVersion()
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()