Class UserSettingsImpl
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<E,I>
-
- org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<UserSettingsImpl,UniqueIntegerIdentifier>
-
- org.silverpeas.core.workflow.engine.user.UserSettingsImpl
-
- All Implemented Interfaces:
Serializable
,IdentifiableEntity
,UserSettings
@Entity public class UserSettingsImpl extends BasicJpaEntity<UserSettingsImpl,UniqueIntegerIdentifier> implements UserSettings
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserSettingsImpl()
Default ConstructorUserSettingsImpl(String userId, String peasId)
UserSettingsImpl can be constructed with given user Id and peas Id
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComponentId()
String
getUserId()
UserInfo
getUserInfo(String name)
List<UserInfo>
getUserInfos()
boolean
isValid()
return true if userInfos is not emptyvoid
load(DataRecord data, RecordTemplate template)
Fill the given data record with user informationvoid
reset()
-
Methods inherited from class org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity
performBeforePersist, performBeforeRemove, performBeforeUpdate
-
Methods inherited from class org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity
equals, getId, getNativeId, hashCode, isPersisted, setId
-
-
-
-
Method Detail
-
isValid
public boolean isValid()
return true if userInfos is not empty- Specified by:
isValid
in interfaceUserSettings
-
reset
public void reset()
-
getUserId
public String getUserId()
- Specified by:
getUserId
in interfaceUserSettings
-
getComponentId
public String getComponentId()
- Specified by:
getComponentId
in interfaceUserSettings
-
getUserInfo
public UserInfo getUserInfo(String name)
- Specified by:
getUserInfo
in interfaceUserSettings
- Returns:
- UserInfo
-
getUserInfos
public List<UserInfo> getUserInfos()
- Specified by:
getUserInfos
in interfaceUserSettings
-
load
public void load(DataRecord data, RecordTemplate template)
Fill the given data record with user information- Specified by:
load
in interfaceUserSettings
- Parameters:
data
- the data recordtemplate
- the record template
-
-