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

java.lang.Object
  extended byorg.mmbase.module.core.MMTable
      extended byorg.mmbase.module.core.MMObjectBuilder
          extended byorg.mmbase.security.implementation.cloudcontext.builders.Contexts
              extended byorg.mmbase.security.implementation.cloudcontext.builders.PeopleContexts

public class PeopleContexts
extends Contexts

Simple extension of Contexts. It overrides the concept of an 'own' node wich is on default only the mmbaseusers object. This adds also the people nodes where the account field is the current account.

Version:
$Id: PeopleContexts.java,v 1.1 2003/11/03 13:22:31 michiel Exp $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes inherited from class org.mmbase.security.implementation.cloudcontext.builders.Contexts
Contexts.OperationsCache
 
Field Summary
 
Fields inherited from class org.mmbase.security.implementation.cloudcontext.builders.Contexts
allowingContextsCache, ALLOWS_PARAMETERS, contextCache, GRANT_PARAMETERS, invalidableObjects, MAY_PARAMETERS, MAYGRANT_PARAMETERS, MAYREVOKE_PARAMETERS, operationsCache, PARAMETER_GROUPORUSER, PARAMETER_OPERATION, PARENTSALLOW_PARAMETERS, REVOKE_PARAMETERS
 
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
PeopleContexts()
           
 
Method Summary
protected  boolean isOwnNode(User user, MMObjectNode node)
          Returns wether the given node is an 'own' node.
 
Methods inherited from class org.mmbase.security.implementation.cloudcontext.builders.Contexts
allows, check, executeFunction, getAllContexts, getAllowingContexts, getBuilder, getContext, getContextNode, getDisallowingContexts, getGroupOrUserNode, getGroupsAndUsers, getGroupsOrUsers, getParameterDefinition, getPossibleContexts, getUserNode, grant, init, mayDo, mayDo, mayDo, mayDo, mayGrant, mayRevoke, parentsAllow, revoke, setContext, setDefaults, toString
 
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, 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, getGUIIndicator, getGUIIndicator, 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, 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, insert, insertDone, isExtensionOf, isNodeCached, isVirtual, nodeLocalChanged, nodeRemoteChanged, preCommit, preEdit, process, processSearchResults, putTmpNode, readSearchResults, removeField, removeNode, 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, setValue, setVersion, setXMLPath, setXMLValues, signalNewObject, testValidData, 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
 

Constructor Detail

PeopleContexts

public PeopleContexts()
Method Detail

isOwnNode

protected boolean isOwnNode(User user,
                            MMObjectNode node)
Description copied from class: Contexts
Returns wether the given node is an 'own' node. It should return true if the node is representing the mmbaseusers object which represents the current user. Extensions could e.g. also implement returning true for the associated people node.

Overrides:
isOwnNode in class Contexts


MMBase build 1.7.1.20041002