public class JCRResourcesCollection extends DefaultTraversableAmetysObject<JCRResourcesCollectionFactory> implements ModifiableResourceCollection, CopiableAmetysObject
ExplorerNode representing a collection of resources.| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_ID
application id for resources collections.
|
protected static String |
METADATA_DESCRIPTION
Constants for description metadata
|
| Constructor and Description |
|---|
JCRResourcesCollection(Node node,
String parentPath,
JCRResourcesCollectionFactory factory)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
AmetysObject |
copyTo(ModifiableTraversableAmetysObject parent,
String name)
Copy the current
AmetysObject to the given object. |
AmetysObject |
copyTo(ModifiableTraversableAmetysObject parent,
String name,
List<String> restrictTo)
Copy the current
AmetysObject to the given object if it is not in the restriction list. |
String |
getApplicationId()
Returns the application id corresponding to this Node.
|
String |
getCollectionType()
Get the type of child collection
|
String |
getDescription()
Get the description of the application
|
String |
getExplorerPath()
Returns the path of this explorer node in the explorer hierarchy (which is a subset of the whole repository).
If this collection is the root explorer node, "" is returned. |
String |
getIconCls()
Returns the icon css class for this Node.
|
String |
getResourcePath()
Returns the path of this resource collection in its hierarchy (which is a subset of the whole repository).
If this collection is the root collection, "" is returned. |
String |
getResourceType()
Get the type of child resources
|
boolean |
hasChildExplorerNodes()
Returns true if this explorer node contains child explorer nodes.
|
boolean |
hasChildResources()
Returns true if this explorer node contains resources.
|
void |
setDescription(String description)
Set the description of the application
|
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasChild, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateChildgetChild, getChildAt, getChildPosition, getChildren, hasChildremoveneedsSave, rename, revertChanges, saveChangesequals, getId, getName, getParent, getParentPath, getPath, hashCodegetNodegetMetadataHolderpublic static final String APPLICATION_ID
protected static final String METADATA_DESCRIPTION
public JCRResourcesCollection(Node node, String parentPath, JCRResourcesCollectionFactory factory)
node - The jcr nodeparentPath - The parent pathfactory - The factorypublic String getIconCls()
ExplorerNodegetIconCls in interface ExplorerNodepublic String getApplicationId()
ExplorerNodegetApplicationId in interface ExplorerNodepublic String getCollectionType()
ModifiableResourceCollectiongetCollectionType in interface ModifiableResourceCollectionpublic String getResourceType()
ModifiableResourceCollectiongetResourceType in interface ModifiableResourceCollectionpublic String getResourcePath() throws AmetysRepositoryException
ResourceCollectiongetResourcePath in interface ResourceCollectionAmetysRepositoryException - if an error occurs.public String getExplorerPath()
ExplorerNodegetExplorerPath in interface ExplorerNodepublic boolean hasChildResources() throws AmetysRepositoryException
ResourceCollectionhasChildResources in interface ResourceCollectionAmetysRepositoryException - if an error occurs.public boolean hasChildExplorerNodes() throws AmetysRepositoryException
ExplorerNodehasChildExplorerNodes in interface ExplorerNodeAmetysRepositoryException - if an error occurs.public AmetysObject copyTo(ModifiableTraversableAmetysObject parent, String name) throws AmetysRepositoryException
CopiableAmetysObjectAmetysObject to the given object. Be careful, this method save changes.copyTo in interface CopiableAmetysObjectparent - The parent of the new object. Can not be null.name - Name of the new object. Can be null. If null, the new name will be get from the copied objectAmetysRepositoryException - if an error occurs.public AmetysObject copyTo(ModifiableTraversableAmetysObject parent, String name, List<String> restrictTo) throws AmetysRepositoryException
CopiableAmetysObjectAmetysObject to the given object if it is not in the restriction list. Be careful, this method save changes.copyTo in interface CopiableAmetysObjectparent - The parent of the new object. Can not be null.name - Name of the new object. Can be null. If null, the new name will be get from the copied objectrestrictTo - A restrict list of CopiableAmetysObject authorized to be copiedAmetysRepositoryException - if an error occurs.public String getDescription()
ExplorerNodegetDescription in interface ExplorerNodepublic void setDescription(String description)
ModifiableExplorerNodesetDescription in interface ModifiableExplorerNodedescription - the description