public abstract class RepositoryObjectItem extends AbstractItem
Modifier and Type | Field and Description |
---|---|
static javax.wvcm.PropertyNameList |
DEDICATED_PROPERTIES |
rcs_id
Constructor and Description |
---|
RepositoryObjectItem(Connector connector,
RepositoryObjectItem parent,
javax.wvcm.Resource resource)
Constructs a RepositoryObjectItem.
|
Modifier and Type | Method and Description |
---|---|
int |
checkAndDeleteExternaLinkReferencies()
Checks if the ExternalLinks for an URL resource have any linked RegistryObjects
If there are none, then the URL resource is marked for deletion and
all ExternalLinks that refer it get deleted
|
void |
clearProperties() |
static RepositoryObjectItem |
create(Connector connector,
java.lang.String internalUrl)
Create a RepositoryObjectItem.
|
static RepositoryObjectItem |
createItem(Connector connector,
java.lang.String path)
Create a RepositoryObjectItem for the given path
|
boolean |
equals(java.lang.Object other) |
java.util.Collection<AbstractAce> |
getAccessControlElements()
Get access control elements
|
java.lang.String |
getAutoVersion()
Get auto-version.
|
java.util.Iterator |
getChildren() |
java.util.Iterator |
getChildren(boolean refresh) |
java.lang.String |
getComment()
Get comment.
|
byte[] |
getContent()
Get content.
|
java.lang.String |
getContentLength()
Get content length.
|
java.lang.String |
getContentType()
Get content type.
|
java.lang.String |
getCreationDate()
Get creation date.
|
InstanceLevelPermissionItem |
getCurrentUserPermissionItem()
Get currently logged-in user privilege over this item, wrapped as a InstanceLevelPermissionItem.
|
java.lang.String |
getDescription() |
static java.lang.String |
getDocumentName(com.centrasite.util.RepositoryConnector connector,
java.lang.String url)
Retrieves the repository document name specified by the given URL.
|
java.lang.String |
getImageURL() |
java.lang.String |
getKey()
Obtain a unique key for class of icons
|
java.lang.String |
getModificationDate()
Get modification date.
|
java.util.Date |
getModifiedDateObject() |
java.lang.String |
getName()
Get display name.
|
java.lang.String |
getNameEx()
Get "extended/alternate name".
|
java.lang.String |
getOwner()
Get owner.
|
RepositoryObjectItem |
getParent()
Get parent node.
|
java.lang.String |
getPath()
Get path.
|
java.util.ArrayList |
getProperties() |
javax.wvcm.Provider |
getProvider()
Get WebDAV provider.
|
com.centrasite.util.RepositoryConnector |
getRepositoryConnector()
Get repository connector.
|
javax.wvcm.Resource |
getResource()
Get WebDAV resource.
|
java.lang.String |
getTrimmedPath() |
static java.lang.String |
getTrimmedPath(com.centrasite.util.RepositoryConnector connector,
java.lang.String url) |
static java.lang.String |
getTypeName(Item item) |
abstract boolean |
hasChildren()
Indicates whether childs objects exist.
|
int |
hashCode() |
boolean |
hasNoChildren() |
boolean |
isLocationChanged() |
boolean |
isModified()
Check whether this Item is modified vs. its corresponding
persistent version
|
boolean |
isReferenced()
Check if external references exist
|
int |
isReferencedByMyCentraSite()
Check if its reference by My Centra Site
|
void |
rename(java.lang.String nodeName)
Rename node.
|
void |
save() |
void |
save(ActionContext context)
Save node.
|
void |
setAccessControlElements(java.util.Collection<? extends AbstractAce> accessControlElements)
Set access control elements
|
void |
setComment(java.lang.String value)
Set comment.
|
void |
setDisplayName(java.lang.String displayName)
Set the display name.
|
void |
setLocationChanged(boolean changed) |
void |
setNewLocation(RepositoryFolderItem folderItem) |
void |
setParent(RepositoryObjectItem parent) |
void |
setProperties(java.util.ArrayList properties) |
void |
setResource(javax.wvcm.Resource resource) |
java.lang.String |
toString() |
addBulkCommand, addCommand, addDetailViewTab, cannotHaveChildren, clearCache, getBulkCommands, getCommand, getCommand, getCommands, getConnector, getDefaultCommand, getDetailsCommand, getDetailViewTabs, getItem, getLanguage, getLocale, getNonPermissionAccessControlElements, getPersistanceLocale, getPrivilegeDescriptor, getRelatedItems, getReport, getReportForDetailView, hasRequiredAttribute, isLocked, isReadOnly, isStandalone, isSubTabModified, removeCommand, replaceCommand, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setRelatedItems, setRequiredAttribute, setTabModified, showDetailView, showReport
public static final javax.wvcm.PropertyNameList DEDICATED_PROPERTIES
public RepositoryObjectItem(Connector connector, RepositoryObjectItem parent, javax.wvcm.Resource resource)
connector
- The connector.parent
- Parent node.resource
- WebDAV resource.public java.util.Collection<AbstractAce> getAccessControlElements() throws java.lang.Exception
AbstractItem
getAccessControlElements
in interface Item
getAccessControlElements
in class AbstractItem
java.lang.Exception
public InstanceLevelPermissionItem getCurrentUserPermissionItem() throws java.lang.Exception
AbstractItem
getCurrentUserPermissionItem
in interface Item
getCurrentUserPermissionItem
in class AbstractItem
java.lang.Exception
public static RepositoryObjectItem create(Connector connector, java.lang.String internalUrl)
connector
- The connector.internalUrl
- URL pointing to a location within CentraSite server.public java.lang.String getKey() throws java.lang.Exception
getKey
in interface Item
getKey
in class AbstractItem
java.lang.Exception
public java.lang.String getPath()
getPath
in interface Item
getPath
in class AbstractItem
public javax.wvcm.Resource getResource()
public void setResource(javax.wvcm.Resource resource)
public RepositoryObjectItem getParent()
public void setParent(RepositoryObjectItem parent)
public javax.wvcm.Provider getProvider()
public java.lang.String getContentType() throws java.lang.Exception
java.lang.Exception
public java.lang.String getContentLength() throws java.lang.Exception
java.lang.Exception
public byte[] getContent() throws java.lang.Exception
java.lang.Exception
public java.lang.String getModificationDate()
public java.util.Date getModifiedDateObject()
public java.lang.String getCreationDate() throws java.lang.Exception
java.lang.Exception
public java.lang.String getAutoVersion()
public java.lang.String getOwner()
public java.lang.String getComment()
public void setComment(java.lang.String value)
value
- Comment to setpublic boolean isLocationChanged()
public void setLocationChanged(boolean changed)
public boolean isReferenced() throws java.lang.Exception
java.lang.Exception
public int isReferencedByMyCentraSite() throws java.lang.Exception
java.lang.Exception
public int checkAndDeleteExternaLinkReferencies() throws java.lang.Exception
java.lang.Exception
public void rename(java.lang.String nodeName) throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList getProperties() throws java.lang.Exception
getProperties
in class AbstractItem
java.lang.Exception
public void setProperties(java.util.ArrayList properties) throws java.lang.Exception
setProperties
in class AbstractItem
java.lang.Exception
public void clearProperties() throws java.lang.Exception
clearProperties
in class AbstractItem
java.lang.Exception
public void setAccessControlElements(java.util.Collection<? extends AbstractAce> accessControlElements) throws java.lang.Exception
setAccessControlElements
in interface Item
setAccessControlElements
in class AbstractItem
accessControlElements
- List of Access Control elementsjava.lang.Exception
public void save(ActionContext context) throws java.lang.Exception
save
in interface Item
save
in class AbstractItem
java.lang.Exception
public void save() throws java.lang.Exception
java.lang.Exception
public boolean isModified()
Item
isModified
in interface Item
isModified
in class AbstractItem
public com.centrasite.util.RepositoryConnector getRepositoryConnector()
public abstract boolean hasChildren()
public boolean hasNoChildren() throws java.lang.Exception
java.lang.Exception
public java.util.Iterator getChildren() throws java.lang.Exception
java.lang.Exception
public java.util.Iterator getChildren(boolean refresh) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDescription() throws java.lang.Exception
java.lang.Exception
public java.lang.String getImageURL() throws java.lang.Exception
java.lang.Exception
public java.lang.String getName()
public void setDisplayName(java.lang.String displayName)
displayName
- The display name to set.public java.lang.String getNameEx()
AbstractItem
getNameEx
in interface Item
getNameEx
in class AbstractItem
public java.lang.String getTrimmedPath()
public static java.lang.String getTrimmedPath(com.centrasite.util.RepositoryConnector connector, java.lang.String url)
public static java.lang.String getDocumentName(com.centrasite.util.RepositoryConnector connector, java.lang.String url)
null
if the URL does not point to document in the repo.public static RepositoryObjectItem createItem(Connector connector, java.lang.String path) throws javax.wvcm.WvcmException
connector
- The connectorpath
- Path relative to base directory, e.g. /projects/CentraSite/icons/".
If the path is to represent a folder/directory, it must be terminated with a slashjavax.wvcm.WvcmException
public static java.lang.String getTypeName(Item item)
public java.lang.String toString()
toString
in class AbstractItem
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setNewLocation(RepositoryFolderItem folderItem)