com.ibm.mashups.enabler.user
Interface User

All Superinterfaces:
Entity, Identifiable

public User
extends Entity

Interface representing a user


Method Summary
 String getLoginName()
           Returns the user LDAP principalName attribute
 String getSN()
           Returns the user LDAP SN attribute
 String getEmail()
           Returns a String representation of the user's email
 String setAttribute(String name, String value)
           Sets the value for the attribute identified by the specified name.
 String removeAttribute(String name)
           Removes the attribute identified with the specified name.
 
Methods inherited from interface com.ibm.mashups.enabler.user.Entity
getDisplayName, getCN, getAttribute, getReadOnlyAttributeNames, getReadWriteAttributeNames, getAttributeNames, isVirtual, getVirtualType, getEntityType
 
Methods inherited from interface com.ibm.mashups.enabler.Identifiable
getID
 

Method Detail

getLoginName

String getLoginName()
Returns the user LDAP principalName attribute

Returns:
the login name; may be null.

getSN

String getSN()
Returns the user LDAP SN attribute

Returns:
the value of the SN attribute; may be null.

getEmail

String getEmail()
Returns a String representation of the user's email

Returns:
the user's email; may be null.

setAttribute

String setAttribute(String name,
                    String value)
Sets the value for the attribute identified by the specified name.

Parameters:
name - name of attribute to set the value for; must not be null
value - attribute value to set; must not be null
Returns:
the former value for the name; if none existed, null is returned

removeAttribute

String removeAttribute(String name)
Removes the attribute identified with the specified name.

Parameters:
name - name of attribute to remove; must not be null
Returns:
the former value for the name; if none existed, null is returned


Copyright IBM Corp. 2010 All Rights Reserved.