public class RemoteTransaction_Proxy extends MappedObject_Proxy<RemoteTransaction> implements Transaction
PROP_IGNOREVALIDATION, PROP_REQUEST, PROP_RESPONSE, PROP_SESSIONNAME, PROP_XMLMODE| Constructor and Description |
|---|
RemoteTransaction_Proxy(RemoteTransaction remoteObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels this transaction.
|
boolean |
commit()
Commits this transaction.
|
Query |
createAggregatedQuery() |
NodeList |
createNodeList()
Returns a new, empty node list for this cloud
|
NodeManagerList |
createNodeManagerList()
Returns a new, empty node manager list for this cloud
|
NodeQuery |
createNodeQuery()
Create an empty NodeQuery, which can be filled, and used in
NodeManager.getList(NodeQuery) or
Cloud.getList(Query) (but then no 'real' node are returned). |
Query |
createQuery()
Create an empty Query, which can be filled, and used in
Cloud.getList(Query). |
RelationList |
createRelationList()
Returns a new, empty relation list for this cloud
|
RelationManagerList |
createRelationManagerList()
Returns a new, empty relation manager list for this cloud
|
Transaction |
createTransaction()
Creates a transaction on this cloud.
|
Transaction |
createTransaction(String arg0)
Creates a transaction on this cloud with a specified name.
|
Transaction |
createTransaction(String arg0,
boolean arg1)
Creates a transaction on this cloud with a specified name.
|
CloudContext |
getCloudContext()
Returns the context to which this cloud belongs.
|
String |
getCloudName()
Returns the name of the cloud this transaction uses
|
String |
getDescription()
This may return
Cloud.getName(), but in principable it could have been localized using the
value also returned by Cloud.getLocale(). |
Function<?> |
getFunction(String arg0,
String arg1)
Returns a Function object from a function set.
|
Collection<Function<?>> |
getFunctions(String arg0)
Returns all Function objects from a function set.
|
NodeList |
getList(Query arg0)
Executes a query and returns the result as a Cluster Node List (also if the query is a
NodeQuery). |
NodeList |
getList(String arg0,
String arg1,
String arg2,
String arg3,
String arg4,
String arg5,
String arg6,
boolean arg7)
Returns a list of virtual nodes that are composed by fields of other
nodes.
|
Locale |
getLocale()
Gets the locale assocatied with this
Cloud instance. |
String |
getName()
Returns the name of this cloud.
|
Node |
getNode(int arg0)
Returns the node with the specified number from this cloud.
|
Node |
getNode(String arg0)
Returns the node with the specified number from this cloud.
|
Node |
getNodeByAlias(String arg0)
Returns the node with the specified alias from this cloud.
|
NodeManager |
getNodeManager(int arg0)
Returns the specified node manager.
|
NodeManager |
getNodeManager(String arg0)
Returns the specified node manager.
|
NodeManagerList |
getNodeManagers()
Returns all node managers available in this cloud.
|
NodeList |
getNodes() |
Cloud |
getNonTransactionalCloud()
Returns a cloud which is not a Transaction.
|
StringList |
getPossibleContexts()
Contacts the security implementation to find out to which possible contexts are
available to the current user.
|
Map<Object,Object> |
getProperties()
Retrieves all properties previously set for this cloud.
|
Object |
getProperty(Object arg0)
Retrieves a property previously set for this cloud.
|
Relation |
getRelation(int arg0)
Returns the relation with the specified number from this cloud.
|
Relation |
getRelation(String arg0)
Returns the relation with the specified number from this cloud.
|
RelationManager |
getRelationManager(int arg0)
Returns the specified relation manager.
|
RelationManager |
getRelationManager(NodeManager arg0,
NodeManager arg1,
String arg2)
Returns the specified relation manager.
|
RelationManager |
getRelationManager(String arg0)
Returns the specified relation manager.
|
RelationManager |
getRelationManager(String arg0,
String arg1,
String arg2)
Returns the specified relation manager.
|
RelationManagerList |
getRelationManagers()
Returns all relation managers available in this cloud.
|
RelationManagerList |
getRelationManagers(NodeManager arg0,
NodeManager arg1,
String arg2)
Returns all relation managers available in this cloud that follow the specified filter.
|
RelationManagerList |
getRelationManagers(String arg0,
String arg1,
String arg2)
Returns all relation managers available in this cloud that follow the specified filter.
|
Transaction |
getTransaction(String arg0)
Returnes the transaction with the specified name.
|
UserContext |
getUser()
Who is using this cloud.
|
RemoteTransaction |
getWrappedObject() |
boolean |
hasNode(int arg0)
Determines whether a node with the specified number exists in this cloud.
|
boolean |
hasNode(String arg0)
Determines whether a node with the specified number is available from this cloud.
|
boolean |
hasNodeManager(String arg0)
Returns whether the specified node manager exists.
|
boolean |
hasRelation(int arg0)
Determines whether a relation with the specified number exists in this cloud.
|
boolean |
hasRelation(String arg0)
Determines whether a relation with the specified number is available from this cloud.
|
boolean |
hasRelationManager(NodeManager arg0,
NodeManager arg1,
String arg2)
Returns whether the specified relation manager exists.
|
boolean |
hasRelationManager(String arg0)
Returns whether the specified relation manager exists.
|
boolean |
hasRelationManager(String arg0,
String arg1,
String arg2)
Returns whether the specified relation manager exists.
|
boolean |
hasRole(String arg0)
Returns whether the specified role exists.
|
boolean |
isCanceled()
Returns whether the transaction is canceled
|
boolean |
isCommitted()
Returns whether the transaction is committed
|
boolean |
may(Action arg0,
Parameters arg1)
Check whether an action is allowed
|
boolean |
mayRead(int arg0)
Determines whether a node with the specified number is accessible for the user - that is,
the user has sufficient rights to read the node.
|
boolean |
mayRead(String arg0)
Determines whether a node with the specified number is accessible for the user - that is,
the user has sufficient rights to read the node.
|
void |
setLocale(Locale arg0)
Sets a locale for this
Cloud instance. |
void |
setProperty(Object arg0,
Object arg1)
Sets a property for this cloud object.
|
void |
shutdown()
Shutdown MMBase, if you are allowed to do so.
|
equals, getMapperCode, hashCode, toStringpublic RemoteTransaction_Proxy(RemoteTransaction remoteObject)
public boolean isCanceled()
TransactionisCanceled in interface Transactiontrue when canceledpublic boolean isCommitted()
TransactionisCommitted in interface Transactiontrue when committedpublic String getCloudName()
TransactiongetCloudName in interface Transactionpublic boolean commit()
Transactioncommit in interface Transactiontrue if the commit succeeded, false
otherwisepublic NodeList getNodes()
getNodes in interface Transactionpublic void cancel()
Transactioncancel in interface Transactionpublic RelationManagerList createRelationManagerList()
CloudcreateRelationManagerList in interface Cloudpublic Node getNodeByAlias(String arg0)
CloudNode with a reference to this
instance of Cloud.getNodeByAlias in interface Cloudarg0 - the alias of the requested nodepublic Relation getRelation(String arg0)
CloudRelation with a reference to this
instance of Cloud.getRelation in interface Cloudarg0 - a string containing the number or alias of the requested nodepublic Relation getRelation(int arg0)
CloudRelation with a reference to this
instance of Cloud.getRelation in interface Cloudarg0 - the number of the requested nodepublic boolean hasRelation(int arg0)
CloudCloud.mayRead(int) to determine this.hasRelation in interface Cloudarg0 - the number of the nodepublic boolean hasRelation(String arg0)
CloudCloud.mayRead(int) to determine this.hasRelation in interface Cloudarg0 - a string containing the number or alias of the requested nodepublic NodeManagerList getNodeManagers()
CloudgetNodeManagers in interface CloudNodeManagerList containing all node managers
available in this cloud.public boolean hasNodeManager(String arg0)
CloudhasNodeManager in interface Cloudarg0 - the name of the requested node managertrue if the specified node manager existspublic boolean hasRelationManager(NodeManager arg0, NodeManager arg1, String arg2)
CloudhasRelationManager in interface Cloudarg0 - name of the node manager of the source nodearg1 - name of the node manager of the destination nodearg2 - name of the roletrue if the specified relation manager could be foundpublic boolean hasRelationManager(String arg0, String arg1, String arg2)
CloudhasRelationManager in interface Cloudarg0 - name of the node manager of the source nodearg1 - name of the node manager of the destination nodearg2 - name of the roletrue if the specified relation manager could be foundpublic boolean hasRelationManager(String arg0)
CloudhasRelationManager in interface Cloudarg0 - name of the roletrue if the specified relation manager existspublic RelationManagerList getRelationManagers(String arg0, String arg1, String arg2)
CloudgetRelationManagers in interface Cloudarg0 - the name of the manager for the source of the relationarg1 - the name of the manager for the destination of the relationarg2 - the rolenameRelationManagerList containing all relation
managers that follow this filterpublic RelationManagerList getRelationManagers(NodeManager arg0, NodeManager arg1, String arg2)
CloudgetRelationManagers in interface Cloudarg0 - the manager for the source of the relationarg1 - the manager for the destination of the relationarg2 - the rolenameRelationManagerList containing all relation
managers that follwo thsi filterpublic RelationManagerList getRelationManagers()
CloudgetRelationManagers in interface CloudRelationManagerList containing all relation
managers available in this cloudpublic Transaction createTransaction(String arg0, boolean arg1)
CloudcreateTransaction in interface Cloudarg0 - an unique name to use for the transactionarg1 - if true, cancels and replaces
any existing transaction of this name for the current userTransaction on this cloudpublic Transaction createTransaction(String arg0)
CloudcreateTransaction in interface Cloudarg0 - an unique name to use for the transactionTransaction on this cloudpublic Transaction createTransaction()
CloudTransaction will have a generic ID.createTransaction in interface CloudTransaction on this cloudpublic Transaction getTransaction(String arg0)
CloudgetTransaction in interface Cloudarg0 - the name of the requested transactionpublic Query createAggregatedQuery()
createAggregatedQuery in interface Cloudpublic NodeQuery createNodeQuery()
CloudNodeManager.getList(NodeQuery) or
Cloud.getList(Query) (but then no 'real' node are returned). The query can be used on NodeManager only when at
least one step is added, and NodeQuery.setNodeStep(org.mmbase.storage.search.Step) is called.createNodeQuery in interface Cloudpublic NodeManagerList createNodeManagerList()
CloudcreateNodeManagerList in interface Cloudpublic Cloud getNonTransactionalCloud()
CloudgetNonTransactionalCloud in interface CloudTransactionpublic RelationManager getRelationManager(int arg0)
CloudgetRelationManager in interface Cloudarg0 - Unique ID of the RelationManager to retrievepublic RelationManager getRelationManager(String arg0, String arg1, String arg2)
CloudgetRelationManager in interface Cloudarg0 - name of the node manager of the source nodearg1 - name of the node manager of the destination nodearg2 - name of the rolepublic RelationManager getRelationManager(NodeManager arg0, NodeManager arg1, String arg2)
CloudgetRelationManager in interface Cloudarg0 - the node manager of the source nodearg1 - the node manager of the destination nodearg2 - name of the rolepublic RelationManager getRelationManager(String arg0)
CloudgetRelationManager in interface Cloudarg0 - name of the rolepublic Query createQuery()
CloudCloud.getList(Query).createQuery in interface Cloudpublic NodeList createNodeList()
CloudcreateNodeList in interface Cloudpublic RelationList createRelationList()
CloudcreateRelationList in interface Cloudpublic NodeManager getNodeManager(int arg0)
CloudgetNodeManager in interface Cloudarg0 - Unique ID of the NodeManager to retrievepublic NodeManager getNodeManager(String arg0)
CloudgetNodeManager in interface Cloudarg0 - the name of the requested node managerpublic StringList getPossibleContexts()
CloudgetPossibleContexts in interface Cloudpublic CloudContext getCloudContext()
CloudgetCloudContext in interface CloudCloudContext to which this cloud belongspublic Collection<Function<?>> getFunctions(String arg0)
CloudFunction object.getFunctions in interface Cloudarg0 - name of the function setFunction objects.public Function<?> getFunction(String arg0, String arg1)
CloudFunction object.getFunction in interface Cloudarg0 - name of the function setarg1 - name of the functionFunction object.public String getDescription()
CloudCloud.getName(), but in principable it could have been localized using the
value also returned by Cloud.getLocale().getDescription in interface Cloudpublic boolean mayRead(String arg0)
Cloudpublic boolean mayRead(int arg0)
Cloudpublic boolean hasNode(String arg0)
CloudCloud.mayRead(int) to determine this.public boolean hasNode(int arg0)
CloudCloud.mayRead(int) to determine this.public boolean hasRole(String arg0)
Cloudpublic NodeList getList(String arg0, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, boolean arg7)
Cloud- A node manager recordcompany containing a field name. - A node manager artist containing a field name. - A node manager url containing a field description and url. - A relation type related between recordcompany and artist. - A relation type related between artist and url. - A relation type homepagerel between artist and url.If node 100 has a node manager called recordcompany we can do the following to get a list of the record company's artists and all urls belonging to these artist (including nodes found through the related relation and the homepagerel relation):
getList("100", "recordcompany,artist,url",
"artist.name,description,url", null, null, null, null, true);
This call returns a list of virtual nodes with the fields artist.name,
description and url for every valid traversal.
If we only want to list homepage urls of the artists we do:
getList("100", "recordcompany,artist,url",
"artist.name,description,homepagerel,url", null, null, null,
null, true);
If we want to list all url's except the the homepage urls we do:
getList("100", "recordcompany,artist,url",
"artist.name,description,related,url", null, null, null, null, true);
If node 200 also has a node manager with name recordcompany we can get the info from their artist together with the info of the artist from the first company by also putting number 200 in the first parameter:
getList("100,200", "recordcompany,artist,url",
"artist.name,description,related,url", null, null, null, null, true);
For more information about the constraints parameter consult
NodeManager.getList(String constraints, String orderby, String
directions).getList in interface Cloudarg0 - A comma separated list of node numbers that should
be used as a starting point for all traversals
or null if all nodes of the first node
manager in nodePath should be used.arg1 - A comma separated list of node manager names
which specifies the path that should be followed.
It is possible to explicitly specify a relation
manager that should be used to go from one node to
an other. If no relation manager is specified
between two nodes, all possible relation managers
that can be used to go to the next specified node in
the path are followed.arg2 - A comma separated list of field names that will make
up the returned virtual
nodes. A fieldname can be prefixed with the
original node manager name of the field and a dot
in cases where more than one node manager in the
path has a field with the same name.arg3 - Constraints to prevent nodes from being
included in the resulting list which would normally
by included or null if no constraints
should be applied.arg4 - A comma separated list of field names on which the
returned list should be sorted or null
if the order of the returned virtual nodes doesn't
matter.arg5 - A comma separated list of values indicating wether
to sort up (ascending) or down (descending) on the
corresponding field in the orderby
parameter or null if sorting on all
fields should be up.
The value DOWN (case insensitive) indicates
that sorting on the corresponding field should be
down, all other values (including the
empty value) indicate that sorting on the
corresponding field should be up.
If the number of values found in this parameter are
less than the number of fields in the
orderby parameter, all fields that
don't have a corresponding direction value are
sorted according to the last specified direction
value.arg6 - Determines how directionality affects the search.
This is a string with the following possible values:"both", which is the default, searches for all
valid relations through a path, checking full directionality
of relations where appropriate.
"destination" searches for only those relations
in a path where valid relations exist from source to destination,
in the order of the nodemanagers given in the nodePath.
"source" searches for only those relations
in a path where valid relations exist from destination to source,
in the order of the nodemanagers given in the nodePath.
"all" searches all existing relations, and does
not check on directionality.
A value of null or any other values than those
listed above are ignored. In that case, search is
treated as if the default ("both") was specified.arg7 - true if nodes who allready exist in
the list should not be added to the list.
false if all nodes should be added to
the list even if a node with exactly the same field
values is allready present.public NodeList getList(Query arg0)
CloudNodeQuery).getList in interface Cloudarg0 - Query to executeSearchQuerypublic UserContext getUser()
Cloudpublic Locale getLocale()
CloudCloud instance.public void setLocale(Locale arg0)
CloudCloud instance.public boolean may(Action arg0, Parameters arg1)
Cloudpublic void shutdown()
Cloudpublic void setProperty(Object arg0, Object arg1)
CloudsetProperty in interface Cloudarg0 - the key of the propertyarg1 - the property valuepublic Object getProperty(Object arg0)
CloudTransaction), then this will also mirror properties in this
parent cloud.getProperty in interface Cloudarg0 - the key of the propertyCloud.setProperty(Object, Object)public String getName()
CloudTransaction.public Map<Object,Object> getProperties()
CloudgetProperties in interface Cloudpublic Node getNode(String arg0)
CloudNode with a reference to this
instance of Cloud.public Node getNode(int arg0)
CloudNode with a reference to this
instance of Cloud.public RemoteTransaction getWrappedObject()
getWrappedObject in interface MappedObjectgetWrappedObject in class MappedObject_Proxy<RemoteTransaction>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}