Package org.ametys.web.tags
Class GetTagsAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
SAX events for tags
-
Field Summary
Fields inherited from class org.ametys.cms.tag.GetCMSTagsAction
_currentUserProvider, _rightManager
Fields inherited from class org.ametys.cms.tag.AbstractGetTagsAction
_resolver, _tagProviderExtPt
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProvidersIds
(boolean onlyCustomTags) Get all providers IDsprotected boolean
isUserAuthorized
(CMSTag tag, Page page) Test if a tag is visible to the current user.protected boolean
Test if a tag is visible to the current user.Methods inherited from class org.ametys.cms.tag.GetCMSTagsAction
_getCurrentUser, _getFilteredTags, getTagProviderEPRole, isCreationAllowed, isPrivate, isUserAuthorized, service, tagToJSON
Methods inherited from class org.ametys.cms.tag.AbstractGetTagsAction
act, getProvidersId, providerToJSON
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
GetTagsAction
public GetTagsAction()
-
-
Method Details
-
isUserAuthorized
protected boolean isUserAuthorized(Tag tag, List<String> objectTargetIds, Map<String, Object> jsParameters) Description copied from class:AbstractGetTagsAction
Test if a tag is visible to the current user.- Overrides:
isUserAuthorized
in classGetCMSTagsAction
- Parameters:
tag
- the Tag object.objectTargetIds
- the ids of current Ametys objectsjsParameters
- The js parameters- Returns:
- true if the user has access to the tag, false otherwise.
-
isUserAuthorized
Test if a tag is visible to the current user.- Parameters:
tag
- the Tag object.page
- the current page (can be null).- Returns:
- true if the user has access to the tag, false otherwise.
-
getProvidersIds
Get all providers IDs- Overrides:
getProvidersIds
in classGetCMSTagsAction
- Parameters:
onlyCustomTags
- If true, return only JCR providers IDs.- Returns:
- a set of providers IDs
-