com.liferay.portal.security.permission
Class ResourceActionsImpl
java.lang.Object
com.liferay.portal.security.permission.ResourceActionsImpl
- All Implemented Interfaces:
- ResourceActions
public class ResourceActionsImpl
- extends Object
- implements 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(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(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 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 Element |
getPermissionsChildElement(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(Portlet portlet)
|
List<String> |
getPortletResourceActions(String name)
|
protected 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<Role> |
getRoles(long companyId,
Group group,
String modelResource)
Deprecated. As of 6.1.0, replaced by getRoles(long, Group,
String, int[]) |
List<Role> |
getRoles(long companyId,
Group group,
String modelResource,
int[] roleTypes)
|
protected int[] |
getRoleTypes(long companyId,
Group group,
String modelResource)
|
boolean |
hasModelResourceActions(String name)
|
boolean |
isOrganizationModelResource(String modelResource)
|
boolean |
isPortalModelResource(String modelResource)
|
void |
read(String servletContextName,
ClassLoader classLoader,
String source)
|
protected void |
read(String servletContextName,
Document document)
|
void |
read(String servletContextName,
InputStream inputStream)
Deprecated. As of 7.0.0 |
protected List<String> |
readActionKeys(Element parentElement)
|
protected void |
readGroupDefaultActions(Element parentElement,
Set<String> groupDefaultActions)
|
protected void |
readGuestDefaultActions(Element parentElement,
Set<String> guestDefaultActions)
|
protected void |
readGuestUnsupportedActions(Element parentElement,
Set<String> guestUnsupportedActions,
Set<String> guestDefaultActions)
|
protected void |
readLayoutManagerActions(Element parentElement,
Set<String> layoutManagerActions,
Set<String> supportsActions)
|
protected void |
readModelResource(String servletContextName,
Element modelResourceElement)
|
protected void |
readOwnerDefaultActions(Element parentElement,
Set<String> ownerDefaultActions)
|
protected void |
readPortletResource(String servletContextName,
Element portletResourceElement)
|
protected Set<String> |
readSupportsActions(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=PortletLocalService.class)
protected PortletLocalService portletLocalService
resourceActionLocalService
@BeanReference(type=ResourceActionLocalService.class)
protected ResourceActionLocalService resourceActionLocalService
roleLocalService
@BeanReference(type=RoleLocalService.class)
protected RoleLocalService roleLocalService
ResourceActionsImpl
public ResourceActionsImpl()
afterPropertiesSet
public void afterPropertiesSet()
checkAction
public void checkAction(String name,
String actionId)
throws NoSuchResourceActionException
- Specified by:
checkAction in interface ResourceActions
- Throws:
NoSuchResourceActionException
destroy
public void destroy()
getAction
public String getAction(javax.servlet.http.HttpServletRequest request,
String action)
- Specified by:
getAction in interface ResourceActions
getAction
public String getAction(Locale locale,
String action)
- Specified by:
getAction in interface ResourceActions
getActionNamePrefix
public String getActionNamePrefix()
- Specified by:
getActionNamePrefix in interface 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 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 ResourceActions
getCompositeModelNameSeparator
public String getCompositeModelNameSeparator()
- Specified by:
getCompositeModelNameSeparator in interface ResourceActions
getModelNames
public List<String> getModelNames()
- Specified by:
getModelNames in interface ResourceActions
getModelPortletResources
public List<String> getModelPortletResources(String name)
- Specified by:
getModelPortletResources in interface ResourceActions
getModelResource
public String getModelResource(javax.servlet.http.HttpServletRequest request,
String name)
- Specified by:
getModelResource in interface ResourceActions
getModelResource
public String getModelResource(Locale locale,
String name)
- Specified by:
getModelResource in interface ResourceActions
getModelResourceActions
public List<String> getModelResourceActions(String name)
- Specified by:
getModelResourceActions in interface ResourceActions
getModelResourceGroupDefaultActions
public List<String> getModelResourceGroupDefaultActions(String name)
- Specified by:
getModelResourceGroupDefaultActions in interface ResourceActions
getModelResourceGuestDefaultActions
public List<String> getModelResourceGuestDefaultActions(String name)
- Specified by:
getModelResourceGuestDefaultActions in interface ResourceActions
getModelResourceGuestUnsupportedActions
public List<String> getModelResourceGuestUnsupportedActions(String name)
- Specified by:
getModelResourceGuestUnsupportedActions in interface ResourceActions
getModelResourceNamePrefix
public String getModelResourceNamePrefix()
- Specified by:
getModelResourceNamePrefix in interface ResourceActions
getModelResourceOwnerDefaultActions
public List<String> getModelResourceOwnerDefaultActions(String name)
- Specified by:
getModelResourceOwnerDefaultActions in interface ResourceActions
getModelResourceWeight
public Double getModelResourceWeight(String name)
- Specified by:
getModelResourceWeight in interface ResourceActions
getOrganizationModelResources
public String[] getOrganizationModelResources()
- Specified by:
getOrganizationModelResources in interface ResourceActions
getPortalModelResources
public String[] getPortalModelResources()
- Specified by:
getPortalModelResources in interface ResourceActions
getPortletBaseResource
public String getPortletBaseResource(String portletName)
- Specified by:
getPortletBaseResource in interface ResourceActions
getPortletModelResources
public List<String> getPortletModelResources(String portletName)
- Specified by:
getPortletModelResources in interface ResourceActions
getPortletNames
public List<String> getPortletNames()
- Specified by:
getPortletNames in interface ResourceActions
getPortletResourceActions
public List<String> getPortletResourceActions(Portlet portlet)
- Specified by:
getPortletResourceActions in interface ResourceActions
getPortletResourceActions
public List<String> getPortletResourceActions(String name)
- Specified by:
getPortletResourceActions in interface ResourceActions
getPortletResourceGroupDefaultActions
public List<String> getPortletResourceGroupDefaultActions(String name)
- Specified by:
getPortletResourceGroupDefaultActions in interface ResourceActions
getPortletResourceGuestDefaultActions
public List<String> getPortletResourceGuestDefaultActions(String name)
- Specified by:
getPortletResourceGuestDefaultActions in interface ResourceActions
getPortletResourceGuestUnsupportedActions
public List<String> getPortletResourceGuestUnsupportedActions(String name)
- Specified by:
getPortletResourceGuestUnsupportedActions in interface ResourceActions
getPortletResourceLayoutManagerActions
public List<String> getPortletResourceLayoutManagerActions(String name)
- Specified by:
getPortletResourceLayoutManagerActions in interface ResourceActions
getPortletRootModelResource
public String getPortletRootModelResource(String portletName)
- Specified by:
getPortletRootModelResource in interface ResourceActions
getResourceActions
public List<String> getResourceActions(String name)
- Specified by:
getResourceActions in interface ResourceActions
getResourceActions
public List<String> getResourceActions(String portletResource,
String modelResource)
- Specified by:
getResourceActions in interface ResourceActions
getResourceGroupDefaultActions
public List<String> getResourceGroupDefaultActions(String name)
- Specified by:
getResourceGroupDefaultActions in interface ResourceActions
getResourceGuestUnsupportedActions
public List<String> getResourceGuestUnsupportedActions(String portletResource,
String modelResource)
- Specified by:
getResourceGuestUnsupportedActions in interface ResourceActions
getRoles
@Deprecated
public List<Role> getRoles(long companyId,
Group group,
String modelResource)
- Deprecated. As of 6.1.0, replaced by
getRoles(long, Group,
String, int[])
- Specified by:
getRoles in interface ResourceActions
getRoles
public List<Role> getRoles(long companyId,
Group group,
String modelResource,
int[] roleTypes)
- Specified by:
getRoles in interface ResourceActions
hasModelResourceActions
public boolean hasModelResourceActions(String name)
- Specified by:
hasModelResourceActions in interface ResourceActions
isOrganizationModelResource
public boolean isOrganizationModelResource(String modelResource)
- Specified by:
isOrganizationModelResource in interface ResourceActions
isPortalModelResource
public boolean isPortalModelResource(String modelResource)
- Specified by:
isPortalModelResource in interface ResourceActions
read
public void read(String servletContextName,
ClassLoader classLoader,
String source)
throws Exception
- Specified by:
read in interface 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 ResourceActions
- Throws:
Exception
checkGuestUnsupportedActions
protected void checkGuestUnsupportedActions(Set<String> guestUnsupportedActions,
Set<String> guestDefaultActions)
checkModelActions
protected void checkModelActions(Set<String> actions)
checkPortletActions
protected void checkPortletActions(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(Element compositeModelNameElement)
getModelResourceActionsBag
protected ModelResourceActionsBag getModelResourceActionsBag(String modelName)
getPermissionsChildElement
protected Element getPermissionsChildElement(Element parentElement,
String childElementName)
getPortletMimeTypeActions
protected Set<String> getPortletMimeTypeActions(String name)
getPortletResourceActionsBag
protected 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,
Group group,
String modelResource)
read
protected void read(String servletContextName,
Document document)
throws Exception
- Throws:
Exception
readActionKeys
protected List<String> readActionKeys(Element parentElement)
readGroupDefaultActions
protected void readGroupDefaultActions(Element parentElement,
Set<String> groupDefaultActions)
readGuestDefaultActions
protected void readGuestDefaultActions(Element parentElement,
Set<String> guestDefaultActions)
readGuestUnsupportedActions
protected void readGuestUnsupportedActions(Element parentElement,
Set<String> guestUnsupportedActions,
Set<String> guestDefaultActions)
readLayoutManagerActions
protected void readLayoutManagerActions(Element parentElement,
Set<String> layoutManagerActions,
Set<String> supportsActions)
readModelResource
protected void readModelResource(String servletContextName,
Element modelResourceElement)
throws Exception
- Throws:
Exception
readOwnerDefaultActions
protected void readOwnerDefaultActions(Element parentElement,
Set<String> ownerDefaultActions)
readPortletResource
protected void readPortletResource(String servletContextName,
Element portletResourceElement)
throws Exception
- Throws:
Exception
readSupportsActions
protected Set<String> readSupportsActions(Element parentElement,
Set<String> supportsActions)