public abstract class SingletonValueProcessorExtension<T>
extends org.springframework.extensions.webscripts.processor.BaseProcessorExtension
The implementing class only needs to provide method to perform the remote retrieval of the value and indicate if the value needs to be stored per-tenant or not.
| Constructor and Description |
|---|
SingletonValueProcessorExtension() |
| Modifier and Type | Method and Description |
|---|---|
protected T |
getSingletonValue()
Thread-safe get of the singleton value.
|
protected T |
getSingletonValue(boolean tenant)
Thread-safe get of the singleton value.
|
protected abstract String |
getValueName()
Output value name for informational and error messages to the administrator.
|
protected abstract T |
retrieveValue(String userId,
String storeId)
Method for implementing class to provide that retrieve the remote value from the appropriate
endpoint and API.
|
protected final T getSingletonValue()
protected final T getSingletonValue(boolean tenant)
tenant - True to get/store per tenant, false for a single value for all repo instances.protected abstract T retrieveValue(String userId, String storeId) throws org.springframework.extensions.surf.exception.ConnectorServiceException
userId - Current user IdstoreId - Current store Id if any - may be used if per-tenant values are requiredorg.springframework.extensions.surf.exception.ConnectorServiceExceptionprotected abstract String getValueName()
Copyright © 2005–2014 Alfresco Software. All rights reserved.