Liferay 6.1.2-ce-ga3

com.liferay.portal.security.permission
Class ResourceActionsImpl

java.lang.Object
  extended by com.liferay.portal.security.permission.ResourceActionsImpl
All Implemented Interfaces:
ResourceActions

public class ResourceActionsImpl
extends Object
implements ResourceActions


Field Summary
protected  PortletLocalService portletLocalService
           
protected  ResourceActionLocalService resourceActionLocalService
           
protected  RoleLocalService roleLocalService
           
 
Constructor Summary
ResourceActionsImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void checkAction(String name, String actionId)
           
protected  void checkGuestUnsupportedActions(List<String> guestUnsupportedActions, List<String> guestDefaultActions)
           
protected  void checkModelActions(List<String> actions)
           
protected  void checkPortletActions(Portlet portlet, List<String> actions)
           
protected  void checkPortletActions(String name, List<String> actions)
           
protected  void checkPortletGroupDefaultActions(List<String> actions)
           
protected  void checkPortletGuestDefaultActions(List<String> actions)
           
protected  void checkPortletLayoutManagerActions(List<String> actions)
           
 String getAction(Locale locale, String action)
           
 String getAction(javax.servlet.jsp.PageContext pageContext, String action)
           
 String getActionNamePrefix()
           
 List<String> getActions(List<Permission> permissions)
           
protected  List<String> getActions(Map<String,List<String>> actionsMap, String name)
           
 List<String> getActionsNames(javax.servlet.jsp.PageContext pageContext, List<String> actions)
           
 List<String> getActionsNames(javax.servlet.jsp.PageContext pageContext, String name, long actionIds)
           
 List<String> getModelNames()
           
 List<String> getModelPortletResources(String name)
           
 String getModelResource(Locale locale, String name)
           
 String getModelResource(javax.servlet.jsp.PageContext pageContext, 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)
           
 String[] getOrganizationModelResources()
           
protected  Element getPermissionsChildElement(Element parentElement, String childElementName)
           
 String[] getPortalModelResources()
           
 String getPortletBaseResource(String portletName)
           
protected  List<String> getPortletMimeTypeActions(String name)
           
 List<String> getPortletModelResources(String portletName)
           
 List<String> getPortletNames()
           
 List<String> getPortletResourceActions(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)
           
 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<Role> getRoles(long companyId, Group group, String modelResource)
          Deprecated. 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)
           
protected  List<String> readActionKeys(Element parentElement)
           
protected  void readGroupDefaultActions(Element parentElement, Map<String,List<String>> actionsMap, String name)
           
protected  List<String> readGuestDefaultActions(Element parentElement, Map<String,List<String>> actionsMap, String name)
           
protected  void readGuestUnsupportedActions(Element parentElement, Map<String,List<String>> actionsMap, String name, List<String> guestDefaultActions)
           
protected  void readLayoutManagerActions(Element parentElement, Map<String,List<String>> actionsMap, String name, List<String> supportsActions)
           
protected  void readModelResource(String servletContextName, Element modelResourceElement)
           
protected  void readOwnerDefaultActions(Element parentElement, Map<String,List<String>> actionsMap, String name)
           
protected  void readPortletResource(String servletContextName, Element portletResourceElement)
           
protected  List<String> readSupportsActions(Element parentElement, Map<String,List<String>> actionsMap, String name)
           
protected  List<String> setActions(Map<String,List<String>> actionsMap, String name, List<String> actions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portletLocalService

@BeanReference(type=PortletLocalService.class)
protected PortletLocalService portletLocalService

resourceActionLocalService

@BeanReference(type=ResourceActionLocalService.class)
protected ResourceActionLocalService resourceActionLocalService

roleLocalService

@BeanReference(type=RoleLocalService.class)
protected RoleLocalService roleLocalService
Constructor Detail

ResourceActionsImpl

public ResourceActionsImpl()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()

checkAction

public void checkAction(String name,
                        String actionId)
                 throws NoSuchResourceActionException
Specified by:
checkAction in interface ResourceActions
Throws:
NoSuchResourceActionException

getAction

public String getAction(Locale locale,
                        String action)
Specified by:
getAction in interface ResourceActions

getAction

public String getAction(javax.servlet.jsp.PageContext pageContext,
                        String action)
Specified by:
getAction in interface ResourceActions

getActionNamePrefix

public String getActionNamePrefix()
Specified by:
getActionNamePrefix in interface ResourceActions

getActions

public List<String> getActions(List<Permission> permissions)
Specified by:
getActions in interface ResourceActions

getActionsNames

public List<String> getActionsNames(javax.servlet.jsp.PageContext pageContext,
                                    List<String> actions)
Specified by:
getActionsNames in interface ResourceActions

getActionsNames

public List<String> getActionsNames(javax.servlet.jsp.PageContext pageContext,
                                    String name,
                                    long actionIds)
Specified by:
getActionsNames 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(Locale locale,
                               String name)
Specified by:
getModelResource in interface ResourceActions

getModelResource

public String getModelResource(javax.servlet.jsp.PageContext pageContext,
                               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

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

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

public List<Role> getRoles(long companyId,
                           Group group,
                           String modelResource)
                    throws SystemException
Deprecated. getRoles(long, Group, String, int[])

Specified by:
getRoles in interface ResourceActions
Throws:
SystemException

getRoles

public List<Role> getRoles(long companyId,
                           Group group,
                           String modelResource,
                           int[] roleTypes)
                    throws SystemException
Specified by:
getRoles in interface ResourceActions
Throws:
SystemException

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

public void read(String servletContextName,
                 InputStream inputStream)
          throws Exception
Specified by:
read in interface ResourceActions
Throws:
Exception

checkGuestUnsupportedActions

protected void checkGuestUnsupportedActions(List<String> guestUnsupportedActions,
                                            List<String> guestDefaultActions)

checkModelActions

protected void checkModelActions(List<String> actions)

checkPortletActions

protected void checkPortletActions(Portlet portlet,
                                   List<String> actions)

checkPortletActions

protected void checkPortletActions(String name,
                                   List<String> actions)

checkPortletGroupDefaultActions

protected void checkPortletGroupDefaultActions(List<String> actions)

checkPortletGuestDefaultActions

protected void checkPortletGuestDefaultActions(List<String> actions)

checkPortletLayoutManagerActions

protected void checkPortletLayoutManagerActions(List<String> actions)

getActions

protected List<String> getActions(Map<String,List<String>> actionsMap,
                                  String name)

getPermissionsChildElement

protected Element getPermissionsChildElement(Element parentElement,
                                             String childElementName)

getPortletMimeTypeActions

protected List<String> getPortletMimeTypeActions(String name)

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,
                                       Map<String,List<String>> actionsMap,
                                       String name)

readGuestDefaultActions

protected List<String> readGuestDefaultActions(Element parentElement,
                                               Map<String,List<String>> actionsMap,
                                               String name)

readGuestUnsupportedActions

protected void readGuestUnsupportedActions(Element parentElement,
                                           Map<String,List<String>> actionsMap,
                                           String name,
                                           List<String> guestDefaultActions)

readLayoutManagerActions

protected void readLayoutManagerActions(Element parentElement,
                                        Map<String,List<String>> actionsMap,
                                        String name,
                                        List<String> supportsActions)

readModelResource

protected void readModelResource(String servletContextName,
                                 Element modelResourceElement)

readOwnerDefaultActions

protected void readOwnerDefaultActions(Element parentElement,
                                       Map<String,List<String>> actionsMap,
                                       String name)

readPortletResource

protected void readPortletResource(String servletContextName,
                                   Element portletResourceElement)

readSupportsActions

protected List<String> readSupportsActions(Element parentElement,
                                           Map<String,List<String>> actionsMap,
                                           String name)

setActions

protected List<String> setActions(Map<String,List<String>> actionsMap,
                                  String name,
                                  List<String> actions)

Liferay 6.1.2-ce-ga3