org.apache.cocoon.auth.impl
Class PipelineSecurityHandler.PipelineSHUser

java.lang.Object
  extended by org.apache.cocoon.auth.StandardUser
      extended by org.apache.cocoon.auth.impl.PipelineSecurityHandler.PipelineSHUser
All Implemented Interfaces:
Serializable, User
Enclosing class:
PipelineSecurityHandler

public static class PipelineSecurityHandler.PipelineSHUser
extends StandardUser

The internal user class.

See Also:
Serialized Form

Field Summary
protected  List roles
          The cached list of roles for this user.
protected  Document userInfo
          The document delivered by the pipeline.
 
Fields inherited from class org.apache.cocoon.auth.StandardUser
attributes, id
 
Constructor Summary
PipelineSecurityHandler.PipelineSHUser(Document info, String id)
          Create a new user object.
 
Method Summary
protected  void calculateContextInfo()
          Internal method that calculates the context information.
 Document getUserInfo()
          Return the pipeline document.
 
Methods inherited from class org.apache.cocoon.auth.StandardUser
getAttribute, getAttributeNames, getId, isUserInRole, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userInfo

protected final Document userInfo
The document delivered by the pipeline.


roles

protected List roles
The cached list of roles for this user.

Constructor Detail

PipelineSecurityHandler.PipelineSHUser

public PipelineSecurityHandler.PipelineSHUser(Document info,
                                              String id)
Create a new user object.

Parameters:
info - The pipeline document.
id - The unique id of the user.
Method Detail

getUserInfo

public Document getUserInfo()
Return the pipeline document.

Returns:
The document.

calculateContextInfo

protected void calculateContextInfo()
Internal method that calculates the context information. All key-value pairs contained in the document are added as attributes to the user object.



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.