Package org.ametys.web.tags
Class GetTagsAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GetTagsAction extends GetCMSTagsAction
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
Constructors Constructor Description GetTagsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<String>
getProvidersIds(boolean onlyCustomTags)
Get all providers IDsprotected boolean
isUserAuthorized(CMSTag tag, Page page)
Test if a tag is visible to the current user.protected boolean
isUserAuthorized(Tag tag, List<String> objectTargetIds, Map<String,Object> jsParameters)
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 Detail
-
GetTagsAction
public GetTagsAction()
-
-
Method Detail
-
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
protected boolean isUserAuthorized(CMSTag tag, Page page)
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
protected Set<String> getProvidersIds(boolean onlyCustomTags)
Get all providers IDs- Overrides:
getProvidersIds
in classGetCMSTagsAction
- Parameters:
onlyCustomTags
- If true, return only JCR providers IDs.- Returns:
- a set of providers IDs
-
-