net.sf.jportlet.portlet.descriptor
Class AuthConstraintDescriptor

java.lang.Object
  |
  +--net.sf.jportlet.portlet.descriptor.AuthConstraintDescriptor

public class AuthConstraintDescriptor
extends java.lang.Object

The AuthConstraintDescriptor describe the authorization constraint

Author:
Herve Tchepannou

Constructor Summary
AuthConstraintDescriptor()
           
 
Method Summary
 void addRole(java.lang.String role)
           
 boolean containsRole(java.lang.String role)
           
 boolean containsRoles(java.util.Collection roles)
           
 java.lang.String getMode()
           
 java.util.Collection getRoles()
           
 boolean isAllowAnonymous()
           
 void setAllowAnonymous(boolean allowAnonymous)
          Sets the allowAnonymous.
 void setMode(java.lang.String mode)
          Sets the mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthConstraintDescriptor

public AuthConstraintDescriptor()
Method Detail

addRole

public void addRole(java.lang.String role)

containsRole

public boolean containsRole(java.lang.String role)

containsRoles

public boolean containsRoles(java.util.Collection roles)

getMode

public java.lang.String getMode()
Returns:
String

getRoles

public java.util.Collection getRoles()
Returns:
Collection

isAllowAnonymous

public boolean isAllowAnonymous()
Returns:
boolean

setAllowAnonymous

public void setAllowAnonymous(boolean allowAnonymous)
Sets the allowAnonymous.

Parameters:
allowAnonymous - The allowAnonymous to set

setMode

public void setMode(java.lang.String mode)
Sets the mode.

Parameters:
mode - The mode to set


Copyright © 2002 Herve Tchepannou. All Rights Reserved.