com.silverpeas.workflow.engine.user
Class UserSettingsImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.user.UserSettingsImpl
All Implemented Interfaces:
UserSettings

public class UserSettingsImpl
extends Object
implements UserSettings


Constructor Summary
UserSettingsImpl()
          Default Constructor
UserSettingsImpl(String userId, String peasId)
          UserSettingsImpl can be constructed with given user Id and peas Id
 
Method Summary
 Vector<UserInfo> castor_getUserInfos()
          Get the settings user informations
 void castor_setUserInfos(Vector<UserInfo> userInfos)
          Set the settings user informations
 String getPeasId()
          Get the peas id
 String getSettingsId()
          For persistence in database Get this object id
 String getUserId()
          Get the user id
 UserInfo getUserInfo(String name)
           
 UserInfo[] getUserInfos()
           
 boolean isValid()
          return true if userInfos is not empty
 void load(DataRecord data, RecordTemplate template)
          Fill the given data record with user information
 void reset()
          Remove all user infos
 void save()
          Saves this settings in database
 void setPeasId(String peasId)
          Set the peas id
 void setSettingsId(String settingsId)
          For persistence in database Set this object id
 void setUserId(String userId)
          Set the user id
 void update(DataRecord data, RecordTemplate template)
          Update the settings with a given DataRecord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserSettingsImpl

public UserSettingsImpl()
Default Constructor


UserSettingsImpl

public UserSettingsImpl(String userId,
                        String peasId)
UserSettingsImpl can be constructed with given user Id and peas Id

Method Detail

isValid

public boolean isValid()
return true if userInfos is not empty

Specified by:
isValid in interface UserSettings

getSettingsId

public String getSettingsId()
For persistence in database Get this object id

Specified by:
getSettingsId in interface UserSettings
Returns:
this object id

setSettingsId

public void setSettingsId(String settingsId)
For persistence in database Set this object id

Parameters:
settingsId - this object id

getUserId

public String getUserId()
Get the user id

Specified by:
getUserId in interface UserSettings
Returns:
user id

setUserId

public void setUserId(String userId)
Set the user id

Parameters:
userId - user id

getPeasId

public String getPeasId()
Get the peas id

Specified by:
getPeasId in interface UserSettings
Returns:
peas id

setPeasId

public void setPeasId(String peasId)
Set the peas id

Parameters:
peasId - peas id

reset

public void reset()
Remove all user infos


getUserInfos

public UserInfo[] getUserInfos()
Specified by:
getUserInfos in interface UserSettings
Returns:
UserInfo[]

getUserInfo

public UserInfo getUserInfo(String name)
Specified by:
getUserInfo in interface UserSettings
Returns:
UserInfo

save

public void save()
          throws WorkflowException
Saves this settings in database

Specified by:
save in interface UserSettings
Throws:
WorkflowException

update

public void update(DataRecord data,
                   RecordTemplate template)
Update the settings with a given DataRecord

Specified by:
update in interface UserSettings
Parameters:
data - the data record
template - the record template

load

public void load(DataRecord data,
                 RecordTemplate template)
Fill the given data record with user information

Specified by:
load in interface UserSettings
Parameters:
data - the data record
template - the record template

castor_setUserInfos

public void castor_setUserInfos(Vector<UserInfo> userInfos)
Set the settings user informations

Parameters:
userInfos - user informations

castor_getUserInfos

public Vector<UserInfo> castor_getUserInfos()
Get the settings user informations

Returns:
user informations as a Vector


Copyright © 2016 Silverpeas. All Rights Reserved.