public class ResourceActionsUtil
extends Object
Constructor and Description |
---|
ResourceActionsUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
check(String portletName) |
static String |
getAction(javax.servlet.http.HttpServletRequest httpServletRequest,
String action) |
static String |
getAction(Locale locale,
String action) |
static String |
getCompositeModelName(String... classNames) |
static String |
getCompositeModelNameSeparator() |
static List<String> |
getModelNames() |
static List<String> |
getModelPortletResources(String name) |
static String |
getModelResource(javax.servlet.http.HttpServletRequest httpServletRequest,
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 List<String> |
getPortletModelResources(String portletName) |
static List<String> |
getPortletNames() |
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> |
getResourceGuestUnsupportedActions(String portletResource,
String modelResource) |
static List<Role> |
getRoles(long companyId,
Group group,
String modelResource,
int[] roleTypes) |
static boolean |
isPortalModelResource(String modelResource) |
static boolean |
isRootModelResource(String modelResource) |
static void |
populateModelResources(ClassLoader classLoader,
String... sources) |
static void |
populateModelResources(ClassLoader classLoader,
String[] sources,
boolean checkResourceActions) |
static void |
populateModelResources(Document document) |
static void |
populatePortletResource(Portlet portlet,
ClassLoader classLoader,
String... sources) |
static void |
populatePortletResources(ClassLoader classLoader,
String... sources) |
static void |
populatePortletResources(ClassLoader classLoader,
String[] sources,
boolean checkResourceActions) |
void |
setResourceActions(ResourceActions resourceActions) |
public static void check(String portletName)
public static String getAction(javax.servlet.http.HttpServletRequest httpServletRequest, String action)
public static String getAction(Locale locale, String action)
public static String getCompositeModelName(String... classNames)
public static String getCompositeModelNameSeparator()
public static List<String> getModelNames()
public static List<String> getModelPortletResources(String name)
public static String getModelResource(javax.servlet.http.HttpServletRequest httpServletRequest, String name)
public static String getModelResource(Locale locale, String name)
public static List<String> getModelResourceActions(String name)
public static List<String> getModelResourceGroupDefaultActions(String name)
public static List<String> getModelResourceGuestDefaultActions(String name)
public static List<String> getModelResourceGuestUnsupportedActions(String name)
public static String getModelResourceNamePrefix()
public static List<String> getModelResourceOwnerDefaultActions(String name)
public static Double getModelResourceWeight(String name)
public static List<String> getPortletModelResources(String portletName)
public static List<String> getPortletNames()
public static List<String> getPortletResourceActions(String name)
public static List<String> getPortletResourceGroupDefaultActions(String name)
public static List<String> getPortletResourceGuestDefaultActions(String name)
public static List<String> getPortletResourceGuestUnsupportedActions(String name)
public static List<String> getPortletResourceLayoutManagerActions(String name)
public static String getPortletRootModelResource(String portletName)
public static ResourceActions getResourceActions()
public static List<String> getResourceActions(String name)
public static List<String> getResourceActions(String portletResource, String modelResource)
public static List<String> getResourceGuestUnsupportedActions(String portletResource, String modelResource)
public static List<Role> getRoles(long companyId, Group group, String modelResource, int[] roleTypes)
public static boolean isPortalModelResource(String modelResource)
public static boolean isRootModelResource(String modelResource)
public static void populateModelResources(ClassLoader classLoader, String... sources) throws ResourceActionsException
ResourceActionsException
public static void populateModelResources(ClassLoader classLoader, String[] sources, boolean checkResourceActions) throws ResourceActionsException
ResourceActionsException
public static void populateModelResources(Document document) throws ResourceActionsException
ResourceActionsException
public static void populatePortletResource(Portlet portlet, ClassLoader classLoader, String... sources) throws ResourceActionsException
ResourceActionsException
public static void populatePortletResources(ClassLoader classLoader, String... sources) throws ResourceActionsException
ResourceActionsException
public static void populatePortletResources(ClassLoader classLoader, String[] sources, boolean checkResourceActions) throws ResourceActionsException
ResourceActionsException
public void setResourceActions(ResourceActions resourceActions)