public interface EntityProviderMethodStore
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomAction(String prefix,
CustomAction customAction)
Add a custom action for a prefix
|
void |
addURLRedirects(String prefix,
URLRedirect[] redirects)
Add all URL redirects to the following prefix,
maintains any existing ones
|
CustomAction[] |
findCustomActions(EntityProvider entityProvider,
boolean ignoreFailures)
Get all the custom actions that can be found
|
URLRedirect[] |
findURLRedirectMethods(EntityProvider entityProvider)
Looks for redirect methods in the given entity provider
|
CustomAction |
getCustomAction(String prefix,
String action)
Get the
CustomAction for a prefix and action if it exists |
List<CustomAction> |
getCustomActions(String prefix)
Gets the list of all custom actions for a prefix
|
List<URLRedirect> |
getURLRedirects(String prefix)
Get the list of all redirects for this prefix
|
void |
removeCustomActions(String prefix)
Remove any custom actions that are set for this prefix
|
void |
removeURLRedirects(String prefix)
Remove any and all redirects for this prefix
|
void |
setCustomActions(String prefix,
Map<String,CustomAction> actions)
Set the custom actions for this prefix
|
CustomAction[] findCustomActions(EntityProvider entityProvider, boolean ignoreFailures)
entityProvider - the provider to search for custom actionsignoreFailures - if true then will not throw exceptions if methods are not foundvoid setCustomActions(String prefix, Map<String,CustomAction> actions)
prefix - an entity prefixactions - a map of action -> CustomActionvoid addCustomAction(String prefix, CustomAction customAction)
prefix - an entity prefixcustomAction - the custom action to addvoid removeCustomActions(String prefix)
prefix - an entity prefixList<CustomAction> getCustomActions(String prefix)
prefix - an entity prefixCustomAction getCustomAction(String prefix, String action)
CustomAction for a prefix and action if it existsprefix - an entity prefixaction - an action keyURLRedirect[] findURLRedirectMethods(EntityProvider entityProvider)
entityProvider - an entity providerIllegalArgumentException - if the methods are setup incorrectlyvoid addURLRedirects(String prefix, URLRedirect[] redirects)
prefix - an entity prefixredirects - an array of redirectsIllegalArgumentException - if any of the URL redirects are invalidvoid removeURLRedirects(String prefix)
prefix - an entity prefixList<URLRedirect> getURLRedirects(String prefix)
prefix - the entity prefixCopyright © 2007–2020 Sakai Project. All rights reserved.