info.magnolia.cms.security.auth
Interface PrincipalCollection

All Superinterfaces:
Principal, Serializable
All Known Implementing Classes:
PrincipalCollectionImpl

public interface PrincipalCollection
extends Principal, Serializable

A collection of principals.

Author:
Sameer Charles $Id: PrincipalCollection.java 41137 2011-01-06 18:19:25Z gjoseph $

Method Summary
 void add(Principal principal)
           
 void clearAll()
           
 boolean contains(Principal principal)
           
 boolean contains(String name)
          Checks if this collection contains object with the specified name.
 Principal get(String name)
          Get principal associated to the specified name from the collection.
 String getName()
           
 void remove(Principal principal)
           
 void set(Collection collection)
           
 void setName(String name)
           
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Method Detail

getName

String getName()
Specified by:
getName in interface Principal

setName

void setName(String name)

set

void set(Collection collection)

add

void add(Principal principal)

remove

void remove(Principal principal)

clearAll

void clearAll()

contains

boolean contains(Principal principal)

contains

boolean contains(String name)
Checks if this collection contains object with the specified name.


get

Principal get(String name)
Get principal associated to the specified name from the collection.



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.