com.fatwire.assetapi.site
Interface User


public interface User

An Object that represents a Content Server user


Method Summary
 java.util.List<java.lang.String> getACLs()
          Get the current user's ACLs
 java.lang.String getEmail()
          Gets the user email
 java.util.List<java.lang.String> getGroups()
          Get the user's security Groups
 java.lang.String getId()
          Gets the user id
 java.sql.Timestamp getLastLoggedIn()
          Get the last logged in time for the user.
 java.util.Locale getLocalePreference()
          Get the prefered Locale for the user
 java.lang.String getName()
          Gets the username
 java.util.Map<java.lang.String,java.lang.String> getOtherAttributes()
           
 java.lang.String getPassword()
          Gets the encrypted password
 java.util.List<java.lang.String> getRoles(java.lang.String site)
          Gets the user roles for a given site
 java.util.Set<java.lang.String> getSites()
          Gets the list of site that the user could access
 java.lang.String getUserImage()
          Gets the user image
 java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getUserProperties()
          Gets the user general properties
 void setACLs(java.util.List<java.lang.String> ACLs)
          Set the user's ACL
 void setEmail(java.lang.String email)
          Sets the user email
 void setId(java.lang.String id)
          Sets the user id
 void setLastLoggedIn(java.sql.Timestamp lastTime)
          Sets the last logged in time for the user
 void setLocalePreference(java.util.Locale locale)
          Sets the perfered Local for the user
 void setName(java.lang.String name)
          Sets the username
 void setPassword(java.lang.String password)
          Sets the encrypted password
 void setRoles(java.lang.String site, java.util.List<java.lang.String> roles)
          Sets the user roles for a given site, passing null or empty list for roles will result in the user being deleted from the site
 void setUserImage(java.lang.String base64)
          Sets the user image as base 64 String
 

Method Detail

getName

java.lang.String getName()
Gets the username

Returns:
the String username

setName

void setName(java.lang.String name)
Sets the username

Parameters:
name - the String username

getPassword

java.lang.String getPassword()
Gets the encrypted password

Returns:
the String format of the encrypted password

setPassword

void setPassword(java.lang.String password)
Sets the encrypted password

Parameters:
password - the String format of the encrypted password

getUserImage

java.lang.String getUserImage()
Gets the user image

Returns:
the base64 string for user image.

setUserImage

void setUserImage(java.lang.String base64)
Sets the user image as base 64 String

Parameters:
base64 - the base64 string for user image.

getSites

java.util.Set<java.lang.String> getSites()
Gets the list of site that the user could access

Returns:
the list of Site ids

getRoles

java.util.List<java.lang.String> getRoles(java.lang.String site)
Gets the user roles for a given site

Parameters:
site - there site where the roles would be get for this current user
Returns:
the list of role names for this user at the given site

setRoles

void setRoles(java.lang.String site,
              java.util.List<java.lang.String> roles)
Sets the user roles for a given site, passing null or empty list for roles will result in the user being deleted from the site

Parameters:
site - the site to set the user roles
roles - the role lists

getId

java.lang.String getId()
Gets the user id

Returns:
the user id

setId

void setId(java.lang.String id)
Sets the user id

Parameters:
id - the user id

getEmail

java.lang.String getEmail()
Gets the user email

Returns:
the user email

setEmail

void setEmail(java.lang.String email)
Sets the user email

Parameters:
email - the email

getLocalePreference

java.util.Locale getLocalePreference()
Get the prefered Locale for the user

Returns:
the Locale

setLocalePreference

void setLocalePreference(java.util.Locale locale)
Sets the perfered Local for the user

Parameters:
locale - the Locale

getUserProperties

java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getUserProperties()
Gets the user general properties

Returns:
the property map

setLastLoggedIn

void setLastLoggedIn(java.sql.Timestamp lastTime)
Sets the last logged in time for the user

Parameters:
lastTime -

getLastLoggedIn

java.sql.Timestamp getLastLoggedIn()
Get the last logged in time for the user.

Returns:
timestamp

getACLs

java.util.List<java.lang.String> getACLs()
Get the current user's ACLs

Returns:
the user ACL list

setACLs

void setACLs(java.util.List<java.lang.String> ACLs)
Set the user's ACL

Parameters:
ACLs - the ACL list

getGroups

java.util.List<java.lang.String> getGroups()
Get the user's security Groups

Returns:
the user Group list

getOtherAttributes

java.util.Map<java.lang.String,java.lang.String> getOtherAttributes()


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.