public class EntityProviderMethodStoreImpl extends Object implements org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStore
| Modifier and Type | Field and Description |
|---|---|
protected static Class<?>[] |
validActionParamTypes |
protected static Class<?>[] |
validRedirectParamTypes |
| Constructor and Description |
|---|
EntityProviderMethodStoreImpl()
Full constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomAction(String prefix,
org.sakaiproject.entitybroker.entityprovider.extension.CustomAction customAction) |
void |
addURLRedirects(String prefix,
org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect[] redirects) |
org.sakaiproject.entitybroker.entityprovider.extension.CustomAction[] |
findCustomActions(org.sakaiproject.entitybroker.entityprovider.EntityProvider entityProvider,
boolean ignoreFailures) |
org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect[] |
findURLRedirectMethods(org.sakaiproject.entitybroker.entityprovider.EntityProvider entityProvider) |
org.sakaiproject.entitybroker.entityprovider.extension.CustomAction |
getCustomAction(String prefix,
String action) |
List<org.sakaiproject.entitybroker.entityprovider.extension.CustomAction> |
getCustomActions(String prefix) |
List<org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect> |
getURLRedirects(String prefix) |
void |
removeCustomActions(String prefix) |
void |
removeURLRedirects(String prefix) |
void |
setCustomActions(String prefix,
Map<String,org.sakaiproject.entitybroker.entityprovider.extension.CustomAction> actions)
Set the custom actions for this prefix
|
protected static Class<?>[] |
validateActionParamTypes(Class<?>[] paramTypes,
String methodName)
Validates the parameter types on a method to make sure they are valid
|
static org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect[] |
validateControllableTemplates(org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectControllable configControllable)
Execute this validate and get the templates so they can be registered
|
static void |
validateCustomActionMethods(org.sakaiproject.entitybroker.entityprovider.capabilities.ActionsDefineable actionsDefineable)
Takes a set of custom actions and validates them
|
static org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect[] |
validateDefineableTemplates(org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectDefinable configDefinable)
Validates the provided URL templates in an entity provider and outputs the
URL redirect objects as an array
|
protected static Class<?>[] |
validateParamTypes(Class<?>[] paramTypes,
Class<?>[] validTypes)
Validates param types against a given list of valid types
|
protected static Class<?>[] |
validateRedirectParamTypes(Class<?>[] paramTypes,
String methodName)
Validates the parameter types on a method to make sure they are valid
|
protected static Class<?>[] validActionParamTypes
protected static Class<?>[] validRedirectParamTypes
public EntityProviderMethodStoreImpl()
public org.sakaiproject.entitybroker.entityprovider.extension.CustomAction[] findCustomActions(org.sakaiproject.entitybroker.entityprovider.EntityProvider entityProvider,
boolean ignoreFailures)
findCustomActions in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStorepublic void setCustomActions(String prefix, Map<String,org.sakaiproject.entitybroker.entityprovider.extension.CustomAction> actions)
setCustomActions in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStoreprefix - an entity prefixactions - a map of action -> CustomActionpublic void addCustomAction(String prefix, org.sakaiproject.entitybroker.entityprovider.extension.CustomAction customAction)
addCustomAction in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStorepublic org.sakaiproject.entitybroker.entityprovider.extension.CustomAction getCustomAction(String prefix, String action)
getCustomAction in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStorepublic void removeCustomActions(String prefix)
removeCustomActions in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStorepublic List<org.sakaiproject.entitybroker.entityprovider.extension.CustomAction> getCustomActions(String prefix)
getCustomActions in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStorepublic org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect[] findURLRedirectMethods(org.sakaiproject.entitybroker.entityprovider.EntityProvider entityProvider)
findURLRedirectMethods in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStorepublic void addURLRedirects(String prefix, org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect[] redirects)
addURLRedirects in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStorepublic void removeURLRedirects(String prefix)
removeURLRedirects in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStorepublic List<org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect> getURLRedirects(String prefix)
getURLRedirects in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderMethodStoreprotected static Class<?>[] validateActionParamTypes(Class<?>[] paramTypes, String methodName)
paramTypes - an array of parameter typesmethodName - the name of the method which is being validated (for debugging mostly)IllegalArgumentException - if the param types are invalidprotected static Class<?>[] validateRedirectParamTypes(Class<?>[] paramTypes, String methodName)
paramTypes - an array of parameter typesmethodName - the name of the method which is being validated (for debugging mostly)IllegalArgumentException - is the param types are invalidprotected static Class<?>[] validateParamTypes(Class<?>[] paramTypes, Class<?>[] validTypes)
paramTypes - an array of parameter typesvalidTypes - the types that are validIllegalArgumentException - is the param types are invalidpublic static void validateCustomActionMethods(org.sakaiproject.entitybroker.entityprovider.capabilities.ActionsDefineable actionsDefineable)
actionsDefineable - an entity provider which uses custom actionscustomActions - IllegalArgumentException - if the custom actions are invalidpublic static org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect[] validateDefineableTemplates(org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectDefinable configDefinable)
configDefinable - the entity providerpublic static org.sakaiproject.entitybroker.entityprovider.extension.URLRedirect[] validateControllableTemplates(org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectControllable configControllable)
configControllable - the entity providerCopyright © 2007-2016 CARET, University of Cambridge. All Rights Reserved.