org.mmbase.datatypes
Class UserNodeDataType

java.lang.Object
  extended by org.mmbase.core.AbstractDescriptor
      extended by org.mmbase.datatypes.BasicDataType<Node>
          extended by org.mmbase.datatypes.NodeDataType
              extended by org.mmbase.datatypes.UserNodeDataType
All Implemented Interfaces:
Serializable, Cloneable, Comparable<DataType<Node>>, Descriptor, DataType<Node>, PublicCloneable<AbstractDescriptor>

public class UserNodeDataType
extends NodeDataType

This 'Node' datatypes uses the framework to determin the currently logged in user object. It depends on the actual implementation of authentication if this is possible and hence not null.

Since:
MMBase-1.9
Version:
$Id: UserNodeDataType.java 41987 2010-04-20 16:14:35Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.datatypes.NodeDataType
NodeDataType.MustExistRestriction
 
Nested classes/interfaces inherited from class org.mmbase.datatypes.BasicDataType
BasicDataType.AbstractRestriction<D extends Serializable>, BasicDataType.DataTypeComparator<D>, BasicDataType.EnumerationRestriction, BasicDataType.RequiredRestriction, BasicDataType.RestrictedEnumerationIterator, BasicDataType.StaticAbstractRestriction<D extends Serializable>, BasicDataType.TypeRestriction, BasicDataType.UniqueRestriction
 
Nested classes/interfaces inherited from interface org.mmbase.datatypes.DataType
DataType.Restriction<D extends Serializable>
 
Field Summary
 
Fields inherited from class org.mmbase.datatypes.NodeDataType
mustExistRestriction
 
Fields inherited from class org.mmbase.datatypes.BasicDataType
DATATYPE_BUNDLE, defaultValue, enumerationRestriction, origin, requiredRestriction, typeRestriction, uniqueRestriction
 
Fields inherited from class org.mmbase.core.AbstractDescriptor
description, guiName, key
 
Fields inherited from interface org.mmbase.datatypes.DataType
ENFORCE_ABSOLUTE, ENFORCE_ALWAYS, ENFORCE_NEVER, ENFORCE_ONCHANGE, ENFORCE_ONCREATE, ENFORCE_ONVALIDATE, PROCESS_GET, PROCESS_SET, VALID, XMLNS
 
Constructor Summary
UserNodeDataType(String name)
          Constructor for node field.
 
Method Summary
 Node getDefaultValue(Locale locale, Cloud cloud, Field field)
          Returns the (locale dependent) default value of this data type,
 
Methods inherited from class org.mmbase.datatypes.NodeDataType
castForSearch, castToValidate, cloneRestrictions, getComparator, getEnforceStrength, getMustExistRestriction, inheritRestrictions, mustExist, validateCastValue
 
Methods inherited from class org.mmbase.datatypes.BasicDataType
addErrorDescription, addRestriction, addRestriction, addStyleClass, cast, cast, castAndValidate, castOrException, castToPresent, checkType, clone, clone, compareTo, edit, equals, finish, finish, getBaseType, getBaseTypeIdentifier, getCloud, getCloud, getCommitProcessor, getDefaultProcessor, getDefaultValue, getDeleteProcessor, getElement, getElement, getEnforceString, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getEnumerationValues, getHandler, getHandlers, getOrigin, getProcessor, getProcessor, getProcessorWithoutDefault, getRequiredRestriction, getRestrictions, getStyleClasses, getTypeAsClass, getUniqueRestriction, hashCode, inherit, inheritProperties, isCorrectType, isFinished, isRequired, isUnique, preCast, preCast, preCast, rewrite, setCommitProcessor, setDefaultProcessor, setDefaultValue, setDeleteProcessor, setProcessor, setProcessor, setRequired, setUnique, setXml, toString, toStringBuilder, toXml, toXml, validate, validate, validateCastValueOrNull, validateRequired, xmlValue
 
Methods inherited from class org.mmbase.core.AbstractDescriptor
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.Descriptor
getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName
 

Constructor Detail

UserNodeDataType

public UserNodeDataType(String name)
Constructor for node field.

Method Detail

getDefaultValue

public Node getDefaultValue(Locale locale,
                            Cloud cloud,
                            Field field)
Description copied from class: BasicDataType
Returns the (locale dependent) default value of this data type,

Specified by:
getDefaultValue in interface DataType<Node>
Overrides:
getDefaultValue in class BasicDataType<Node>


MMBase 2.0-SNAPSHOT - null