public class GetTagsAction extends GetCMSTagsAction
_currentUserProvider, _rightManager
_resolver, _tagProviderExtPt
manager
EMPTY_MAP
Constructor and Description |
---|
GetTagsAction() |
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
getProvidersIds(boolean onlyCustomTags)
Get all providers IDs
|
protected 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.
|
_getCurrentUser, _getFilteredTags, getTagProviderEPRole, isCreationAllowed, isPrivate, isUserAuthorized, service, tagToJSON
act, getProvidersId, providerToJSON
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public GetTagsAction()
protected boolean isUserAuthorized(Tag tag, List<String> objectTargetIds, Map<String,Object> jsParameters)
AbstractGetTagsAction
isUserAuthorized
in class GetCMSTagsAction
tag
- the Tag object.objectTargetIds
- the ids of current Ametys objectsjsParameters
- The js parametersprotected boolean isUserAuthorized(CMSTag tag, Page page)
tag
- the Tag object.page
- the current page (can be null).protected Set<String> getProvidersIds(boolean onlyCustomTags)
getProvidersIds
in class GetCMSTagsAction
onlyCustomTags
- If true, return only JCR providers IDs.