public class ResourceActionsUtil
extends Object
Constructor and Description |
---|
ResourceActionsUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
check(Portlet portlet) |
static void |
check(String portletName) |
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 Wilberforce (7.0.x)
|
static List<String> |
getActionsNames(javax.servlet.http.HttpServletRequest request,
String name,
long actionIds)
Deprecated.
As of Wilberforce (7.0.x)
|
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 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... sources) |
static void |
read(String servletContextName,
ClassLoader classLoader,
String source) |
static void |
read(String servletContextName,
InputStream inputStream)
Deprecated.
As of Wilberforce (7.0.x)
|
static void |
readAndCheck(String servletContextName,
ClassLoader classLoader,
String... sources) |
static void |
removePortletResource(String portletName) |
void |
setResourceActions(ResourceActions resourceActions) |
public static void check(Portlet portlet)
public static void check(String portletName)
public static void checkAction(String name, String actionId) throws NoSuchResourceActionException
NoSuchResourceActionException
public static String getAction(javax.servlet.http.HttpServletRequest request, String action)
public static String getAction(Locale locale, String action)
public static String getActionNamePrefix()
@Deprecated public static List<String> getActionsNames(javax.servlet.http.HttpServletRequest request, List<String> actions)
@Deprecated public static List<String> getActionsNames(javax.servlet.http.HttpServletRequest request, String name, long actionIds)
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 request, 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 String[] getOrganizationModelResources()
public static String[] getPortalModelResources()
public static String getPortletBaseResource(String portletName)
public static List<String> getPortletModelResources(String portletName)
public static List<String> getPortletNames()
public static List<String> getPortletResourceActions(Portlet portlet)
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> getResourceGroupDefaultActions(String name)
public static List<String> getResourceGuestUnsupportedActions(String portletResource, String modelResource)
public static List<Role> getRoles(long companyId, Group group, String modelResource, int[] roleTypes)
public static String[] getRootModelResources()
public static boolean hasModelResourceActions(String name)
public static boolean isOrganizationModelResource(String modelResource)
public static boolean isPortalModelResource(String modelResource)
public static boolean isRootModelResource(String modelResource)
public static void read(String servletContextName, ClassLoader classLoader, String source) throws Exception
Exception
public static void read(String servletContextName, ClassLoader classLoader, String... sources) throws Exception
Exception
@Deprecated public static void read(String servletContextName, InputStream inputStream) throws Exception
Exception
public static void readAndCheck(String servletContextName, ClassLoader classLoader, String... sources) throws Exception
Exception
public static void removePortletResource(String portletName)
public void setResourceActions(ResourceActions resourceActions)