public class JCRTagsDAO extends AbstractJCRTagsDAO
Modifier and Type | Field and Description |
---|---|
protected RightManager |
_rightManager
The rights manager
|
protected TagProviderExtensionPoint |
_tagProviderExtPt
The tag provider extension point
|
protected TagsDAO |
_tagsDAO
Tags DAO
|
protected TagTargetTypeExtensionPoint |
_targetTypeEP
Target types
|
static String |
ROLE
The Avalon role
|
static String |
TARGET_TYPE_ATTRIBUTE_NAME
The attribute name for the target type
|
static String |
VISIBILITY_ATTRIBUTE_NAME
The attribute name for the visibility
|
_currentUserProvider, _observationManager, _resolver
Constructor and Description |
---|
JCRTagsDAO() |
Modifier and Type | Method and Description |
---|---|
protected void |
_checkUserRight()
Check if the user right to access the feature
|
protected JCRTag |
_createJCRTag(String parentId,
String name,
String title,
String description,
Map<String,Object> otherParameters,
Map<String,Object> contextualParameters)
Create a JCR tag under his parent
|
protected Tag |
_getTagFromName(String name,
Map<String,Object> contextualParameters)
Get the tag from the name
|
protected Set<TagProvider<? extends Tag>> |
_getTagProviders()
Get all tag's providers
|
ModifiableTraversableAmetysObject |
_getTagRootObject(String tagProviderId,
Map<String,Object> contextualParameters)
Get the tag root node object
|
protected JCRTag |
_updateJCRTag(String tagId,
String title,
String description,
Map<String,Object> otherParameters)
Update a JCR tag
|
void |
service(ServiceManager serviceManager) |
_findUniqueName, _hasTag, addTag, createTag, deleteTag, getTag, getTagRootNode, moveTags, updateTag
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String VISIBILITY_ATTRIBUTE_NAME
public static final String TARGET_TYPE_ATTRIBUTE_NAME
protected TagProviderExtensionPoint _tagProviderExtPt
protected RightManager _rightManager
protected TagTargetTypeExtensionPoint _targetTypeEP
public JCRTagsDAO()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class AbstractJCRTagsDAO
ServiceException
public ModifiableTraversableAmetysObject _getTagRootObject(String tagProviderId, Map<String,Object> contextualParameters) throws RepositoryException
AbstractJCRTagsDAO
_getTagRootObject
in class AbstractJCRTagsDAO
tagProviderId
- The tag provider idcontextualParameters
- Contextual parameters transmitted by the environment.RepositoryException
- If an error occurred in the repositoryprotected Tag _getTagFromName(String name, Map<String,Object> contextualParameters)
AbstractJCRTagsDAO
_getTagFromName
in class AbstractJCRTagsDAO
name
- the namecontextualParameters
- the contextual parametersprotected void _checkUserRight() throws IllegalStateException
AbstractJCRTagsDAO
_checkUserRight
in class AbstractJCRTagsDAO
IllegalStateException
- if the user has no rightprotected JCRTag _createJCRTag(String parentId, String name, String title, String description, Map<String,Object> otherParameters, Map<String,Object> contextualParameters) throws RepositoryException
AbstractJCRTagsDAO
_createJCRTag
in class AbstractJCRTagsDAO
parentId
- the parent idname
- the nametitle
- the titledescription
- the descriptionotherParameters
- the other parameterscontextualParameters
- Contextual parameters transmitted by the environment.RepositoryException
- if an error occurredprotected JCRTag _updateJCRTag(String tagId, String title, String description, Map<String,Object> otherParameters) throws UnknownAmetysObjectException
AbstractJCRTagsDAO
_updateJCRTag
in class AbstractJCRTagsDAO
tagId
- the tag id to updatetitle
- the titledescription
- the descriptionotherParameters
- the other parametersUnknownAmetysObjectException
- if an error occurredprotected Set<TagProvider<? extends Tag>> _getTagProviders()
AbstractJCRTagsDAO
_getTagProviders
in class AbstractJCRTagsDAO