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$

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.
 Collection<Principal> getCollection()
           
 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.


getCollection

Collection<Principal> getCollection()


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.