com.wewebu.ow.server.util.ldap
Class OwLDAPUserInfo

java.lang.Object
  extended by com.wewebu.ow.server.util.ldap.OwLDAPUserInfo
All Implemented Interfaces:
OwBaseUserInfo, OwUserInfo

public class OwLDAPUserInfo
extends Object
implements OwUserInfo

LDAP backed user info.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
4.0.0.0

Constructor Summary
OwLDAPUserInfo(String userLoginName, String distinguishedName)
           
 
Method Summary
 Collection getGroups()
          get a list with group information the user is assigned to
 Collection getRoleNames()
          get a string list of role names for this user
 String getUserDisplayName()
          get the user display name.
 String getUserEmailAdress()
          get the user eMail Address
 String getUserID()
          get the user unique persistent ID, which does not change even when name changes
 String getUserLongName()
          get name of logged in user in the long descriptive form
 String getUserName()
          get the user login
 String getUserShortName()
          get the user short name.
 boolean isGroup()
          flag indication, that user info actually designates a group rather than a single user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwLDAPUserInfo

public OwLDAPUserInfo(String userLoginName,
                      String distinguishedName)
Parameters:
userLoginName -
distinguishedName -
Method Detail

getUserLongName

public String getUserLongName()
                       throws Exception
Description copied from interface: OwBaseUserInfo
get name of logged in user in the long descriptive form

Specified by:
getUserLongName in interface OwBaseUserInfo
Returns:
String user name
Throws:
Exception

getUserName

public String getUserName()
                   throws Exception
Description copied from interface: OwBaseUserInfo
get the user login

Specified by:
getUserName in interface OwBaseUserInfo
Returns:
String user login
Throws:
Exception

getUserDisplayName

public String getUserDisplayName()
                          throws Exception
Description copied from interface: OwBaseUserInfo
get the user display name.

Specified by:
getUserDisplayName in interface OwBaseUserInfo
Returns:
String the user display name or null if the display name can not be obtained.
Throws:
Exception

getUserShortName

public String getUserShortName()
                        throws Exception
Description copied from interface: OwBaseUserInfo
get the user short name.

Specified by:
getUserShortName in interface OwBaseUserInfo
Returns:
String the user short name or null if the short name can not be obtained.
Throws:
Exception

getUserEmailAdress

public String getUserEmailAdress()
                          throws Exception
Description copied from interface: OwBaseUserInfo
get the user eMail Address

Specified by:
getUserEmailAdress in interface OwBaseUserInfo
Returns:
String user eMail
Throws:
Exception

getUserID

public String getUserID()
Description copied from interface: OwBaseUserInfo
get the user unique persistent ID, which does not change even when name changes

Specified by:
getUserID in interface OwBaseUserInfo
Returns:
String unique persistent ID

getRoleNames

public Collection getRoleNames()
                        throws Exception
Description copied from interface: OwBaseUserInfo
get a string list of role names for this user

Specified by:
getRoleNames in interface OwBaseUserInfo
Returns:
java.util.List of string role names
Throws:
Exception

getGroups

public Collection getGroups()
                     throws Exception
Description copied from interface: OwBaseUserInfo
get a list with group information the user is assigned to

Specified by:
getGroups in interface OwBaseUserInfo
Returns:
java.util.List of OwUserInfo
Throws:
Exception

isGroup

public boolean isGroup()
                throws Exception
Description copied from interface: OwBaseUserInfo
flag indication, that user info actually designates a group rather than a single user

Specified by:
isGroup in interface OwBaseUserInfo
Returns:
true = group otherwise user
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.