Class ResourceActionsUtil

Object
com.liferay.portal.kernel.security.permission.ResourceActionsUtil

public class ResourceActionsUtil extends Object
Author:
Brian Wing Shun Chan, Daeyoung Song
  • Constructor Details

    • ResourceActionsUtil

      public ResourceActionsUtil()
  • Method Details

    • check

      public static void check(String portletName)
    • getAction

      public static String getAction(javax.servlet.http.HttpServletRequest httpServletRequest, String action)
    • getAction

      public static String getAction(Locale locale, String action)
    • getCompositeModelName

      public static String getCompositeModelName(String... classNames)
    • getCompositeModelNameSeparator

      public static String getCompositeModelNameSeparator()
    • getModelNames

      public static List<String> getModelNames()
    • getModelPortletResources

      public static List<String> getModelPortletResources(String name)
    • getModelResource

      public static String getModelResource(javax.servlet.http.HttpServletRequest httpServletRequest, String name)
    • getModelResource

      public static String getModelResource(Locale locale, String name)
    • getModelResourceActions

      public static List<String> getModelResourceActions(String name)
    • getModelResourceGroupDefaultActions

      public static List<String> getModelResourceGroupDefaultActions(String name)
    • getModelResourceGuestDefaultActions

      public static List<String> getModelResourceGuestDefaultActions(String name)
    • getModelResourceGuestUnsupportedActions

      public static List<String> getModelResourceGuestUnsupportedActions(String name)
    • getModelResourceNamePrefix

      public static String getModelResourceNamePrefix()
    • getModelResourceOwnerDefaultActions

      public static List<String> getModelResourceOwnerDefaultActions(String name)
    • getModelResourceWeight

      public static Double getModelResourceWeight(String name)
    • getPortletModelResources

      public static List<String> getPortletModelResources(String portletName)
    • getPortletNames

      public static List<String> getPortletNames()
    • getPortletResourceActions

      public static List<String> getPortletResourceActions(String name)
    • getPortletResourceGroupDefaultActions

      public static List<String> getPortletResourceGroupDefaultActions(String name)
    • getPortletResourceGuestDefaultActions

      public static List<String> getPortletResourceGuestDefaultActions(String name)
    • getPortletResourceGuestUnsupportedActions

      public static List<String> getPortletResourceGuestUnsupportedActions(String name)
    • getPortletResourceLayoutManagerActions

      public static List<String> getPortletResourceLayoutManagerActions(String name)
    • getPortletResourceOwnerDefaultActions

      public static List<String> getPortletResourceOwnerDefaultActions(String name)
    • getPortletRootModelResource

      public static String getPortletRootModelResource(String portletName)
    • getResourceActions

      public static ResourceActions getResourceActions()
    • getResourceActions

      public static List<String> getResourceActions(String name)
    • getResourceActions

      public static List<String> getResourceActions(String portletResource, String modelResource)
    • getResourceGuestUnsupportedActions

      public static List<String> getResourceGuestUnsupportedActions(String portletResource, String modelResource)
    • getRoles

      public static List<Role> getRoles(long companyId, Group group, String modelResource, int[] roleTypes)
    • isPortalModelResource

      public static boolean isPortalModelResource(String modelResource)
    • isRootModelResource

      public static boolean isRootModelResource(String modelResource)
    • populateModelResources

      public static void populateModelResources(ClassLoader classLoader, String... sources) throws ResourceActionsException
      Throws:
      ResourceActionsException
    • populateModelResources

      public static void populateModelResources(ClassLoader classLoader, String[] sources, boolean checkResourceActions) throws ResourceActionsException
      Throws:
      ResourceActionsException
    • populateModelResources

      public static void populateModelResources(Document document) throws ResourceActionsException
      Throws:
      ResourceActionsException
    • populatePortletResource

      public static void populatePortletResource(Portlet portlet, ClassLoader classLoader, String... sources) throws ResourceActionsException
      Throws:
      ResourceActionsException
    • populatePortletResources

      public static void populatePortletResources(ClassLoader classLoader, String... sources) throws ResourceActionsException
      Throws:
      ResourceActionsException
    • populatePortletResources

      public static void populatePortletResources(ClassLoader classLoader, String[] sources, boolean checkResourceActions) throws ResourceActionsException
      Throws:
      ResourceActionsException
    • setResourceActions

      public void setResourceActions(ResourceActions resourceActions)