public abstract class SingletonValueProcessorExtension
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 java.lang.Object |
getSingletonValue()
Thread-safe get of the singleton value.
|
protected java.lang.Object |
getSingletonValue(boolean tenant)
Thread-safe get of the singleton value.
|
protected abstract java.lang.String |
getValueName()
Output value name for informational and error messages to the administrator.
|
protected abstract java.lang.Object |
retrieveValue(java.lang.String userId,
java.lang.String storeId)
Method for implementing class to provide that retrieve the remote value from the appropriate
endpoint and API.
|
protected final java.lang.Object getSingletonValue()
protected final java.lang.Object getSingletonValue(boolean tenant)
tenant
- True to get/store per tenant, false for a single value for all repo instances.protected abstract java.lang.Object retrieveValue(java.lang.String userId, java.lang.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.ConnectorServiceException
protected abstract java.lang.String getValueName()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.