info.magnolia.cms.security.auth
Interface PrincipalCollection

All Superinterfaces:
Iterable<Principal>, Principal, Serializable
All Known Implementing Classes:
PrincipalCollectionImpl, PrincipalCollectionImpl

public interface PrincipalCollection
extends Principal, Serializable, Iterable<Principal>

A collection of principals.

Author:
Sameer Charles $Id: PrincipalCollection.java 50045 2011-10-13 18:39:13Z tmattsson $

Method Summary
 void add(Principal principal)
           
 void addAll(Collection<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()
           
 Iterator<Principal> iterator()
           
 void remove(Principal principal)
           
 void set(Collection<Principal> 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<Principal> collection)

add

void add(Principal principal)

addAll

void addAll(Collection<Principal> principal)

remove

void remove(Principal principal)

clearAll

void clearAll()

contains

boolean contains(Principal principal)

iterator

Iterator<Principal> iterator()
Specified by:
iterator in interface Iterable<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-2012 Magnolia International Ltd.. All Rights Reserved.