com.liferay.portal.security.permission
Class ResourceActionsImpl
java.lang.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
|
Method Summary |
void |
afterPropertiesSet()
|
void |
checkAction(String name,
String actionId)
|
protected void |
checkGuestUnsupportedActions(Set<String> guestUnsupportedActions,
Set<String> guestDefaultActions)
|
protected void |
checkModelActions(Set<String> actions)
|
protected void |
checkPortletActions(com.liferay.portal.kernel.model.Portlet portlet,
Set<String> actions)
|
protected void |
checkPortletActions(String name,
Set<String> actions)
|
protected void |
checkPortletGroupDefaultActions(Set<String> actions)
|
protected void |
checkPortletGuestDefaultActions(Set<String> actions)
|
protected void |
checkPortletLayoutManagerActions(Set<String> actions)
|
void |
destroy()
|
String |
getAction(javax.servlet.http.HttpServletRequest request,
String action)
|
String |
getAction(Locale locale,
String action)
|
String |
getActionNamePrefix()
|
List<String> |
getActionsNames(javax.servlet.http.HttpServletRequest request,
List<String> actions)
Deprecated. As of 7.0.0 |
List<String> |
getActionsNames(javax.servlet.http.HttpServletRequest request,
String name,
long actionIds)
Deprecated. As of 7.0.0 |
protected String |
getCompositeModelName(com.liferay.portal.kernel.xml.Element compositeModelNameElement)
|
String |
getCompositeModelNameSeparator()
|
List<String> |
getModelNames()
|
List<String> |
getModelPortletResources(String name)
|
String |
getModelResource(javax.servlet.http.HttpServletRequest request,
String name)
|
String |
getModelResource(Locale locale,
String name)
|
List<String> |
getModelResourceActions(String name)
|
protected com.liferay.portal.kernel.security.permission.ModelResourceActionsBag |
getModelResourceActionsBag(String modelName)
|
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()
|
protected com.liferay.portal.kernel.xml.Element |
getPermissionsChildElement(com.liferay.portal.kernel.xml.Element parentElement,
String childElementName)
|
String[] |
getPortalModelResources()
|
String |
getPortletBaseResource(String portletName)
|
protected Set<String> |
getPortletMimeTypeActions(String name)
|
List<String> |
getPortletModelResources(String portletName)
|
List<String> |
getPortletNames()
|
List<String> |
getPortletResourceActions(com.liferay.portal.kernel.model.Portlet portlet)
|
List<String> |
getPortletResourceActions(String name)
|
protected com.liferay.portal.kernel.security.permission.PortletResourceActionsBag |
getPortletResourceActionsBag(String portletName)
|
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)
|
protected String |
getResourceBundlesString(javax.servlet.http.HttpServletRequest request,
String key)
|
protected String |
getResourceBundlesString(Locale locale,
String key)
|
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)
|
protected int[] |
getRoleTypes(long companyId,
com.liferay.portal.kernel.model.Group group,
String modelResource)
|
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 source)
|
protected void |
read(String servletContextName,
com.liferay.portal.kernel.xml.Document document)
|
void |
read(String servletContextName,
InputStream inputStream)
Deprecated. As of 7.0.0 |
protected List<String> |
readActionKeys(com.liferay.portal.kernel.xml.Element parentElement)
|
protected void |
readGroupDefaultActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> groupDefaultActions)
|
protected void |
readGuestDefaultActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> guestDefaultActions)
|
protected void |
readGuestUnsupportedActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> guestUnsupportedActions,
Set<String> guestDefaultActions)
|
protected void |
readLayoutManagerActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> layoutManagerActions,
Set<String> supportsActions)
|
protected void |
readModelResource(String servletContextName,
com.liferay.portal.kernel.xml.Element modelResourceElement)
|
protected void |
readOwnerDefaultActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> ownerDefaultActions)
|
protected void |
readPortletResource(String servletContextName,
com.liferay.portal.kernel.xml.Element portletResourceElement)
|
protected Set<String> |
readSupportsActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> supportsActions)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ResourceActionsImpl
public ResourceActionsImpl()
afterPropertiesSet
public void afterPropertiesSet()
checkAction
public void checkAction(String name,
String actionId)
throws com.liferay.portal.kernel.exception.NoSuchResourceActionException
- Specified by:
checkAction in interface com.liferay.portal.kernel.security.permission.ResourceActions
- Throws:
com.liferay.portal.kernel.exception.NoSuchResourceActionException
destroy
public void destroy()
getAction
public String getAction(javax.servlet.http.HttpServletRequest request,
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
getActionNamePrefix
public String getActionNamePrefix()
- Specified by:
getActionNamePrefix in interface com.liferay.portal.kernel.security.permission.ResourceActions
getActionsNames
@Deprecated
public List<String> getActionsNames(javax.servlet.http.HttpServletRequest request,
List<String> actions)
- Deprecated. As of 7.0.0
- Specified by:
getActionsNames in interface com.liferay.portal.kernel.security.permission.ResourceActions
getActionsNames
@Deprecated
public List<String> getActionsNames(javax.servlet.http.HttpServletRequest request,
String name,
long actionIds)
- Deprecated. As of 7.0.0
- Specified by:
getActionsNames 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 request,
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
getOrganizationModelResources
public String[] getOrganizationModelResources()
- Specified by:
getOrganizationModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
getPortalModelResources
public String[] getPortalModelResources()
- Specified by:
getPortalModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
getPortletBaseResource
public String getPortletBaseResource(String portletName)
- Specified by:
getPortletBaseResource 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(com.liferay.portal.kernel.model.Portlet portlet)
- Specified by:
getPortletResourceActions 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
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
getResourceGroupDefaultActions
public List<String> getResourceGroupDefaultActions(String name)
- Specified by:
getResourceGroupDefaultActions 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
getRootModelResources
public String[] getRootModelResources()
- Specified by:
getRootModelResources in interface com.liferay.portal.kernel.security.permission.ResourceActions
hasModelResourceActions
public boolean hasModelResourceActions(String name)
- Specified by:
hasModelResourceActions in interface com.liferay.portal.kernel.security.permission.ResourceActions
isOrganizationModelResource
public boolean isOrganizationModelResource(String modelResource)
- Specified by:
isOrganizationModelResource 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
read
public void read(String servletContextName,
ClassLoader classLoader,
String source)
throws Exception
- Specified by:
read in interface com.liferay.portal.kernel.security.permission.ResourceActions
- Throws:
Exception
read
@Deprecated
public void read(String servletContextName,
InputStream inputStream)
throws Exception
- Deprecated. As of 7.0.0
- Specified by:
read in interface com.liferay.portal.kernel.security.permission.ResourceActions
- Throws:
Exception
checkGuestUnsupportedActions
protected void checkGuestUnsupportedActions(Set<String> guestUnsupportedActions,
Set<String> guestDefaultActions)
checkModelActions
protected void checkModelActions(Set<String> actions)
checkPortletActions
protected void checkPortletActions(com.liferay.portal.kernel.model.Portlet portlet,
Set<String> actions)
checkPortletActions
protected void checkPortletActions(String name,
Set<String> actions)
checkPortletGroupDefaultActions
protected void checkPortletGroupDefaultActions(Set<String> actions)
checkPortletGuestDefaultActions
protected void checkPortletGuestDefaultActions(Set<String> actions)
checkPortletLayoutManagerActions
protected void checkPortletLayoutManagerActions(Set<String> actions)
getCompositeModelName
protected String getCompositeModelName(com.liferay.portal.kernel.xml.Element compositeModelNameElement)
getModelResourceActionsBag
protected com.liferay.portal.kernel.security.permission.ModelResourceActionsBag getModelResourceActionsBag(String modelName)
getPermissionsChildElement
protected com.liferay.portal.kernel.xml.Element getPermissionsChildElement(com.liferay.portal.kernel.xml.Element parentElement,
String childElementName)
getPortletMimeTypeActions
protected Set<String> getPortletMimeTypeActions(String name)
getPortletResourceActionsBag
protected com.liferay.portal.kernel.security.permission.PortletResourceActionsBag getPortletResourceActionsBag(String portletName)
getResourceBundlesString
protected String getResourceBundlesString(javax.servlet.http.HttpServletRequest request,
String key)
getResourceBundlesString
protected String getResourceBundlesString(Locale locale,
String key)
getRoleTypes
protected int[] getRoleTypes(long companyId,
com.liferay.portal.kernel.model.Group group,
String modelResource)
read
protected void read(String servletContextName,
com.liferay.portal.kernel.xml.Document document)
throws Exception
- Throws:
Exception
readActionKeys
protected List<String> readActionKeys(com.liferay.portal.kernel.xml.Element parentElement)
readGroupDefaultActions
protected void readGroupDefaultActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> groupDefaultActions)
readGuestDefaultActions
protected void readGuestDefaultActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> guestDefaultActions)
readGuestUnsupportedActions
protected void readGuestUnsupportedActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> guestUnsupportedActions,
Set<String> guestDefaultActions)
readLayoutManagerActions
protected void readLayoutManagerActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> layoutManagerActions,
Set<String> supportsActions)
readModelResource
protected void readModelResource(String servletContextName,
com.liferay.portal.kernel.xml.Element modelResourceElement)
throws Exception
- Throws:
Exception
readOwnerDefaultActions
protected void readOwnerDefaultActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> ownerDefaultActions)
readPortletResource
protected void readPortletResource(String servletContextName,
com.liferay.portal.kernel.xml.Element portletResourceElement)
throws Exception
- Throws:
Exception
readSupportsActions
protected Set<String> readSupportsActions(com.liferay.portal.kernel.xml.Element parentElement,
Set<String> supportsActions)