com.liferay.portal.security.permission
Class ResourceActionsUtil
java.lang.Object
com.liferay.portal.security.permission.ResourceActionsUtil
public class ResourceActionsUtil
- extends Object
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 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> |
getModelResourceCommunityDefaultActions(String name)
|
static List<String> |
getModelResourceGuestDefaultActions(String name)
|
static List<String> |
getModelResourceGuestUnsupportedActions(String name)
|
static List<String> |
getModelResourceOwnerDefaultActions(String name)
|
static String |
getPortletBaseResource(String portletName)
|
static List<String> |
getPortletModelResources(String portletName)
|
static List<String> |
getPortletNames()
|
static List<String> |
getPortletResourceActions(String name)
|
static List<String> |
getPortletResourceCommunityDefaultActions(String name)
|
static List<String> |
getPortletResourceGuestDefaultActions(String name)
|
static List<String> |
getPortletResourceGuestUnsupportedActions(String name)
|
static List<String> |
getPortletResourceLayoutManagerActions(String name)
|
static List<String> |
getResourceActions(String name)
|
static List<String> |
getResourceActions(String portletResource,
String modelResource)
|
static List<String> |
getResourceCommunityDefaultActions(String name)
|
static List<String> |
getResourceGuestUnsupportedActions(String portletResource,
String modelResource)
|
static List<Role> |
getRoles(long companyId,
Group group,
String modelResource)
|
static SocialEquityActionMapping |
getSocialEquityActionMapping(String name,
String actionId)
|
static List<SocialEquityActionMapping> |
getSocialEquityActionMappings(String name)
|
static String[] |
getSocialEquityClassNames()
|
static boolean |
hasModelResourceActions(String name)
|
static void |
init()
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACTION_NAME_PREFIX
public static final String ACTION_NAME_PREFIX
- See Also:
- Constant Field Values
MODEL_RESOURCE_NAME_PREFIX
public static final String MODEL_RESOURCE_NAME_PREFIX
- See Also:
- Constant Field Values
ORGANIZATION_MODEL_RESOURCES
public static final String[] ORGANIZATION_MODEL_RESOURCES
PORTAL_MODEL_RESOURCES
public static final String[] PORTAL_MODEL_RESOURCES
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)
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)
getModelResourceCommunityDefaultActions
public static List<String> getModelResourceCommunityDefaultActions(String name)
getModelResourceGuestDefaultActions
public static List<String> getModelResourceGuestDefaultActions(String name)
getModelResourceGuestUnsupportedActions
public static List<String> getModelResourceGuestUnsupportedActions(String name)
getModelResourceOwnerDefaultActions
public static List<String> getModelResourceOwnerDefaultActions(String name)
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(String name)
getPortletResourceCommunityDefaultActions
public static List<String> getPortletResourceCommunityDefaultActions(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 List<String> getResourceActions(String name)
getResourceActions
public static List<String> getResourceActions(String portletResource,
String modelResource)
getResourceCommunityDefaultActions
public static List<String> getResourceCommunityDefaultActions(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
- Throws:
SystemException
getSocialEquityActionMapping
public static SocialEquityActionMapping getSocialEquityActionMapping(String name,
String actionId)
getSocialEquityActionMappings
public static List<SocialEquityActionMapping> getSocialEquityActionMappings(String name)
getSocialEquityClassNames
public static String[] getSocialEquityClassNames()
hasModelResourceActions
public static boolean hasModelResourceActions(String name)
init
public static void init()
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