class: AccountUserVO

public class: AccountUserVO
Author:
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1963 $ $LastChangedDate: 2009-05-08 13:; Complexity: 1
Dates: Created: 16.07.2009 15:13:55; Modified: 16.07.2009 15:13:55;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {CC6C9601-F3FD-4d08-B8E1-157BDBE36C18}
An account user is a user who is registered by username (i. e. userID) and password.
@revised by MuJ: 28.08.2007
 

Goto: Custom Properties, Fields, Methods

Extends: ValueObject

See also: AccountUserRO, ValueObject, EncodingTest, Bug213SetContentTypeToNullTest, ItemUpdateAndBaseURLTest, TransformContainerIntegrationTest, TransformPubCollectionIntegrationTest, TransformPubItemIntegrationTest

Appears in: valueobjects

Connections
 
Custom Properties
 
AccountUserVO Attributes
Attribute Details
private boolean
  active
Notes: Fixed serialVersionUID to prevent java.io.InvalidClassExceptions like 'de.mpg.escidoc.services.common.valueobjects.ItemVO; local class incompatible: stream classdesc serialVersionUID = 8587635524303981401, local class serialVersionUID = -2285753348501257286' that occur after JiBX enhancement of VOs. Without the fixed serialVersionUID, the VOs have to be compiled twice for testing (once for the Application Server, once for the local test).
@author Johannes Mueller
private java.util.ArrayList
  affiliations
Initial: new java.util.ArrayList()
Notes: The references of the affiliations the account user is associated to.
private String
  email
private java.util.ArrayList
  grants
Initial: new java.util.ArrayList()
Notes: Caution: This list is NOT filled automatically by JiBX or the AccountUserVO class itself when creating the VO.
private String
  handle
Notes: The handle for the authenticated user, given by the framework.
private Date
  lastModificationDate
private String
  name
Notes: name + surname
private String
  password
private AccountUserRO
  reference
private String
  userid
 
AccountUserVO Methods
Operation Details
public
getAffiliations():List
Sequential
Notes: Delivers the list of affiliations the account user is affiliated to.
public
getEmail():String
Sequential
Notes: Delivers the email address of the account user.
public
getGrants():List
Sequential
Notes: Delivers the list of the account users' grants. Caution: This list is NOT filled automatically by JiBX or the AccountUserVO class itself when creating the VO.
public
getHandle():String
Sequential
Notes: Delivers the handle for the authenticated user, given back by the framework.
public
getLastModificationDate():Date
Sequential
public
getName():String
Sequential
Notes: Delivers the name of the account user, i. e. first and last name.
public
getPassword():String
Sequential
Notes: Delivers the password of the account user. The password has to be encrypted.
public
getReference():AccountUserRO
Sequential
Notes: Delivers the account users' reference.
@see de.mpg.escidoc.services.common.referenceobjects.ReferenceObject
public
getUserid():String
Sequential
Notes: Delivers the user-id of the account user. The user-id is a unique id for the user within the system.
public
isActive():boolean
Sequential
Notes: Delivers the active flag of the user account. The active flag is true if the user account can be used, false otherwise.
public
isDepositor():boolean
Sequential
Notes: Delivers true if the granted role is of type 'depositor' for any object.
public
isMdEditor():boolean
Sequential
Notes: Delivers true if the granted role is of type 'md-editor' for any object.
public
isModerator():boolean
Sequential
Notes: Delivers true if the granted role is of type 'moderator' for any object.
public
isModerator(
   ReferenceObject refObj):boolean
Sequential
Notes: Delivers true if the granted role is of type 'moderator' for the given object (normally a PubCollection).
@return true if the granted role is of type 'moderator' for the given object
public
isPrivilegedViewer(
   ReferenceObject refObj):boolean
Sequential
Notes: Delivers true if the granted role is of type 'PrivilegedViewer' for the given object (normally a PubCollection).
@return true if the granted role is of type 'PrivilegedViewer' for the given object
public
setActive(
   boolean newVal):void
Sequential
Notes: Sets the active flag of the user account. The active flag is true if the user account can be used, false otherwise.
public
setEmail(
   String newVal):void
Sequential
Notes: Sets the email address of the account user.
public
setHandle(
   String newVal):void
Sequential
Notes: Sets the handle for the authenticated user, given back by the framework.
public
setLastModificationDate(
   Date lastModificationDate):void
Sequential
public
setName(
   String newVal):void
Sequential
Notes: Sets the name of the account user, i. e. first and last name.
public
setPassword(
   String newVal):void
Sequential
Notes: Sets the password of the account user. The password has to be encrypted.
public
setReference(
   AccountUserRO newVal):void
Sequential
Notes: Sets the account users' reference.
@see de.mpg.escidoc.services.common.referenceobjects.ReferenceObject
public
setUserid(
   String newVal):void
Sequential
Notes: Sets the user-id of the account user. The user-id is a unique id for the user within the system.