|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityProviderMethodStore
This is the interface for handling storage of methods (related to custom actions and the like), this is for internal usage only and should not be accessed or used by other developers
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
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 found
void setCustomActions(String prefix,
Map<String,CustomAction> actions)
prefix - an entity prefixactions - a map of action -> CustomAction
void 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 prefix
CustomAction getCustomAction(String prefix,
String action)
CustomAction for a prefix and action if it exists
prefix - an entity prefixaction - an action key
URLRedirect[] findURLRedirectMethods(EntityProvider entityProvider)
entityProvider - an entity provider
IllegalArgumentException - if the methods are setup incorrectly
void addURLRedirects(String prefix,
URLRedirect[] redirects)
prefix - an entity prefixredirects - an array of redirects
IllegalArgumentException - if any of the URL redirects are invalidvoid removeURLRedirects(String prefix)
prefix - an entity prefixList<URLRedirect> getURLRedirects(String prefix)
prefix - the entity prefix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||