public class ResourceActionsImpl
extends Object
implements com.liferay.portal.kernel.security.permission.ResourceActions
| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.service.PortletLocalService |
portletLocalService |
protected com.liferay.portal.kernel.service.ResourceActionLocalService |
resourceActionLocalService |
protected com.liferay.portal.kernel.service.RoleLocalService |
roleLocalService |
| Constructor and Description |
|---|
ResourceActionsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
check(com.liferay.portal.kernel.model.Portlet portlet) |
void |
check(String portletName) |
void |
checkAction(String name,
String actionId) |
String |
getAction(javax.servlet.http.HttpServletRequest httpServletRequest,
String action) |
String |
getAction(Locale locale,
String action) |
String |
getActionNamePrefix() |
String |
getCompositeModelName(String... classNames) |
String |
getCompositeModelNameSeparator() |
List<String> |
getModelNames() |
List<String> |
getModelPortletResources(String name) |
String |
getModelResource(javax.servlet.http.HttpServletRequest httpServletRequest,
String name) |
String |
getModelResource(Locale locale,
String name) |
List<String> |
getModelResourceActions(String name) |
List<String> |
getModelResourceGroupDefaultActions(String name) |
List<String> |
getModelResourceGuestDefaultActions(String name) |
List<String> |
getModelResourceGuestUnsupportedActions(String name) |
String |
getModelResourceNamePrefix() |
List<String> |
getModelResourceOwnerDefaultActions(String name) |
Double |
getModelResourceWeight(String name) |
String[] |
getOrganizationModelResources() |
String[] |
getPortalModelResources() |
String |
getPortletBaseResource(String portletName) |
List<String> |
getPortletModelResources(String portletName) |
List<String> |
getPortletNames() |
List<String> |
getPortletResourceActions(com.liferay.portal.kernel.model.Portlet portlet) |
List<String> |
getPortletResourceActions(String name) |
List<String> |
getPortletResourceGroupDefaultActions(String name) |
List<String> |
getPortletResourceGuestDefaultActions(String name) |
List<String> |
getPortletResourceGuestUnsupportedActions(String name) |
List<String> |
getPortletResourceLayoutManagerActions(String name) |
String |
getPortletRootModelResource(String portletName) |
List<String> |
getResourceActions(String name) |
List<String> |
getResourceActions(String portletResource,
String modelResource) |
List<String> |
getResourceGroupDefaultActions(String name) |
List<String> |
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) |
String[] |
getRootModelResources() |
boolean |
hasModelResourceActions(String name) |
boolean |
isOrganizationModelResource(String modelResource) |
boolean |
isPortalModelResource(String modelResource) |
boolean |
isRootModelResource(String modelResource) |
void |
read(String servletContextName,
ClassLoader classLoader,
String... sources) |
void |
read(String servletContextName,
ClassLoader classLoader,
String source) |
void |
readAndCheck(String servletContextName,
ClassLoader classLoader,
String... sources) |
void |
removePortletResource(String portletName) |
@BeanReference(type=com.liferay.portal.kernel.service.PortletLocalService.class) protected com.liferay.portal.kernel.service.PortletLocalService portletLocalService
@BeanReference(type=com.liferay.portal.kernel.service.ResourceActionLocalService.class) protected com.liferay.portal.kernel.service.ResourceActionLocalService resourceActionLocalService
@BeanReference(type=com.liferay.portal.kernel.service.RoleLocalService.class) protected com.liferay.portal.kernel.service.RoleLocalService roleLocalService
public void afterPropertiesSet()
public void check(com.liferay.portal.kernel.model.Portlet portlet)
check in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic void check(String portletName)
check in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic void checkAction(String name,
String actionId)
throws com.liferay.portal.kernel.exception.NoSuchResourceActionException
checkAction in interface com.liferay.portal.kernel.security.permission.ResourceActionscom.liferay.portal.kernel.exception.NoSuchResourceActionExceptionpublic String getAction(javax.servlet.http.HttpServletRequest httpServletRequest,
String action)
getAction in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String getAction(Locale locale,
String action)
getAction in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String getActionNamePrefix()
getActionNamePrefix in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String getCompositeModelName(String... classNames)
getCompositeModelName in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String getCompositeModelNameSeparator()
getCompositeModelNameSeparator in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getModelNames()
getModelNames in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getModelPortletResources(String name)
getModelPortletResources in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String getModelResource(javax.servlet.http.HttpServletRequest httpServletRequest,
String name)
getModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String getModelResource(Locale locale,
String name)
getModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getModelResourceActions(String name)
getModelResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getModelResourceGroupDefaultActions(String name)
getModelResourceGroupDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getModelResourceGuestDefaultActions(String name)
getModelResourceGuestDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getModelResourceGuestUnsupportedActions(String name)
getModelResourceGuestUnsupportedActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String getModelResourceNamePrefix()
getModelResourceNamePrefix in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getModelResourceOwnerDefaultActions(String name)
getModelResourceOwnerDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic Double getModelResourceWeight(String name)
getModelResourceWeight in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String[] getOrganizationModelResources()
getOrganizationModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String[] getPortalModelResources()
getPortalModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String getPortletBaseResource(String portletName)
getPortletBaseResource in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getPortletModelResources(String portletName)
getPortletModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getPortletNames()
getPortletNames in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getPortletResourceActions(com.liferay.portal.kernel.model.Portlet portlet)
getPortletResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getPortletResourceActions(String name)
getPortletResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getPortletResourceGroupDefaultActions(String name)
getPortletResourceGroupDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getPortletResourceGuestDefaultActions(String name)
getPortletResourceGuestDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getPortletResourceGuestUnsupportedActions(String name)
getPortletResourceGuestUnsupportedActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getPortletResourceLayoutManagerActions(String name)
getPortletResourceLayoutManagerActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String getPortletRootModelResource(String portletName)
getPortletRootModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getResourceActions(String name)
getResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getResourceActions(String portletResource,
String modelResource)
getResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getResourceGroupDefaultActions(String name)
getResourceGroupDefaultActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<String> getResourceGuestUnsupportedActions(String portletResource,
String modelResource)
getResourceGuestUnsupportedActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic List<com.liferay.portal.kernel.model.Role> getRoles(long companyId,
com.liferay.portal.kernel.model.Group group,
String modelResource,
int[] roleTypes)
getRoles in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic String[] getRootModelResources()
getRootModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic boolean hasModelResourceActions(String name)
hasModelResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic boolean isOrganizationModelResource(String modelResource)
isOrganizationModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic boolean isPortalModelResource(String modelResource)
isPortalModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic boolean isRootModelResource(String modelResource)
isRootModelResource in interface com.liferay.portal.kernel.security.permission.ResourceActionspublic void read(String servletContextName,
ClassLoader classLoader,
String source)
throws Exception
read in interface com.liferay.portal.kernel.security.permission.ResourceActionsExceptionpublic void read(String servletContextName,
ClassLoader classLoader,
String... sources)
throws Exception
read in interface com.liferay.portal.kernel.security.permission.ResourceActionsExceptionpublic void readAndCheck(String servletContextName,
ClassLoader classLoader,
String... sources)
throws Exception
readAndCheck in interface com.liferay.portal.kernel.security.permission.ResourceActionsExceptionpublic void removePortletResource(String portletName)
removePortletResource in interface com.liferay.portal.kernel.security.permission.ResourceActions