org.mmbase.security.implementation.cloudcontext.builders
Class RightsRel

java.lang.Object
  extended byorg.mmbase.module.core.MMTable
      extended byorg.mmbase.module.core.MMObjectBuilder
          extended byorg.mmbase.module.corebuilders.InsRel
              extended byorg.mmbase.security.implementation.cloudcontext.builders.RightsRel

public class RightsRel
extends InsRel

The rightsrel relation, connects a 'context' with a 'group'. The 'operation' field then indicates which operation is allowed because of this relation.

Version:
$Id: RightsRel.java,v 1.11 2004/03/08 17:43:56 michiel Exp $
Author:
Eduard Witteveen, Pierre van Rooden, Michiel Meeuwissen

Field Summary
static java.lang.String OPERATION_FIELD
          The field of this relations which present the operation.
 
Fields inherited from class org.mmbase.module.corebuilders.InsRel
relnumber, usesdir
 
Fields inherited from class org.mmbase.module.core.MMObjectBuilder
AGE_PARAMETERS, broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, GUI_PARAMETERS, listCache, nodeCache, OBJ2TYPE_MAX_SIZE, oType, REPLACE_CACHE, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual
 
Fields inherited from class org.mmbase.module.core.MMTable
mmb, tableName
 
Constructor Summary
RightsRel()
           
 
Method Summary
static RightsRel getBuilder()
          Util method to get this Builder.
 java.lang.String getGUIIndicator(MMObjectNode node)
          What should a GUI display for this node.
 boolean init()
          Initializes the builder.
 int insert(java.lang.String owner, MMObjectNode node)
          Insert a new Instance Relation.
 void setDefaults(MMObjectNode node)
          Operation defaults to 'read'.
 boolean setValue(MMObjectNode node, java.lang.String fieldName)
          Check on possible values for operation.
 
Methods inherited from class org.mmbase.module.corebuilders.InsRel
deleteRelationCache, deleteRelationCache, getAllRelationsVector, getAllRelationsVector, getGuessedNumber, getGUIIndicator, getRelated, getRelated, getRelated, getRelated, getRelated, getRelated, getRelatedVector, getRelatedVector, getRelation, getRelations, getRelations, getRelations, getRelations, getRelationsVector, getRelationsVector, hasRelations, insert, reldefCorrect, removeNode
 
Methods inherited from class org.mmbase.module.core.MMObjectBuilder
addField, addLocalObserver, addRemoteObserver, buildSet, checkAddTmpField, commit, convertMMNode2SQL, count, count, create, createAlias, delete, deleteNodeCache, drop, equals, equals, executeFunction, executeFunction, fieldLocalChanged, getAge, getAliasedNode, getAncestors, getCacheNumbers, getCacheSize, getCacheSize, getClassName, getConfigFile, getDBByte, getDBKey, getDBState, getDBText, getDBType, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEditFields, getField, getFieldNames, getFields, getFields, getFunctionParameters, getHardNode, getHardNode, getHTML, getInitParameter, getInitParameters, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getMMBase, getNewNode, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNode, getNodes, getNodes, getNodeType, getNumberFromName, getObjectType, getObjectValue, getParameterDefinition, getParentBuilder, getPluralName, getPluralName, getPluralNames, getQuery, getQuery, getQuery, getRawNodes, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getSortedFields, getSortedListFields, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hashCode, hostname_function, insert, insertDone, isExtensionOf, isNodeCached, isVirtual, nodeLocalChanged, nodeRemoteChanged, preCommit, preEdit, process, processSearchResults, putTmpNode, readSearchResults, removeField, removeRelations, removeSyncNodes, removeTmpNode, replace, safeCache, safeCommit, safeInsert, search, search, search, searchIn, searchIn, searchIn, searchList, searchList, searchNumbers, searchVector, searchVector, searchVector, searchVector, searchVectorIn, searchVectorIn, searchVectorIn, searchVectorIn, searchWithWhere, sendFieldChangeSignal, setDBLayout_xml, setDescription, setDescriptions, setInitParameter, setMaintainer, setMMBase, setParentBuilder, setPluralNames, setSearchAge, setSingularNames, setTableName, setUniqueValue, setUniqueValue, setValue, setVersion, setXMLPath, setXMLValues, signalNewObject, testValidData, toString, toString, toXML, updateFields, waitUntilNodeChanged, wrap
 
Methods inherited from class org.mmbase.module.core.MMTable
created, getFullTableName, getTableName, size
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPERATION_FIELD

public static java.lang.String OPERATION_FIELD
The field of this relations which present the operation.

Constructor Detail

RightsRel

public RightsRel()
Method Detail

init

public boolean init()
Description copied from class: InsRel
Initializes the builder. Determines whether the dir field is defined (and thus whether directionality is supported). If the field cannot be found, a "Warning: No dir field. Directionality support turned off." warning message is issued.

Overrides:
init in class InsRel
Returns:
A boolean value, always success (true), as any exceptions are caught and logged.
See Also:
InsRel.usesdir

getBuilder

public static RightsRel getBuilder()
Util method to get this Builder.

Returns:
The RightsRel MMObjectBuilder

getGUIIndicator

public java.lang.String getGUIIndicator(MMObjectNode node)
Description copied from class: MMObjectBuilder
What should a GUI display for this node. Default is the first non system field (first field after owner). Override this to display your own choice (see Images.java).

Overrides:
getGUIIndicator in class InsRel

setDefaults

public void setDefaults(MMObjectNode node)
Operation defaults to 'read'.

Overrides:
setDefaults in class InsRel
Parameters:
node - The node whose defaults to set.

insert

public int insert(java.lang.String owner,
                  MMObjectNode node)
Description copied from class: InsRel
Insert a new Instance Relation.

Overrides:
insert in class InsRel
Parameters:
owner - Administrator
node - Relation node to add
Returns:
A integer value identifying the newly inserted relation

setValue

public boolean setValue(MMObjectNode node,
                        java.lang.String fieldName)
Check on possible values for operation.

Overrides:
setValue in class MMObjectBuilder
Parameters:
node - the node whose fields are changed
Returns:
true if the call was handled.


MMBase build 1.7.1.20041002