org.mmbase.module.builders
Class Users

java.lang.Object
  |
  +--org.mmbase.module.core.MMTable
        |
        +--org.mmbase.module.core.MMObjectBuilder
              |
              +--org.mmbase.module.builders.Users

public class Users
extends MMObjectBuilder

Version:
10 Dec 2000
Author:
Daniel Ockeloen

Field Summary
protected  PasswordGeneratorInterface pwgen
           
 
Fields inherited from class org.mmbase.module.core.MMObjectBuilder
broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, nodeCache, obj2type, 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
Users()
           
 
Method Summary
 void flushCache(java.lang.String key)
          flush caches of the (cookie defined) user also signals the session module
protected  java.lang.String getAccount(java.lang.String key)
          get account name of user (indicated by its cookie).
protected  java.lang.String getEmail(java.lang.String key)
          get email address of user (indicated by its cookie).
 int getNumber(java.lang.String key)
          get the number of the user object connected to this cookie.
protected  java.lang.String getPassword(java.lang.String key)
          get password of user (indicated by its cookie).
 java.lang.String replace(scanpage sp, java.util.StringTokenizer tok)
          replace call, when called in format MMBASE-BUILDER-users-xxxxx
 
Methods inherited from class org.mmbase.module.core.MMObjectBuilder
addField, addLocalObserver, addRemoteObserver, buildSet, checkAddTmpField, commit, convertMMNode2SQL, count, create, createAlias, created, 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, getFullTableName, getFunctionParameters, getGUIIndicator, getGUIIndicator, getHardNode, getHardNode, getHTML, getInitParameter, getInitParameters, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getNewNode, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNode, getNodes, getNodeType, getNumberFromName, getObjectType, getObjectValue, getParentBuilder, getPluralName, getPluralName, getPluralNames, getQuery, getQuery, getQuery, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getSortedFields, getSortedListFields, getTableName, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hashCode, hostname_function, init, insert, insert, insertDone, isExtensionOf, isNodeCached, isVirtual, nodeLocalChanged, nodeRemoteChanged, preCommit, preEdit, process, putTmpNode, readSearchResults, removeField, removeNode, removeRelations, removeTmpNode, safeCache, safeCommit, safeInsert, search, search, search, searchIn, searchIn, searchIn, searchList, searchList, searchNumbers, searchVector, searchVector, searchVector, searchVector, searchVectorIn, searchVectorIn, searchVectorIn, searchVectorIn, searchWithWhere, sendFieldChangeSignal, setDBLayout_xml, setDefaults, setDescription, setDescriptions, setInitParameter, setMaintainer, setMMBase, setParentBuilder, setPluralNames, setSearchAge, setSingularNames, setTableName, setValue, setValue, setVersion, setXMLPath, setXMLValues, signalNewObject, testValidData, toString, toString, toXML, updateFields, waitUntilNodeChanged, wrap
 
Methods inherited from class org.mmbase.module.core.MMTable
size
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pwgen

protected PasswordGeneratorInterface pwgen
Constructor Detail

Users

public Users()
Method Detail

replace

public java.lang.String replace(scanpage sp,
                                java.util.StringTokenizer tok)
replace call, when called in format MMBASE-BUILDER-users-xxxxx
Overrides:
replace in class MMObjectBuilder
Following copied from class: org.mmbase.module.core.MMObjectBuilder
Parameters:
sp - The scanpage (containing http and user info) that calls the function
tok - a list of strings that describe the (sub)command to execute
Returns:
the result value as a String

getNumber

public int getNumber(java.lang.String key)
get the number of the user object connected to this cookie.
Parameters:
key - The value of the browser cookie.
Returns:
the object number of the user object.

getAccount

protected java.lang.String getAccount(java.lang.String key)
get account name of user (indicated by its cookie).
Parameters:
key - the value of the browser cookie.
Returns:
the account name.

getEmail

protected java.lang.String getEmail(java.lang.String key)
get email address of user (indicated by its cookie).
Parameters:
key - the value of the browser cookie.
Returns:
the email address.

getPassword

protected java.lang.String getPassword(java.lang.String key)
get password of user (indicated by its cookie).
Parameters:
key - the value of the browser cookie.
Returns:
the password.

flushCache

public void flushCache(java.lang.String key)
flush caches of the (cookie defined) user also signals the session module
Parameters:
key - the value of the browser cookie.


MMBase build 1.6.5.20030923