com.wewebu.ow.server.ecmimpl.owdummy
Class OwDummyUserInfo

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.owdummy.OwDummyUserInfo
All Implemented Interfaces:
com.wewebu.ow.server.conf.OwBaseUserInfo, com.wewebu.ow.server.ecm.OwUserInfo

public class OwDummyUserInfo
extends Object
implements com.wewebu.ow.server.ecm.OwUserInfo

Dummy Implementation for user information, used by credentials.

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


Constructor Summary
OwDummyUserInfo(String userName_p)
           
 
Method Summary
 Collection getGroups()
          get a list with group info the user is assigned to
 Collection getRoleNames()
          get a string list of role names for this user
 String getUserDisplayName()
           
 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()
           
 boolean isGroup()
          flag indication, that user info actually designates a group rather than a single user
 void setEmailAddress(String emailAddress_p)
           
 void setGroup(boolean isGroup_p)
           
 void setRoleNames(Collection roleNames_p)
           
 void setStrLongUserName(String strLongUserName_p)
           
 void setUserId(String userId_p)
           
 void setUserName(String userName_p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwDummyUserInfo

public OwDummyUserInfo(String userName_p)
Method Detail

setEmailAddress

public void setEmailAddress(String emailAddress_p)
Parameters:
emailAddress_p - The emailAddress to set.

setGroup

public void setGroup(boolean isGroup_p)
Parameters:
isGroup_p - The isGroup to set.

setStrLongUserName

public void setStrLongUserName(String strLongUserName_p)
Parameters:
strLongUserName_p - The strLongUserName to set.

setUserId

public void setUserId(String userId_p)
Parameters:
userId_p - The userId to set.

setUserName

public void setUserName(String userName_p)
Parameters:
userName_p - The userName to set.

getUserLongName

public String getUserLongName()
                       throws Exception
get name of logged in user in the long descriptive form

Specified by:
getUserLongName in interface com.wewebu.ow.server.conf.OwBaseUserInfo
Returns:
String user name
Throws:
Exception

getUserName

public String getUserName()
                   throws Exception
get the user login

Specified by:
getUserName in interface com.wewebu.ow.server.conf.OwBaseUserInfo
Returns:
String user login
Throws:
Exception

getUserEmailAdress

public String getUserEmailAdress()
                          throws Exception
get the user eMail Address

Specified by:
getUserEmailAdress in interface com.wewebu.ow.server.conf.OwBaseUserInfo
Returns:
String user eMail
Throws:
Exception

getUserID

public String getUserID()
get the user unique persistent ID, which does not change even when name changes

Specified by:
getUserID in interface com.wewebu.ow.server.conf.OwBaseUserInfo
Returns:
String unique persistent ID

getRoleNames

public Collection getRoleNames()
                        throws Exception
get a string list of role names for this user

Specified by:
getRoleNames in interface com.wewebu.ow.server.conf.OwBaseUserInfo
Returns:
java.util.List of string role names
Throws:
Exception

getGroups

public Collection getGroups()
                     throws Exception
get a list with group info the user is assigned to

Specified by:
getGroups in interface com.wewebu.ow.server.conf.OwBaseUserInfo
Returns:
java.util.List of OwUserInfo
Throws:
Exception

setRoleNames

public void setRoleNames(Collection roleNames_p)
Parameters:
roleNames_p - The roleNames to set.

isGroup

public boolean isGroup()
                throws Exception
flag indication, that user info actually designates a group rather than a single user

Specified by:
isGroup in interface com.wewebu.ow.server.conf.OwBaseUserInfo
Returns:
true = group otherwise user
Throws:
Exception

getUserDisplayName

public String getUserDisplayName()
                          throws Exception
Specified by:
getUserDisplayName in interface com.wewebu.ow.server.conf.OwBaseUserInfo
Throws:
Exception

getUserShortName

public String getUserShortName()
                        throws Exception
Specified by:
getUserShortName in interface com.wewebu.ow.server.conf.OwBaseUserInfo
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.