org.apache.lenya.cms.ac.cocoon
Class CredentialWrapper

java.lang.Object
  extended by org.apache.lenya.cms.ac.cocoon.CredentialWrapper

public class CredentialWrapper
extends java.lang.Object

Wrapper class for credentials.

Version:
$Id: CredentialWrapper.java 473841 2006-11-12 00:46:38Z gregor $

Field Summary
static java.lang.String GROUP
           
static java.lang.String IPRANGE
           
static java.lang.String USER
           
 
Constructor Summary
CredentialWrapper(Accreditable accreditable, Role role)
          Ctor.
 
Method Summary
 java.lang.String getAccreditableId()
          Returns the accreditable ID.
 java.lang.String getAccreditableName()
          Returns the accreditable name.
 java.lang.String getRoleId()
          Returns the role ID.
 java.lang.String getRoleName()
          Returns the role name.
 java.lang.String getType()
          Returns the accreditable type (USER, GROUP, or IPRANGE)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER

public static final java.lang.String USER
See Also:
Constant Field Values

GROUP

public static final java.lang.String GROUP
See Also:
Constant Field Values

IPRANGE

public static final java.lang.String IPRANGE
See Also:
Constant Field Values
Constructor Detail

CredentialWrapper

public CredentialWrapper(Accreditable accreditable,
                         Role role)
Ctor.

Parameters:
accreditable - The accreditable of the credential to wrap.
role - The role of the credential to wrap.
Method Detail

getAccreditableId

public java.lang.String getAccreditableId()
Returns the accreditable ID.

Returns:
A string.

getAccreditableName

public java.lang.String getAccreditableName()
Returns the accreditable name.

Returns:
A string.

getRoleId

public java.lang.String getRoleId()
Returns the role ID.

Returns:
A string.

getRoleName

public java.lang.String getRoleName()
Returns the role name.

Returns:
A string.

getType

public java.lang.String getType()
Returns the accreditable type (USER, GROUP, or IPRANGE)

Returns:
A string.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.