public class RepositoryFileItem extends RepositoryObjectItem
DEDICATED_PROPERTIES
rcs_id
Constructor and Description |
---|
RepositoryFileItem(Connector connector,
RepositoryFolderItem parent,
Resource resource)
Constructs an RepositoryFileItem object.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete file.
|
void |
getContent(java.io.OutputStream stream)
Get content.
|
java.lang.String |
getDescription() |
static java.lang.String |
getFileSystemName(RepositoryObjectItem roi) |
java.util.Collection<RepositoryHistoryItem> |
getHistory()
Get history.
|
java.lang.String |
getImageURL() |
PrivilegeDescriptor |
getPrivilegeDescriptor() |
ReportInterface |
getReport()
Get report to be used when selecting given object in tree.
|
ReportInterface |
getReportForDetailView()
Get report to be used for data access in detail view of THIS Item - not for child nodes!
|
boolean |
hasChildren()
Indicates whether childs objects exist.
|
void |
purgeVersionHistory()
Purge the version history.
|
static RepositoryFileItem |
rereadFile(Connector connector,
RepositoryFileItem item)
Read last persisted state of the file.
|
checkAndDeleteExternaLinkReferencies, clearProperties, create, createItem, equals, getAccessControlElements, getAutoVersion, getChildren, getChildren, getComment, getContent, getContentLength, getContentType, getCreationDate, getCurrentUserPermissionItem, getDocumentName, getKey, getModificationDate, getModifiedDateObject, getName, getNameEx, getOwner, getParent, getPath, getProperties, getProvider, getRepositoryConnector, getResource, getTrimmedPath, getTrimmedPath, getTypeName, hashCode, hasNoChildren, isLocationChanged, isModified, isReferenced, isReferencedByMyCentraSite, rename, save, save, setAccessControlElements, setComment, setDisplayName, setLocationChanged, setNewLocation, setParent, setProperties, setResource, toString
addBulkCommand, addCommand, addDetailViewTab, cannotHaveChildren, clearCache, getBulkCommands, getCommand, getCommand, getCommands, getConnector, getDefaultCommand, getDetailsCommand, getDetailViewTabs, getItem, getLanguage, getLocale, getNonPermissionAccessControlElements, getPersistanceLocale, getRelatedItems, hasRequiredAttribute, isLocked, isReadOnly, isStandalone, isSubTabModified, removeCommand, replaceCommand, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setRelatedItems, setRequiredAttribute, setTabModified, showDetailView, showReport
public RepositoryFileItem(Connector connector, RepositoryFolderItem parent, Resource resource)
connector
- Connector.parent
- Parent folder.resource
- WebDAV resource.public boolean hasChildren()
RepositoryObjectItem
hasChildren
in class RepositoryObjectItem
public void getContent(java.io.OutputStream stream) throws java.lang.Exception
stream
- Output streamjava.lang.Exception
public void delete() throws java.lang.Exception
java.lang.Exception
public java.lang.String getDescription() throws java.lang.Exception
getDescription
in interface Item
getDescription
in class RepositoryObjectItem
java.lang.Exception
public java.lang.String getImageURL()
getImageURL
in interface Item
getImageURL
in class RepositoryObjectItem
public ReportInterface getReport()
AbstractItem
getReport
in interface Item
getReport
in class AbstractItem
public ReportInterface getReportForDetailView()
AbstractItem
getReportForDetailView
in interface Item
getReportForDetailView
in class AbstractItem
public java.util.Collection<RepositoryHistoryItem> getHistory()
public void purgeVersionHistory()
public PrivilegeDescriptor getPrivilegeDescriptor()
getPrivilegeDescriptor
in interface Item
getPrivilegeDescriptor
in class AbstractItem
public static RepositoryFileItem rereadFile(Connector connector, RepositoryFileItem item) throws WvcmException
connector
- item
- the file to be re-readWvcmException
public static java.lang.String getFileSystemName(RepositoryObjectItem roi) throws java.lang.Exception
java.lang.Exception