com.metamatrix.platform.security.api
Class MetaMatrixPrincipalNames

java.lang.Object
  extended by com.metamatrix.platform.security.api.MetaMatrixPrincipalNames
All Implemented Interfaces:
java.io.Serializable

public class MetaMatrixPrincipalNames
extends java.lang.Object
implements java.io.Serializable

This class wraps two Collections of String names - the first is a Collection of names of MetaMatrix user principals, the other is a Collection of group principal names. These principal names can then be used, by a client, to retrieve a MetaMatrixPrincipal object from the server.

See Also:
Serialized Form

Constructor Summary
MetaMatrixPrincipalNames(java.util.Set groupPrincipalNames, java.util.Set userPrincipalNames)
          The constructor takes two Sets of names - one of group names, one of user names.
 
Method Summary
 java.util.Collection getGroupPrincipalNames()
          Returns the names of all group principals contained in this object
 java.util.Collection getUserPrincipalNames()
          Returns the names of all user principals contained in this object
 java.lang.String toString()
          Displays the group and user names
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaMatrixPrincipalNames

public MetaMatrixPrincipalNames(java.util.Set groupPrincipalNames,
                                java.util.Set userPrincipalNames)
The constructor takes two Sets of names - one of group names, one of user names. These two sets should never be null (they can be empty), but there are no checks against null sets currently.

Method Detail

getGroupPrincipalNames

public java.util.Collection getGroupPrincipalNames()
Returns the names of all group principals contained in this object

Returns:
currently returns a Set of String names, representing group principals. However, note that this implementation may change.

getUserPrincipalNames

public java.util.Collection getUserPrincipalNames()
Returns the names of all user principals contained in this object

Returns:
currently returns a Set of String names, representing user principals. However, note that this implementation may change.

toString

public java.lang.String toString()
Displays the group and user names

Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.