Class ResourceActionsImpl

Object
com.liferay.portal.security.permission.ResourceActionsImpl
All Implemented Interfaces:
com.liferay.portal.kernel.security.permission.ResourceActions

public class ResourceActionsImpl extends Object implements com.liferay.portal.kernel.security.permission.ResourceActions
Author:
Brian Wing Shun Chan, Daeyoung Song, Raymond Augé
  • Field Details

    • portletLocalService

      @BeanReference(type=com.liferay.portal.kernel.service.PortletLocalService.class) protected com.liferay.portal.kernel.service.PortletLocalService portletLocalService
    • resourceActionLocalService

      @BeanReference(type=com.liferay.portal.kernel.service.ResourceActionLocalService.class) protected com.liferay.portal.kernel.service.ResourceActionLocalService resourceActionLocalService
    • roleLocalService

      @BeanReference(type=com.liferay.portal.kernel.service.RoleLocalService.class) protected com.liferay.portal.kernel.service.RoleLocalService roleLocalService
  • Constructor Details

    • ResourceActionsImpl

      public ResourceActionsImpl()
  • Method Details

    • check

      public void check(String portletName)
      Specified by:
      check in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getAction

      public String getAction(javax.servlet.http.HttpServletRequest httpServletRequest, String action)
      Specified by:
      getAction in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getAction

      public String getAction(Locale locale, String action)
      Specified by:
      getAction in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getCompositeModelName

      public String getCompositeModelName(String... classNames)
      Specified by:
      getCompositeModelName in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getCompositeModelNameSeparator

      public String getCompositeModelNameSeparator()
      Specified by:
      getCompositeModelNameSeparator in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelNames

      public List<String> getModelNames()
      Specified by:
      getModelNames in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelPortletResources

      public List<String> getModelPortletResources(String name)
      Specified by:
      getModelPortletResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelResource

      public String getModelResource(javax.servlet.http.HttpServletRequest httpServletRequest, String name)
      Specified by:
      getModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelResource

      public String getModelResource(Locale locale, String name)
      Specified by:
      getModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelResourceActions

      public List<String> getModelResourceActions(String name)
      Specified by:
      getModelResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelResourceGroupDefaultActions

      public List<String> getModelResourceGroupDefaultActions(String name)
      Specified by:
      getModelResourceGroupDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelResourceGuestDefaultActions

      public List<String> getModelResourceGuestDefaultActions(String name)
      Specified by:
      getModelResourceGuestDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelResourceGuestUnsupportedActions

      public List<String> getModelResourceGuestUnsupportedActions(String name)
      Specified by:
      getModelResourceGuestUnsupportedActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelResourceNamePrefix

      public String getModelResourceNamePrefix()
      Specified by:
      getModelResourceNamePrefix in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelResourceOwnerDefaultActions

      public List<String> getModelResourceOwnerDefaultActions(String name)
      Specified by:
      getModelResourceOwnerDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getModelResourceWeight

      public Double getModelResourceWeight(String name)
      Specified by:
      getModelResourceWeight in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getPortletModelResources

      public List<String> getPortletModelResources(String portletName)
      Specified by:
      getPortletModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getPortletNames

      public List<String> getPortletNames()
      Specified by:
      getPortletNames in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getPortletResourceActions

      public List<String> getPortletResourceActions(String name)
      Specified by:
      getPortletResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getPortletResourceGroupDefaultActions

      public List<String> getPortletResourceGroupDefaultActions(String name)
      Specified by:
      getPortletResourceGroupDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getPortletResourceGuestDefaultActions

      public List<String> getPortletResourceGuestDefaultActions(String name)
      Specified by:
      getPortletResourceGuestDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getPortletResourceGuestUnsupportedActions

      public List<String> getPortletResourceGuestUnsupportedActions(String name)
      Specified by:
      getPortletResourceGuestUnsupportedActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getPortletResourceLayoutManagerActions

      public List<String> getPortletResourceLayoutManagerActions(String name)
      Specified by:
      getPortletResourceLayoutManagerActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getPortletResourceOwnerDefaultActions

      public List<String> getPortletResourceOwnerDefaultActions(String name)
      Specified by:
      getPortletResourceOwnerDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getPortletRootModelResource

      public String getPortletRootModelResource(String portletName)
      Specified by:
      getPortletRootModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getResourceActions

      public List<String> getResourceActions(String name)
      Specified by:
      getResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getResourceActions

      public List<String> getResourceActions(String portletResource, String modelResource)
      Specified by:
      getResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getResourceGuestUnsupportedActions

      public List<String> getResourceGuestUnsupportedActions(String portletResource, String modelResource)
      Specified by:
      getResourceGuestUnsupportedActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • getRoles

      public List<com.liferay.portal.kernel.model.Role> getRoles(long companyId, com.liferay.portal.kernel.model.Group group, String modelResource, int[] roleTypes)
      Specified by:
      getRoles in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • isPortalModelResource

      public boolean isPortalModelResource(String modelResource)
      Specified by:
      isPortalModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • isRootModelResource

      public boolean isRootModelResource(String modelResource)
      Specified by:
      isRootModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • populateModelResources

      public void populateModelResources(ClassLoader classLoader, String... sources) throws com.liferay.portal.kernel.exception.ResourceActionsException
      Specified by:
      populateModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
      Throws:
      com.liferay.portal.kernel.exception.ResourceActionsException
    • populateModelResources

      public void populateModelResources(ClassLoader classLoader, String[] sources, boolean checkResourceActions) throws com.liferay.portal.kernel.exception.ResourceActionsException
      Specified by:
      populateModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
      Throws:
      com.liferay.portal.kernel.exception.ResourceActionsException
    • populateModelResources

      public void populateModelResources(com.liferay.portal.kernel.xml.Document document) throws com.liferay.portal.kernel.exception.ResourceActionsException
      Specified by:
      populateModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
      Throws:
      com.liferay.portal.kernel.exception.ResourceActionsException
    • populatePortletResource

      public void populatePortletResource(com.liferay.portal.kernel.model.Portlet portlet, ClassLoader classLoader, com.liferay.portal.kernel.xml.Document document) throws com.liferay.portal.kernel.exception.ResourceActionsException
      Specified by:
      populatePortletResource in interface com.liferay.portal.kernel.security.permission.ResourceActions
      Throws:
      com.liferay.portal.kernel.exception.ResourceActionsException
    • populatePortletResource

      public void populatePortletResource(com.liferay.portal.kernel.model.Portlet portlet, ClassLoader classLoader, String... sources) throws com.liferay.portal.kernel.exception.ResourceActionsException
      Specified by:
      populatePortletResource in interface com.liferay.portal.kernel.security.permission.ResourceActions
      Throws:
      com.liferay.portal.kernel.exception.ResourceActionsException
    • populatePortletResources

      public void populatePortletResources(ClassLoader classLoader, String... sources) throws com.liferay.portal.kernel.exception.ResourceActionsException
      Specified by:
      populatePortletResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
      Throws:
      com.liferay.portal.kernel.exception.ResourceActionsException
    • populatePortletResources

      public void populatePortletResources(ClassLoader classLoader, String[] sources, boolean checkResourceActions) throws com.liferay.portal.kernel.exception.ResourceActionsException
      Specified by:
      populatePortletResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
      Throws:
      com.liferay.portal.kernel.exception.ResourceActionsException
    • readModelResources

      public void readModelResources(ClassLoader classLoader, String source) throws com.liferay.portal.kernel.exception.ResourceActionsException
      Throws:
      com.liferay.portal.kernel.exception.ResourceActionsException
    • removeModelResource

      public void removeModelResource(String name, String action)
      Specified by:
      removeModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • removeModelResources

      public void removeModelResources(com.liferay.portal.kernel.xml.Document document)
      Specified by:
      removeModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
    • removePortletResources

      public void removePortletResources(com.liferay.portal.kernel.xml.Document document)
      Specified by:
      removePortletResources in interface com.liferay.portal.kernel.security.permission.ResourceActions