org.jboss.picketlink.idm.model
Interface IdentityType

All Known Subinterfaces:
Group, Role, User
All Known Implementing Classes:
AbstractIdentityType, SimpleGroup, SimpleRole, SimpleUser

public interface IdentityType

IdentityObject


Method Summary
 String getAttribute(String name)
           
 Map<String,String[]> getAttributes()
           
 String[] getAttributeValues(String name)
           
 Date getCreationDate()
           
 Date getExpirationDate()
           
 String getKey()
           
 boolean isEnabled()
           
 void removeAttribute(String name)
          Remove attribute with given name
 void setAttribute(String name, String value)
          Set attribute with given name and value.
 void setAttribute(String name, String[] values)
          Set attribute with given name and values.
 

Method Detail

getKey

String getKey()

isEnabled

boolean isEnabled()

getExpirationDate

Date getExpirationDate()

getCreationDate

Date getCreationDate()

setAttribute

void setAttribute(String name,
                  String value)
Set attribute with given name and value. Operation will overwrite any previous value. Null value will remove attribute.

Parameters:
name - of attribute
value - to be set

setAttribute

void setAttribute(String name,
                  String[] values)
Set attribute with given name and values. Operation will overwrite any previous values. Null value or empty array will remove attribute.

Parameters:
name - of attribute
values - to be set

removeAttribute

void removeAttribute(String name)
Remove attribute with given name

Parameters:
name - of attribute

getAttribute

String getAttribute(String name)
Parameters:
name - of attribute
Returns:
attribute values or null if attribute with given name doesn't exist. If given attribute has many values method will return first one

getAttributeValues

String[] getAttributeValues(String name)
Parameters:
name - of attribute
Returns:
attribute values or null if attribute with given name doesn't exist

getAttributes

Map<String,String[]> getAttributes()
Returns:
map of attribute names and their values


Copyright © 2012. All Rights Reserved.