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 Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.portal.kernel.service.PortletLocalService
protected com.liferay.portal.kernel.service.ResourceActionLocalService
protected com.liferay.portal.kernel.service.RoleLocalService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getCompositeModelName
(String... classNames) getModelResource
(Locale locale, String name) getModelResource
(javax.servlet.http.HttpServletRequest httpServletRequest, String name) getModelResourceWeight
(String name) getPortletModelResources
(String portletName) getPortletRootModelResource
(String portletName) getResourceActions
(String name) getResourceActions
(String portletResource, String modelResource) getResourceGuestUnsupportedActions
(String portletResource, String modelResource) List<com.liferay.portal.kernel.model.Role>
getRoles
(long companyId, com.liferay.portal.kernel.model.Group group, String modelResource, int[] roleTypes) boolean
isPortalModelResource
(String modelResource) boolean
isRootModelResource
(String modelResource) void
populateModelResources
(com.liferay.portal.kernel.xml.Document document) void
populateModelResources
(ClassLoader classLoader, String... sources) void
populateModelResources
(ClassLoader classLoader, String[] sources, boolean checkResourceActions) void
populatePortletResource
(com.liferay.portal.kernel.model.Portlet portlet, ClassLoader classLoader, com.liferay.portal.kernel.xml.Document document) void
populatePortletResource
(com.liferay.portal.kernel.model.Portlet portlet, ClassLoader classLoader, String... sources) void
populatePortletResources
(ClassLoader classLoader, String... sources) void
populatePortletResources
(ClassLoader classLoader, String[] sources, boolean checkResourceActions) void
readModelResources
(ClassLoader classLoader, String source) void
removeModelResource
(String name, String action) void
removeModelResources
(com.liferay.portal.kernel.xml.Document document) void
removePortletResources
(com.liferay.portal.kernel.xml.Document document)
-
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
- Specified by:
check
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getAction
- Specified by:
getAction
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getAction
- Specified by:
getAction
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getCompositeModelName
- Specified by:
getCompositeModelName
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getCompositeModelNameSeparator
- Specified by:
getCompositeModelNameSeparator
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelNames
- Specified by:
getModelNames
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelPortletResources
- Specified by:
getModelPortletResources
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelResource
public String getModelResource(javax.servlet.http.HttpServletRequest httpServletRequest, String name) - Specified by:
getModelResource
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelResource
- Specified by:
getModelResource
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelResourceActions
- Specified by:
getModelResourceActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelResourceGroupDefaultActions
- Specified by:
getModelResourceGroupDefaultActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelResourceGuestDefaultActions
- Specified by:
getModelResourceGuestDefaultActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelResourceGuestUnsupportedActions
- Specified by:
getModelResourceGuestUnsupportedActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelResourceNamePrefix
- Specified by:
getModelResourceNamePrefix
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelResourceOwnerDefaultActions
- Specified by:
getModelResourceOwnerDefaultActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getModelResourceWeight
- Specified by:
getModelResourceWeight
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getPortletModelResources
- Specified by:
getPortletModelResources
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getPortletNames
- Specified by:
getPortletNames
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getPortletResourceActions
- Specified by:
getPortletResourceActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getPortletResourceGroupDefaultActions
- Specified by:
getPortletResourceGroupDefaultActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getPortletResourceGuestDefaultActions
- Specified by:
getPortletResourceGuestDefaultActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getPortletResourceGuestUnsupportedActions
- Specified by:
getPortletResourceGuestUnsupportedActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getPortletResourceLayoutManagerActions
- Specified by:
getPortletResourceLayoutManagerActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getPortletResourceOwnerDefaultActions
- Specified by:
getPortletResourceOwnerDefaultActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getPortletRootModelResource
- Specified by:
getPortletRootModelResource
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getResourceActions
- Specified by:
getResourceActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getResourceActions
- Specified by:
getResourceActions
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
getResourceGuestUnsupportedActions
public List<String> getResourceGuestUnsupportedActions(String portletResource, String modelResource) - Specified by:
getResourceGuestUnsupportedActions
in interfacecom.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 interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
isPortalModelResource
- Specified by:
isPortalModelResource
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
isRootModelResource
- Specified by:
isRootModelResource
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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
- Specified by:
removeModelResource
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
removeModelResources
public void removeModelResources(com.liferay.portal.kernel.xml.Document document) - Specified by:
removeModelResources
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-
removePortletResources
public void removePortletResources(com.liferay.portal.kernel.xml.Document document) - Specified by:
removePortletResources
in interfacecom.liferay.portal.kernel.security.permission.ResourceActions
-