com.liferay.portal.kernel.security.permission
Class ResourceActionsUtil
java.lang.Object
com.liferay.portal.kernel.security.permission.ResourceActionsUtil
public class ResourceActionsUtil
- extends Object
|
Method Summary |
static void |
checkAction(String name,
String actionId)
|
static String |
getAction(javax.servlet.http.HttpServletRequest request,
String action)
|
static String |
getAction(Locale locale,
String action)
|
static String |
getActionNamePrefix()
|
static List<String> |
getActionsNames(javax.servlet.http.HttpServletRequest request,
List<String> actions)
Deprecated. As of 7.0.0 |
static List<String> |
getActionsNames(javax.servlet.http.HttpServletRequest request,
String name,
long actionIds)
Deprecated. As of 7.0.0 |
static String |
getCompositeModelNameSeparator()
|
static List<String> |
getModelNames()
|
static List<String> |
getModelPortletResources(String name)
|
static String |
getModelResource(javax.servlet.http.HttpServletRequest request,
String name)
|
static String |
getModelResource(Locale locale,
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 Double |
getModelResourceWeight(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 String |
getPortletRootModelResource(String portletName)
|
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,
int[] roleTypes)
|
static String[] |
getRootModelResources()
|
static boolean |
hasModelResourceActions(String name)
|
static boolean |
isOrganizationModelResource(String modelResource)
|
static boolean |
isPortalModelResource(String modelResource)
|
static boolean |
isRootModelResource(String modelResource)
|
static void |
read(String servletContextName,
ClassLoader classLoader,
String source)
|
static void |
read(String servletContextName,
InputStream inputStream)
Deprecated. As of 7.0.0 |
void |
setResourceActions(ResourceActions resourceActions)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceActionsUtil
public ResourceActionsUtil()
checkAction
public static void checkAction(String name,
String actionId)
throws NoSuchResourceActionException
- Throws:
NoSuchResourceActionException
getAction
public static String getAction(javax.servlet.http.HttpServletRequest request,
String action)
getAction
public static String getAction(Locale locale,
String action)
getActionNamePrefix
public static String getActionNamePrefix()
getActionsNames
@Deprecated
public static List<String> getActionsNames(javax.servlet.http.HttpServletRequest request,
List<String> actions)
- Deprecated. As of 7.0.0
getActionsNames
@Deprecated
public static List<String> getActionsNames(javax.servlet.http.HttpServletRequest request,
String name,
long actionIds)
- Deprecated. As of 7.0.0
getCompositeModelNameSeparator
public static String getCompositeModelNameSeparator()
getModelNames
public static List<String> getModelNames()
getModelPortletResources
public static List<String> getModelPortletResources(String name)
getModelResource
public static String getModelResource(javax.servlet.http.HttpServletRequest request,
String name)
getModelResource
public static String getModelResource(Locale locale,
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)
getModelResourceWeight
public static Double getModelResourceWeight(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)
getPortletRootModelResource
public static String getPortletRootModelResource(String portletName)
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,
int[] roleTypes)
getRootModelResources
public static String[] getRootModelResources()
hasModelResourceActions
public static boolean hasModelResourceActions(String name)
isOrganizationModelResource
public static boolean isOrganizationModelResource(String modelResource)
isPortalModelResource
public static boolean isPortalModelResource(String modelResource)
isRootModelResource
public static boolean isRootModelResource(String modelResource)
read
public static void read(String servletContextName,
ClassLoader classLoader,
String source)
throws Exception
- Throws:
Exception
read
@Deprecated
public static void read(String servletContextName,
InputStream inputStream)
throws Exception
- Deprecated. As of 7.0.0
- Throws:
Exception
setResourceActions
public void setResourceActions(ResourceActions resourceActions)