pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.accesscontrol
Class User.Everybody

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.util.entity.AbstractNamedEntity
          extended by org.torweg.pulse.util.entity.AbstractNamableEntity
              extended by org.torweg.pulse.accesscontrol.AbstractAccessControlObject
                  extended by org.torweg.pulse.accesscontrol.AbstractUserBase
                      extended by org.torweg.pulse.accesscontrol.User
                          extended by org.torweg.pulse.accesscontrol.User.Everybody
All Implemented Interfaces:
java.io.Serializable, JDOMable, INameable, INamed
Enclosing class:
User

public static class User.Everybody
extends User

is a dummy User used for non-logged-in users to provide them the "~Everybody" Role for access checks.

The user will return an empty string as the name and otherwise behave like a normal user.

Author:
Thomas Weber
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.accesscontrol.User
User.Everybody, User.State
 
Field Summary
 
Fields inherited from class org.torweg.pulse.accesscontrol.AbstractUserBase
EVERYBODY, PASSWORD_CHARACTERS
 
Constructor Summary
User.Everybody(Role everybodyRole)
          initialises the Everybody.
 
Method Summary
 
Methods inherited from class org.torweg.pulse.accesscontrol.User
addAttribute, addGroup, addPermission, addPersistentRole, addSessionRole, checkPassword, clearAttributes, deserializeToJDOM, deserializeToJDOMShallow, expunge, getAttributes, getAttributeValue, getAttributeValues, getEmail, getGroups, getLastLoginTime, getPassword, getPermissions, getPersistentRoles, getRoles, getSessionRoles, getSignUpLocale, hasAllowanceFor, hasAllowanceFor, isActive, isExpunged, isSuperuser, isWebdavEnabled, removeAttribute, removeAttributeValue, removeGroup, removePermission, removePersistentRole, removeSessionRole, setAttributeValue, setEmail, setLastLoginTime, setLastModificationTime, setName, setPassword, setSignUpLocale, setSuperuser, setWebdavEnabled, toggleActive, toJSON
 
Methods inherited from class org.torweg.pulse.accesscontrol.AbstractUserBase
generatePassword, generateToken, getCommandMatchers, getEveryBodyId, getEverybodyRole, getSuperUser, getUser, getUser, initEverybodyRole
 
Methods inherited from class org.torweg.pulse.accesscontrol.AbstractAccessControlObject
getAssociatedAbstractAccessControlObjects, getLoadCriteriaForClassWithAlias
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity
getName
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.torweg.pulse.util.INamed
getName
 

Constructor Detail

User.Everybody

public User.Everybody(Role everybodyRole)
initialises the Everybody.

Parameters:
everybodyRole - the "~Everybody" Role