|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.carrierwave.session.QueryClient
The QueryClient class provides the client interface to the 'modify',
'select', 'delete', and 'invoke' functionality on the server.
Methods taking graph plan names will consult the authoritative
ClientSession
,
RepositoryClient
Method Summary | |
void |
deleteAllImageablesFor(java.util.List icons)
Deletes all Imageable instances referenced by the given List of Icon instances. This method will ignore Icon instances that reference dependent objects, unlike the deleteObjectFor method. |
void |
deleteImageableFor(Icon icon)
Delete the Imageable instance referenced by the given Icon instance. This method will fail if the given Icon instance refers to a dependent object. Note this method cannot dereference a dependent object as lists are not ordered and there would be no guarantee the object was removed. |
Icon[] |
findAllIconsFor(java.lang.String imageType)
Returns an array of Icons for the Imageable objects of given imageType class name. This method will fail if the objects found are not ImageableIdentifiable. |
Icon[] |
findAllIconsWith(CollectionFinder finder)
Returns an array of Icon instances for the Imageable objects found by the given CollectionFinder. This method will fail if the objects found are not ImageableIdentifiable. |
Icon |
findIconWith(ObjectFinder finder)
Returns an Icon instance for the Imageable found by the given ObjectFinder instance. This method will fail if the object found is not ImageableIdentifiable. |
ClientSession |
getClientSession()
|
protected CommonClient |
getCommonClient()
|
Icon |
invokeImageableGraphWith(Action action)
Invokes the given Action instance and returns an Icon instance for the resulting ImageableIdentifiable. If the given Action instance has a dirty Image instance child that represents an ImageableIdentifiable object, the ImageableIdentifiable will be modified before the action is invoked. |
Image |
invokeImageableGraphWith(Action action,
GraphPlan resultPlan)
Invokes the given Action instance and returns an Image instance rooted by the result Imageable described by the given resultPlan GraphPlan instance. |
Image |
invokeImageableGraphWith(Action action,
java.lang.String resultPlanName)
Invokes the given Action instance and returns an Image instance rooted by the result Imageable described by the given resultPlan GraphPlan instance. |
Image |
invokeImageableGraphWith(GraphPlan graphPlan,
Action action,
GraphPlan resultPlan)
Invokes the given Action instance described the given graphPlan GraphPlan instance and returns an Image instance rooted by the result Imageable described by the given resultPlan GraphPlan instance. |
Image |
invokeImageableGraphWith(java.lang.String graphPlanName,
Action action,
java.lang.String resultPlanName)
Invokes the given Action instance described the given graphPlan GraphPlan instance and returns an Image instance rooted by the result Imageable described by the given resultPlan GraphPlan instance. |
Icon |
modifyImageableGraphFor(GraphPlan graphPlan,
Image originImage)
Creates or modifies the graph represented by the graph rooted by given Image instance and described by the given GraphPlan instance. Note that only the children described by the given GraphPlan will be consulted. |
Icon[] |
modifyImageableGraphFor(GraphPlan graphPlan,
ImageGraph imageGraph)
Creates or modifies the graph represented by the given ImageGraph instance. It is expected that the given ImageGraph instance may have one or more origin Image instances in the List of origins (ImageGraph.getOriginImages()). Also note that if an Image instance in the ImageGraph is not an origin, and is not a child (at any depth) of any of the available origin Image instances, it will be ignored. |
Icon |
modifyImageableGraphFor(Image originImage)
Creates or modifies the graph represented by the graph rooted by given Image instance. |
Icon[] |
modifyImageableGraphFor(ImageGraph imageGraph)
Creates or modifies the graph represented by the given ImageGraph instance. It is expected that the given ImageGraph instance may have one or more origin Image instances in the List of origins (ImageGraph.getOriginImages()). Also note that if an Image instance in the ImageGraph is not an origin, and is not a child (at any depth) of any of the available origin Image instances, it will be ignored. |
Icon |
modifyImageableGraphFor(java.lang.String graphPlanName,
Image originImage)
Creates or modifies the graph represented by the graph rooted by given Image instance and described by the given GraphPlan instance. Note that only the children described by the given GraphPlan will be consulted. |
Icon[] |
modifyImageableGraphFor(java.lang.String graphPlanName,
ImageGraph imageGraph)
Creates or modifies the graph represented by the given ImageGraph instance. It is expected that the given ImageGraph instance may have one or more origin Image instances in the List of origins (ImageGraph.getOriginImages()). Also note that if an Image instance in the ImageGraph is not an origin, and is not a child (at any depth) of any of the available origin Image instances, it will be ignored. |
Image |
modifySelectGraphFor(GraphPlan graphPlan,
Image originImage)
Creates a new or modifies an existing Imageable object graph rooted with the given originImage Image instance and described by the given GraphPlan instance. |
ImageGraph |
modifySelectGraphFor(GraphPlan graphPlan,
ImageGraph imageGraph)
Creates or modifies the graph represented by the given ImageGraph instance, and returns an ImageGraph that represents the changes. |
Image |
modifySelectGraphFor(Image originImage)
Creates a new or modifies an existing Imageable object graph rooted with the given originImage Image instance. |
ImageGraph |
modifySelectGraphFor(ImageGraph imageGraph)
Creates or modifies the graph represented by the given ImageGraph instance, and returns an ImageGraph that represents the changes. |
Image |
modifySelectGraphFor(java.lang.String graphPlanName,
Image originImage)
Creates a new or modifies an existing Imageable object graph rooted with the given originImage Image instance and described by the given GraphPlan instance. |
ImageGraph |
modifySelectGraphFor(java.lang.String graphPlanName,
ImageGraph imageGraph)
Creates or modifies the graph represented by the given ImageGraph instance, and returns an ImageGraph that represents the changes. |
Image[] |
selectAllImageGraphsWith(GraphPlan graphPlan,
CollectionFinder finder)
Returns an array of Image instances found as described by the given GraphPlan and CollectionFinder instances. |
Image[] |
selectAllImageGraphsWith(java.lang.String graphPlanName,
CollectionFinder finder)
Returns an array of Image instances found as described by the given GraphPlan and CollectionFinder instances. |
Image |
selectImageGraphFor(GraphPlan graphPlan,
Icon originIcon)
Returns an Image instance representing the graph defined by the given GraphPlan instance and rooted with the Imageable referenced by the given originIcon value. |
Image |
selectImageGraphFor(GraphPlan graphPlan,
java.lang.String imageType,
java.lang.String referenceableName)
Returns an Image instance representing the graph defined by the given GraphPlan instance and rooted with the Imageable with the given referenceableName. |
Image |
selectImageGraphFor(java.lang.String graphPlanName,
Icon originIcon)
Returns an Image instance representing the graph defined by the given GraphPlan instance and rooted with the Imageable referenced by the given originIcon value. |
Image |
selectImageGraphFor(java.lang.String graphPlanName,
java.lang.String imageType,
java.lang.String referenceableName)
Returns an Image instance representing the graph defined by the given GraphPlan instance and rooted with the Imageable with the given referenceableName. |
Image |
selectImageGraphWith(GraphPlan graphPlan,
ObjectFinder finder)
Returns an Image instance found as described by the given GraphPlan and ObjectFinder instances. |
Image |
selectImageGraphWith(java.lang.String graphPlanName,
ObjectFinder finder)
Returns an Image instance found as described by the given GraphPlan and ObjectFinder instances. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public ClientSession getClientSession()
protected CommonClient getCommonClient() throws NotConnectedException, ClientSessionException
NotConnectedException
ClientSessionException
public Icon findIconWith(ObjectFinder finder) throws GraphException, ClientSessionException
finder
-
GraphException
ClientSessionException
public Icon[] findAllIconsWith(CollectionFinder finder) throws GraphException, ClientSessionException
finder
-
GraphException
ClientSessionException
public Icon[] findAllIconsFor(java.lang.String imageType) throws GraphException, ClientSessionException
imageType
- the base ImageableIdentifiable class name
GraphException
ClientSessionException
public Image[] selectAllImageGraphsWith(java.lang.String graphPlanName, CollectionFinder finder) throws GraphException, ClientSessionException
graphPlanName
- finder
-
GraphException
ClientSessionException
public Image[] selectAllImageGraphsWith(GraphPlan graphPlan, CollectionFinder finder) throws GraphException, ClientSessionException
graphPlan
- finder
-
GraphException
ClientSessionException
public Image selectImageGraphWith(java.lang.String graphPlanName, ObjectFinder finder) throws GraphException, ClientSessionException
graphPlanName
- finder
-
GraphException
ClientSessionException
public Image selectImageGraphWith(GraphPlan graphPlan, ObjectFinder finder) throws GraphException, ClientSessionException
graphPlan
- finder
-
GraphException
ClientSessionException
public Image selectImageGraphFor(java.lang.String graphPlanName, Icon originIcon) throws GraphException, ClientSessionException
graphPlanName
- originIcon
-
GraphException
ClientSessionException
public Image selectImageGraphFor(GraphPlan graphPlan, Icon originIcon) throws GraphException, ClientSessionException
graphPlan
- originIcon
-
GraphException
ClientSessionException
public Image selectImageGraphFor(java.lang.String graphPlanName, java.lang.String imageType, java.lang.String referenceableName) throws GraphException, ClientSessionException
graphPlanName
- imageType
- referenceableName
-
GraphException
ClientSessionException
public Image selectImageGraphFor(GraphPlan graphPlan, java.lang.String imageType, java.lang.String referenceableName) throws GraphException, ClientSessionException
graphPlan
- imageType
- referenceableName
-
GraphException
ClientSessionException
public Image modifySelectGraphFor(Image originImage) throws GraphException, ClientSessionException
originImage
-
GraphException
ClientSessionException
public Image modifySelectGraphFor(java.lang.String graphPlanName, Image originImage) throws GraphException, ClientSessionException
graphPlanName
- originImage
-
GraphException
ClientSessionException
public Image modifySelectGraphFor(GraphPlan graphPlan, Image originImage) throws GraphException, ClientSessionException
graphPlan
- originImage
-
GraphException
ClientSessionException
public ImageGraph modifySelectGraphFor(ImageGraph imageGraph) throws GraphException, ClientSessionException
imageGraph
-
GraphException
ClientSessionException
public ImageGraph modifySelectGraphFor(java.lang.String graphPlanName, ImageGraph imageGraph) throws GraphException, ClientSessionException
graphPlanName
- imageGraph
-
GraphException
ClientSessionException
public ImageGraph modifySelectGraphFor(GraphPlan graphPlan, ImageGraph imageGraph) throws GraphException, ClientSessionException
graphPlan
- imageGraph
-
GraphException
ClientSessionException
public Icon modifyImageableGraphFor(Image originImage) throws GraphException, ClientSessionException
originImage
-
GraphException
ClientSessionException
public Icon modifyImageableGraphFor(java.lang.String graphPlanName, Image originImage) throws GraphException, ClientSessionException
graphPlanName
- originImage
-
GraphException
ClientSessionException
public Icon modifyImageableGraphFor(GraphPlan graphPlan, Image originImage) throws GraphException, ClientSessionException
graphPlan
- originImage
-
GraphException
ClientSessionException
public Icon[] modifyImageableGraphFor(ImageGraph imageGraph) throws GraphException, ClientSessionException
imageGraph
-
GraphException
ClientSessionException
public Icon[] modifyImageableGraphFor(java.lang.String graphPlanName, ImageGraph imageGraph) throws GraphException, ClientSessionException
graphPlanName
- imageGraph
-
GraphException
ClientSessionException
public Icon[] modifyImageableGraphFor(GraphPlan graphPlan, ImageGraph imageGraph) throws GraphException, ClientSessionException
graphPlan
- imageGraph
-
GraphException
ClientSessionException
public void deleteAllImageablesFor(java.util.List icons) throws GraphException, ClientSessionException
deleteObjectFor
method.
icons
-
GraphException
ClientSessionException
public void deleteImageableFor(Icon icon) throws GraphException, ClientSessionException
icon
-
GraphException
ClientSessionException
public Image invokeImageableGraphWith(java.lang.String graphPlanName, Action action, java.lang.String resultPlanName) throws GraphException, ClientSessionException
graphPlanName
- action
- resultPlanName
-
GraphException
ClientSessionException
public Image invokeImageableGraphWith(GraphPlan graphPlan, Action action, GraphPlan resultPlan) throws GraphException, ClientSessionException
graphPlan
- action
- resultPlan
-
GraphException
ClientSessionException
public Image invokeImageableGraphWith(Action action, java.lang.String resultPlanName) throws GraphException, ClientSessionException
action
- resultPlanName
-
GraphException
ClientSessionException
public Image invokeImageableGraphWith(Action action, GraphPlan resultPlan) throws GraphException, ClientSessionException
action
- resultPlan
-
GraphException
ClientSessionException
public Icon invokeImageableGraphWith(Action action) throws GraphException, ClientSessionException
action
-
GraphException
ClientSessionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |