com.liferay.portal.security.permission
Class ResourceActionsUtil

java.lang.Object
  extended bycom.liferay.portal.security.permission.ResourceActionsUtil

public class ResourceActionsUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String ACTION_NAME_PREFIX
           
static java.lang.String MODEL_RESOURCE_NAME_PREFIX
           
 
Method Summary
static java.lang.String getAction(long companyId, java.util.Locale locale, java.lang.String action)
           
static java.lang.String getAction(javax.servlet.jsp.PageContext pageContext, java.lang.String action)
           
static java.util.List getActions(java.util.List permissions)
           
static java.util.List getActionsNames(javax.servlet.jsp.PageContext pageContext, java.util.List actions)
           
static java.util.List getModelPortletResources(java.lang.String name)
           
static java.lang.String getModelResource(long companyId, java.util.Locale locale, java.lang.String name)
           
static java.lang.String getModelResource(javax.servlet.jsp.PageContext pageContext, java.lang.String name)
           
static java.util.List getModelResourceActions(java.lang.String name)
           
static java.util.List getModelResourceCommunityDefaultActions(java.lang.String name)
           
static java.util.List getModelResourceGuestDefaultActions(java.lang.String name)
           
static java.util.List getModelResourceGuestUnsupportedActions(java.lang.String name)
           
static java.util.List getPortletModelResources(java.lang.String portletName)
           
static java.util.List getPortletResourceActions(long companyId, java.lang.String name)
           
static java.util.List getPortletResourceCommunityDefaultActions(java.lang.String name)
           
static java.util.List getPortletResourceGuestDefaultActions(java.lang.String name)
           
static java.util.List getPortletResourceGuestUnsupportedActions(java.lang.String name)
           
static java.util.List getResourceActions(long companyId, java.lang.String portletResource, java.lang.String modelResource)
           
static java.util.List getResourceGuestUnsupportedActions(java.lang.String portletResource, java.lang.String modelResource)
           
static void read(java.lang.String servletContextName, java.lang.ClassLoader classLoader, java.lang.String source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_NAME_PREFIX

public static final java.lang.String ACTION_NAME_PREFIX
See Also:
Constant Field Values

MODEL_RESOURCE_NAME_PREFIX

public static final java.lang.String MODEL_RESOURCE_NAME_PREFIX
See Also:
Constant Field Values
Method Detail

getAction

public static java.lang.String getAction(long companyId,
                                         java.util.Locale locale,
                                         java.lang.String action)

getAction

public static java.lang.String getAction(javax.servlet.jsp.PageContext pageContext,
                                         java.lang.String action)

getActions

public static java.util.List getActions(java.util.List permissions)

getActionsNames

public static java.util.List getActionsNames(javax.servlet.jsp.PageContext pageContext,
                                             java.util.List actions)

getModelPortletResources

public static java.util.List getModelPortletResources(java.lang.String name)

getModelResource

public static java.lang.String getModelResource(long companyId,
                                                java.util.Locale locale,
                                                java.lang.String name)

getModelResource

public static java.lang.String getModelResource(javax.servlet.jsp.PageContext pageContext,
                                                java.lang.String name)

getModelResourceActions

public static java.util.List getModelResourceActions(java.lang.String name)

getModelResourceCommunityDefaultActions

public static java.util.List getModelResourceCommunityDefaultActions(java.lang.String name)

getModelResourceGuestDefaultActions

public static java.util.List getModelResourceGuestDefaultActions(java.lang.String name)

getModelResourceGuestUnsupportedActions

public static java.util.List getModelResourceGuestUnsupportedActions(java.lang.String name)

getPortletModelResources

public static java.util.List getPortletModelResources(java.lang.String portletName)

getPortletResourceActions

public static java.util.List getPortletResourceActions(long companyId,
                                                       java.lang.String name)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortletResourceCommunityDefaultActions

public static java.util.List getPortletResourceCommunityDefaultActions(java.lang.String name)
                                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortletResourceGuestDefaultActions

public static java.util.List getPortletResourceGuestDefaultActions(java.lang.String name)
                                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPortletResourceGuestUnsupportedActions

public static java.util.List getPortletResourceGuestUnsupportedActions(java.lang.String name)
                                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getResourceActions

public static java.util.List getResourceActions(long companyId,
                                                java.lang.String portletResource,
                                                java.lang.String modelResource)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getResourceGuestUnsupportedActions

public static java.util.List getResourceGuestUnsupportedActions(java.lang.String portletResource,
                                                                java.lang.String modelResource)
                                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

read

public static void read(java.lang.String servletContextName,
                        java.lang.ClassLoader classLoader,
                        java.lang.String source)
                 throws java.lang.Exception
Throws:
java.lang.Exception