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 |
check(String portletName) |
String |
getAction(javax.servlet.http.HttpServletRequest httpServletRequest,
String action) |
String |
getAction(Locale locale,
String action) |
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) |
List<String> |
getPortletModelResources(String portletName) |
List<String> |
getPortletNames() |
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> |
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(ClassLoader classLoader,
String... sources) |
void |
populateModelResources(ClassLoader classLoader,
String[] sources,
boolean checkResourceActions) |
void |
populateModelResources(com.liferay.portal.kernel.xml.Document document) |
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) |
@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 check(String portletName)
check
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public String getAction(javax.servlet.http.HttpServletRequest httpServletRequest, String action)
getAction
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public String getAction(Locale locale, String action)
getAction
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public String getCompositeModelName(String... classNames)
getCompositeModelName
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public String getCompositeModelNameSeparator()
getCompositeModelNameSeparator
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getModelNames()
getModelNames
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getModelPortletResources(String name)
getModelPortletResources
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public String getModelResource(javax.servlet.http.HttpServletRequest httpServletRequest, String name)
getModelResource
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public String getModelResource(Locale locale, String name)
getModelResource
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getModelResourceActions(String name)
getModelResourceActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getModelResourceGroupDefaultActions(String name)
getModelResourceGroupDefaultActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getModelResourceGuestDefaultActions(String name)
getModelResourceGuestDefaultActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getModelResourceGuestUnsupportedActions(String name)
getModelResourceGuestUnsupportedActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public String getModelResourceNamePrefix()
getModelResourceNamePrefix
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getModelResourceOwnerDefaultActions(String name)
getModelResourceOwnerDefaultActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public Double getModelResourceWeight(String name)
getModelResourceWeight
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getPortletModelResources(String portletName)
getPortletModelResources
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getPortletNames()
getPortletNames
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getPortletResourceActions(String name)
getPortletResourceActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getPortletResourceGroupDefaultActions(String name)
getPortletResourceGroupDefaultActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getPortletResourceGuestDefaultActions(String name)
getPortletResourceGuestDefaultActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getPortletResourceGuestUnsupportedActions(String name)
getPortletResourceGuestUnsupportedActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getPortletResourceLayoutManagerActions(String name)
getPortletResourceLayoutManagerActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public String getPortletRootModelResource(String portletName)
getPortletRootModelResource
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getResourceActions(String name)
getResourceActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getResourceActions(String portletResource, String modelResource)
getResourceActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public List<String> getResourceGuestUnsupportedActions(String portletResource, String modelResource)
getResourceGuestUnsupportedActions
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public 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.ResourceActions
public boolean isPortalModelResource(String modelResource)
isPortalModelResource
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public boolean isRootModelResource(String modelResource)
isRootModelResource
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public void populateModelResources(ClassLoader classLoader, String... sources) throws com.liferay.portal.kernel.exception.ResourceActionsException
populateModelResources
in interface com.liferay.portal.kernel.security.permission.ResourceActions
com.liferay.portal.kernel.exception.ResourceActionsException
public void populateModelResources(ClassLoader classLoader, String[] sources, boolean checkResourceActions) throws com.liferay.portal.kernel.exception.ResourceActionsException
populateModelResources
in interface com.liferay.portal.kernel.security.permission.ResourceActions
com.liferay.portal.kernel.exception.ResourceActionsException
public void populateModelResources(com.liferay.portal.kernel.xml.Document document) throws com.liferay.portal.kernel.exception.ResourceActionsException
populateModelResources
in interface com.liferay.portal.kernel.security.permission.ResourceActions
com.liferay.portal.kernel.exception.ResourceActionsException
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
populatePortletResource
in interface com.liferay.portal.kernel.security.permission.ResourceActions
com.liferay.portal.kernel.exception.ResourceActionsException
public void populatePortletResource(com.liferay.portal.kernel.model.Portlet portlet, ClassLoader classLoader, String... sources) throws com.liferay.portal.kernel.exception.ResourceActionsException
populatePortletResource
in interface com.liferay.portal.kernel.security.permission.ResourceActions
com.liferay.portal.kernel.exception.ResourceActionsException
public void populatePortletResources(ClassLoader classLoader, String... sources) throws com.liferay.portal.kernel.exception.ResourceActionsException
populatePortletResources
in interface com.liferay.portal.kernel.security.permission.ResourceActions
com.liferay.portal.kernel.exception.ResourceActionsException
public void populatePortletResources(ClassLoader classLoader, String[] sources, boolean checkResourceActions) throws com.liferay.portal.kernel.exception.ResourceActionsException
populatePortletResources
in interface com.liferay.portal.kernel.security.permission.ResourceActions
com.liferay.portal.kernel.exception.ResourceActionsException
public void readModelResources(ClassLoader classLoader, String source) throws com.liferay.portal.kernel.exception.ResourceActionsException
com.liferay.portal.kernel.exception.ResourceActionsException
public void removeModelResource(String name, String action)
removeModelResource
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public void removeModelResources(com.liferay.portal.kernel.xml.Document document)
removeModelResources
in interface com.liferay.portal.kernel.security.permission.ResourceActions
public void removePortletResources(com.liferay.portal.kernel.xml.Document document)
removePortletResources
in interface com.liferay.portal.kernel.security.permission.ResourceActions