|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.bridge.remote.implementation.RemoteRelationManager_Impl
RemoteRelationManager_Impl in a generated implementation of RelationManager
This implementation is used by a local class when the MMCI is called remotely
| Fields inherited from interface org.mmbase.bridge.RelationManager |
BIDIRECTIONAL, UNIDIRECTIONAL |
| Fields inherited from interface org.mmbase.bridge.NodeManager |
ORDER_CREATE, ORDER_EDIT, ORDER_LIST, ORDER_SEARCH |
| Constructor Summary | |
RemoteRelationManager_Impl(RemoteRelationManager originalObject)
|
|
| Method Summary | |
Node |
createNode()
Creates a new node. |
Relation |
createRelation(Node param1,
Node param2)
Adds a relation from this type. |
Cloud |
getCloud()
Returns the cloud to which this manager belongs. |
java.lang.String |
getDescription()
Returns the description of this node manager. |
NodeManager |
getDestinationManager()
Retrieves the type of node that can act as the destination of a relation of this type. |
int |
getDirectionality()
Retrieves the directionality for this type (the default assigned to a new relation). |
Field |
getField(java.lang.String param1)
Returns the field with the specified name. |
FieldList |
getFields()
Returns a list of all fields defined for this node manager. |
FieldList |
getFields(int param1)
Retrieve a subset of field types of this NodeManager, depending on a given order. |
java.lang.String |
getForwardRole()
Retrieves the role of the source to the destination |
java.lang.String |
getGUIName()
Returns the descriptive name of this node manager. |
java.lang.String |
getInfo(java.lang.String param1)
Retrieve info from a node manager based on a command string. |
java.lang.String |
getInfo(java.lang.String param1,
javax.servlet.ServletRequest param2,
javax.servlet.ServletResponse param3)
|
NodeList |
getList(java.lang.String param1,
java.util.Hashtable param2)
Retrieve info (as a list of virtual nodes) from a node manager based on a command string. |
NodeList |
getList(java.lang.String param1,
java.util.Hashtable param2,
javax.servlet.ServletRequest param3,
javax.servlet.ServletResponse param4)
|
NodeList |
getList(java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
Returns a list of nodes belonging to this node manager. |
java.lang.String |
getName()
Returns the name of this node manager. |
java.lang.String |
getReciprocalRole()
Retrieves the role of the destination to the source |
RelationList |
getRelations(Node param1)
Retrieves all the relations of this type from a given node. |
NodeManager |
getSourceManager()
Retrieves the NodeManager of node that can act as the source of a relation of this type. |
boolean |
mayCreateNode()
Check if the current user may create a new node of this type. |
boolean |
mayCreateRelation(Node param1,
Node param2)
Check if the current user may create a new relation of this type between the specified nodes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mmbase.bridge.NodeManager |
getInfo, getList |
| Constructor Detail |
public RemoteRelationManager_Impl(RemoteRelationManager originalObject)
| Method Detail |
public java.lang.String getName()
NodeManagergetName in interface NodeManagerorg.mmbase.bridge.NodeManagerpublic FieldList getFields()
NodeManagergetFields in interface NodeManagerorg.mmbase.bridge.NodeManagerpublic FieldList getFields(int param1)
NodeManagergetFields in interface NodeManagerorg.mmbase.bridge.NodeManagerorder - the order in which to list the fieldsList of FieldType objectspublic Field getField(java.lang.String param1)
NodeManagergetField in interface NodeManagerorg.mmbase.bridge.NodeManagername - the name of the field to be returnedpublic java.lang.String getInfo(java.lang.String param1)
NodeManagergetInfo in interface NodeManagerorg.mmbase.bridge.NodeManagercommand - the info to obtain, i.e. "USER-OS".
public java.lang.String getInfo(java.lang.String param1,
javax.servlet.ServletRequest param2,
javax.servlet.ServletResponse param3)
public Node createNode()
NodeManagercreateNode in interface NodeManagerorg.mmbase.bridge.NodeManagerNodepublic java.lang.String getDescription()
NodeManagergetDescription in interface NodeManagerorg.mmbase.bridge.NodeManager
public NodeList getList(java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
NodeManager
"number = 100" (!=, <, >, <= and >= can also be used)
"name = 'admin'",
"email IS NULL" (indicating the email field is empty)
"email LIKE '%.org'" (indication the email should end with .org)
"number BETWEEN 99 AND 101"
"name IN ('admin', 'anonymous')"
The NOT operator can be used to get the opposite result like:
"NOT (number = 100)"
"NOT (name = 'admin')",
"email IS NOT NULL"
"email NOT LIKE '%.org'" (indication the email should not end with .org)
"number NOT BETWEEN 99 AND 101"
"name NOT IN ('admin', 'anonymous')"
Some special functions (not part of standard SQL, but most databases
support them) can be used like:
"LOWER(name) = 'admin'" (to also allow 'Admin' to be selected) "LENGTH(name) > 5" (to only select names longer then 5 characters)Constraints can be linked together using AND and OR:
"((number=100) OR (name='admin') AND email LIKE '%.org')"The single quote can be escaped using it twice for every single occurence:
"name='aaa''bbb'" (if we want to find the string aaa'bbb)For more info consult a SQL tutorial like this one.
getList in interface NodeManagerorg.mmbase.bridge.NodeManagerconstraints - Contraints to prevent nodes from being
included in the resulting list which would normally
by included or null if no contraints
should be applied .orderby - 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.directions - 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.
public NodeList getList(java.lang.String param1,
java.util.Hashtable param2)
NodeManagergetList in interface NodeManagerorg.mmbase.bridge.NodeManagercommand - the info to obtain, i.e. "USER-OS".parameters - a hashtable containing the named parameters of the list.
public NodeList getList(java.lang.String param1,
java.util.Hashtable param2,
javax.servlet.ServletRequest param3,
javax.servlet.ServletResponse param4)
public Cloud getCloud()
NodeManagergetCloud in interface NodeManagerorg.mmbase.bridge.NodeManagerpublic java.lang.String getGUIName()
NodeManagergetGUIName in interface NodeManagerorg.mmbase.bridge.NodeManagerpublic boolean mayCreateNode()
NodeManagermayCreateNode in interface NodeManagerorg.mmbase.bridge.NodeManagerpublic java.lang.String getForwardRole()
RelationManagergetForwardRole in interface RelationManagerorg.mmbase.bridge.RelationManagerStringpublic java.lang.String getReciprocalRole()
RelationManagergetReciprocalRole in interface RelationManagerorg.mmbase.bridge.RelationManagerStringpublic int getDirectionality()
RelationManagergetDirectionality in interface RelationManagerorg.mmbase.bridge.RelationManagerpublic NodeManager getSourceManager()
RelationManagergetSourceManager in interface RelationManagerorg.mmbase.bridge.RelationManagerpublic NodeManager getDestinationManager()
RelationManagergetDestinationManager in interface RelationManagerorg.mmbase.bridge.RelationManager
public Relation createRelation(Node param1,
Node param2)
RelationManagercreateRelation in interface RelationManagerorg.mmbase.bridge.RelationManagersourceNode - the node from which you want to relatedestinationNode - the node to which you want to relatepublic RelationList getRelations(Node param1)
RelationManagergetRelations in interface RelationManagerorg.mmbase.bridge.RelationManagernode - the node from which to give the relations
public boolean mayCreateRelation(Node param1,
Node param2)
RelationManagermayCreateRelation in interface RelationManagerorg.mmbase.bridge.RelationManager
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||