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, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createChild
getChild, getChildAt, getChildPosition, getChildren, hasChild
remove
needsSave, rename, revertChanges, saveChanges
equals, getId, getName, getParent, getParentPath, getPath, hashCode
getNode
getMetadataHolder
public 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()
ExplorerNode
getIconCls
in interface ExplorerNode
public String getApplicationId()
ExplorerNode
getApplicationId
in interface ExplorerNode
public String getCollectionType()
ModifiableResourceCollection
getCollectionType
in interface ModifiableResourceCollection
public String getResourceType()
ModifiableResourceCollection
getResourceType
in interface ModifiableResourceCollection
public String getResourcePath() throws AmetysRepositoryException
ResourceCollection
getResourcePath
in interface ResourceCollection
AmetysRepositoryException
- if an error occurs.public String getExplorerPath()
ExplorerNode
getExplorerPath
in interface ExplorerNode
public boolean hasChildResources() throws AmetysRepositoryException
ResourceCollection
hasChildResources
in interface ResourceCollection
AmetysRepositoryException
- if an error occurs.public boolean hasChildExplorerNodes() throws AmetysRepositoryException
ExplorerNode
hasChildExplorerNodes
in interface ExplorerNode
AmetysRepositoryException
- if an error occurs.public AmetysObject copyTo(ModifiableTraversableAmetysObject parent, String name) throws AmetysRepositoryException
CopiableAmetysObject
AmetysObject
to the given object. Be careful, this method save changes.copyTo
in interface CopiableAmetysObject
parent
- 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
CopiableAmetysObject
AmetysObject
to the given object if it is not in the restriction list. Be careful, this method save changes.copyTo
in interface CopiableAmetysObject
parent
- 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()
ExplorerNode
getDescription
in interface ExplorerNode
public void setDescription(String description)
ModifiableExplorerNode
setDescription
in interface ModifiableExplorerNode
description
- the description