Class GetTagsAction

All Implemented Interfaces:
Component, LogEnabled, Serviceable, Action

public class GetTagsAction extends GetCMSTagsAction
SAX events for tags
  • Constructor Details

  • 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 class GetCMSTagsAction
      Parameters:
      tag - the Tag object.
      objectTargetIds - the ids of current Ametys objects
      jsParameters - 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 class GetCMSTagsAction
      Parameters:
      onlyCustomTags - If true, return only JCR providers IDs.
      Returns:
      a set of providers IDs