Liferay 6.1.2-ce-ga3

com.liferay.portal.security.permission
Class ResourceActionsUtil

java.lang.Object
  extended by com.liferay.portal.security.permission.ResourceActionsUtil

public class ResourceActionsUtil
extends Object


Field Summary
static String ACTION_NAME_PREFIX
          Deprecated. getActionNamePrefix()
static String MODEL_RESOURCE_NAME_PREFIX
          Deprecated. getModelResourceNamePrefix()
static String[] ORGANIZATION_MODEL_RESOURCES
          Deprecated. getOrganizationModelResources()
static String[] PORTAL_MODEL_RESOURCES
          Deprecated. getPortalModelResources()
 
Constructor Summary
ResourceActionsUtil()
           
 
Method Summary
static void checkAction(String name, String actionId)
           
static String getAction(Locale locale, String action)
           
static String getAction(javax.servlet.jsp.PageContext pageContext, String action)
           
static String getActionNamePrefix()
           
static List<String> getActions(List<Permission> permissions)
           
static List<String> getActionsNames(javax.servlet.jsp.PageContext pageContext, List<String> actions)
           
static List<String> getActionsNames(javax.servlet.jsp.PageContext pageContext, String name, long actionIds)
           
static List<String> getModelNames()
           
static List<String> getModelPortletResources(String name)
           
static String getModelResource(Locale locale, String name)
           
static String getModelResource(javax.servlet.jsp.PageContext pageContext, String name)
           
static List<String> getModelResourceActions(String name)
           
static List<String> getModelResourceGroupDefaultActions(String name)
           
static List<String> getModelResourceGuestDefaultActions(String name)
           
static List<String> getModelResourceGuestUnsupportedActions(String name)
           
static String getModelResourceNamePrefix()
           
static List<String> getModelResourceOwnerDefaultActions(String name)
           
static String[] getOrganizationModelResources()
           
static String[] getPortalModelResources()
           
static String getPortletBaseResource(String portletName)
           
static List<String> getPortletModelResources(String portletName)
           
static List<String> getPortletNames()
           
static List<String> getPortletResourceActions(Portlet portlet)
           
static List<String> getPortletResourceActions(String name)
           
static List<String> getPortletResourceGroupDefaultActions(String name)
           
static List<String> getPortletResourceGuestDefaultActions(String name)
           
static List<String> getPortletResourceGuestUnsupportedActions(String name)
           
static List<String> getPortletResourceLayoutManagerActions(String name)
           
static ResourceActions getResourceActions()
           
static List<String> getResourceActions(String name)
           
static List<String> getResourceActions(String portletResource, String modelResource)
           
static List<String> getResourceGroupDefaultActions(String name)
           
static List<String> getResourceGuestUnsupportedActions(String portletResource, String modelResource)
           
static List<Role> getRoles(long companyId, Group group, String modelResource)
          Deprecated. getRoles(long, Group, String, int[])
static List<Role> getRoles(long companyId, Group group, String modelResource, int[] roleTypes)
           
static boolean hasModelResourceActions(String name)
           
static void init()
          Deprecated.  
static boolean isOrganizationModelResource(String modelResource)
           
static boolean isPortalModelResource(String modelResource)
           
static void read(String servletContextName, ClassLoader classLoader, String source)
           
static void read(String servletContextName, InputStream inputStream)
           
 void setResourceActions(ResourceActions resourceActions)
           
 
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 String ACTION_NAME_PREFIX
Deprecated. getActionNamePrefix()
See Also:
Constant Field Values

MODEL_RESOURCE_NAME_PREFIX

public static final String MODEL_RESOURCE_NAME_PREFIX
Deprecated. getModelResourceNamePrefix()
See Also:
Constant Field Values

ORGANIZATION_MODEL_RESOURCES

public static final String[] ORGANIZATION_MODEL_RESOURCES
Deprecated. getOrganizationModelResources()

PORTAL_MODEL_RESOURCES

public static final String[] PORTAL_MODEL_RESOURCES
Deprecated. getPortalModelResources()
Constructor Detail

ResourceActionsUtil

public ResourceActionsUtil()
Method Detail

checkAction

public static void checkAction(String name,
                               String actionId)
                        throws NoSuchResourceActionException
Throws:
NoSuchResourceActionException

getAction

public static String getAction(Locale locale,
                               String action)

getAction

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

getActionNamePrefix

public static String getActionNamePrefix()

getActions

public static List<String> getActions(List<Permission> permissions)

getActionsNames

public static List<String> getActionsNames(javax.servlet.jsp.PageContext pageContext,
                                           List<String> actions)

getActionsNames

public static List<String> getActionsNames(javax.servlet.jsp.PageContext pageContext,
                                           String name,
                                           long actionIds)

getModelNames

public static List<String> getModelNames()

getModelPortletResources

public static List<String> getModelPortletResources(String name)

getModelResource

public static String getModelResource(Locale locale,
                                      String name)

getModelResource

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

getModelResourceActions

public static List<String> getModelResourceActions(String name)

getModelResourceGroupDefaultActions

public static List<String> getModelResourceGroupDefaultActions(String name)

getModelResourceGuestDefaultActions

public static List<String> getModelResourceGuestDefaultActions(String name)

getModelResourceGuestUnsupportedActions

public static List<String> getModelResourceGuestUnsupportedActions(String name)

getModelResourceNamePrefix

public static String getModelResourceNamePrefix()

getModelResourceOwnerDefaultActions

public static List<String> getModelResourceOwnerDefaultActions(String name)

getOrganizationModelResources

public static String[] getOrganizationModelResources()

getPortalModelResources

public static String[] getPortalModelResources()

getPortletBaseResource

public static String getPortletBaseResource(String portletName)

getPortletModelResources

public static List<String> getPortletModelResources(String portletName)

getPortletNames

public static List<String> getPortletNames()

getPortletResourceActions

public static List<String> getPortletResourceActions(Portlet portlet)

getPortletResourceActions

public static List<String> getPortletResourceActions(String name)

getPortletResourceGroupDefaultActions

public static List<String> getPortletResourceGroupDefaultActions(String name)

getPortletResourceGuestDefaultActions

public static List<String> getPortletResourceGuestDefaultActions(String name)

getPortletResourceGuestUnsupportedActions

public static List<String> getPortletResourceGuestUnsupportedActions(String name)

getPortletResourceLayoutManagerActions

public static List<String> getPortletResourceLayoutManagerActions(String name)

getResourceActions

public static ResourceActions getResourceActions()

getResourceActions

public static List<String> getResourceActions(String name)

getResourceActions

public static List<String> getResourceActions(String portletResource,
                                              String modelResource)

getResourceGroupDefaultActions

public static List<String> getResourceGroupDefaultActions(String name)

getResourceGuestUnsupportedActions

public static List<String> getResourceGuestUnsupportedActions(String portletResource,
                                                              String modelResource)

getRoles

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

Throws:
SystemException

getRoles

public static List<Role> getRoles(long companyId,
                                  Group group,
                                  String modelResource,
                                  int[] roleTypes)
                           throws SystemException
Throws:
SystemException

hasModelResourceActions

public static boolean hasModelResourceActions(String name)

init

public static void init()
Deprecated. 


isOrganizationModelResource

public static boolean isOrganizationModelResource(String modelResource)

isPortalModelResource

public static boolean isPortalModelResource(String modelResource)

read

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

read

public static void read(String servletContextName,
                        InputStream inputStream)
                 throws Exception
Throws:
Exception

setResourceActions

public void setResourceActions(ResourceActions resourceActions)

Liferay 6.1.2-ce-ga3