|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.carrierwave.session.RepositoryClient
The RepositoryClient class is the root class for all interactions
with the remote graph plan repository and local graph plan repository source
instances.
The local graph plan sources are adapters for various repository like services.
All sources must be interacted with directly. Any retrieve or store
via the RepositoryClient interface is directly with the default
source on the remote server.
The authoritative source is the only exception. Any invocation with the
remote server via the QueryClient
interface that uses a
graphPlanName parameter will consult the authoritative source for
an instance of a 'local' GraphPlan
instance with that given name. If
found, that instance will be passed to the server, instead of the name.
ClientSession
,
QueryClient
Method Summary | |
void |
finalize()
|
java.util.Collection |
getAllClientGraphPlanSourceNames()
Returns a Collection of all the registered GraphPlanSource names. |
GraphPlan |
getClientAuthoritativeGraphPlan(java.lang.String graphPlanName)
Returns a GraphPlan instance that is authoritative to this client session. |
GraphPlanSource |
getClientAuthoritativeSource()
Retrieves the current authoritative GraphPlanSource. |
GraphPlanSource |
getClientGraphPlanSource(java.lang.String sourceName)
Returns a GraphPlanSource instance with the given name. |
ClientSession |
getClientSession()
|
protected CommonClient |
getCommonClient()
|
ImageTypeMap |
getDefaultImageTypeMap()
Returns the default image type map supported by the remote server |
java.util.List |
listGraphPlanNames(java.lang.String sourceName)
Lists all available GraphPlans in the given source named sourceName. |
void |
makeClientAuthoritativeSource(java.lang.String sourceName)
Makes a previously registered local GraphPlanSource authoritative. |
void |
registerClientGraphPlanSource(GraphPlanSource graphPlanSource)
Registers a GraphPlanSource instance locally. |
boolean |
removeGraphPlan(java.lang.String graphPlanName)
Removes the GraphPlan instance specified by the given graphPlanName. |
GraphPlan |
retrieveGraphPlan(java.lang.String name)
Returns a GraphPlan with the given name from the server repsoitory. |
void |
storeGraphPlan(GraphPlan graphPlan)
Saves the given GraphPlan to the server repository. |
void |
storeGraphPlan(java.lang.String sourceName,
GraphPlan graphPlan)
Saves the given GraphPlan to the server repository using the given sourceName. |
GraphPlanSource |
unregisterClientGraphPlanSource(java.lang.String sourceName)
Unregisters a local GraphPlanSource with the given name. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public ClientSession getClientSession()
protected CommonClient getCommonClient() throws NotConnectedException, ClientSessionException
NotConnectedException
ClientSessionException
public ImageTypeMap getDefaultImageTypeMap() throws ClientSessionException
ClientSessionException
public GraphPlan retrieveGraphPlan(java.lang.String name) throws GraphPlanException, ClientSessionException
name
-
GraphPlanException
ClientSessionException
public boolean removeGraphPlan(java.lang.String graphPlanName) throws GraphPlanException, ClientSessionException
graphPlanName
-
GraphPlanException
ClientSessionException
public void storeGraphPlan(GraphPlan graphPlan) throws GraphPlanException, ClientSessionException
graphPlan
-
GraphPlanException
ClientSessionException
public void storeGraphPlan(java.lang.String sourceName, GraphPlan graphPlan) throws GraphPlanException, ClientSessionException
sourceName
- graphPlan
-
GraphPlanException
ClientSessionException
public java.util.List listGraphPlanNames(java.lang.String sourceName) throws GraphPlanException, ClientSessionException
sourceName
-
GraphPlanException
ClientSessionException
public GraphPlan getClientAuthoritativeGraphPlan(java.lang.String graphPlanName) throws GraphPlanException
graphPlanName
-
GraphPlanException
public GraphPlanSource getClientAuthoritativeSource()
public void makeClientAuthoritativeSource(java.lang.String sourceName)
sourceName
- public void registerClientGraphPlanSource(GraphPlanSource graphPlanSource)
graphPlanSource
- public GraphPlanSource unregisterClientGraphPlanSource(java.lang.String sourceName)
sourceName
-
public GraphPlanSource getClientGraphPlanSource(java.lang.String sourceName)
sourceName
-
public java.util.Collection getAllClientGraphPlanSourceNames()
public void finalize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |