U
- as UserAttribute
public interface UserAttributesDao<U extends UserAttribute> extends ConfigurationSource<String,Object>
save(String, Map)
does not support UserAttribute
type value and only pure String, even though there is a getAttributes(String)
.UserAttribute
contains the userId and the AbstractUserAttribute.getName()
; so the map itself as input is redundant. The API caller is expected to
convert the Map --> List<UserAttribute> --> forEach #save(UserAttribute)
NAMESPACE_DELIM
Modifier and Type | Method and Description |
---|---|
void |
delete(String userNameId) |
void |
delete(U ua) |
Map<String,U> |
getAttributes(String userNameId) |
U |
getUserAttribute(String userNameId,
String attibuteName) |
U |
getUserAttribute(String userNameId,
String attibuteName,
Class<U> type) |
String |
getValue(String userNameId,
String attibuteName)
For a given user and attribute name load the
UserAttribute Note: UserAttribute s have to have a unique attribute name and userId combination. |
Map<String,String> |
getValues(String userNameId) |
U |
load(String userId,
String attributeName)
For a given user and attribute name load the
UserAttribute Note: UserAttribute s have to have a unique attribute name and userId combination. |
void |
save(String userNameId,
Map<String,String> attributes)
Note: If you already have a Map of key , value where the value is of type
UserAttribute then please refer to the class level JavaDoc
as this will attempt to re-create the UserAttribute object. |
U |
save(U ua) |
get, get, get
String getValue(String userNameId, String attibuteName)
UserAttribute
UserAttribute
s have to have a unique attribute name and userId combination. So different attribute types do not matter when identifying an attribute.userId
- as StringattributeName
- as StringAbstractUserAttribute.getValue()
void save(String userNameId, Map<String,String> attributes)
UserAttribute
then please refer to the class level JavaDoc
as this will attempt to re-create the UserAttribute
object.userNameId
- as Stringattributes
- void delete(String userNameId)
U load(String userId, String attributeName)
UserAttribute
UserAttribute
s have to have a unique attribute name and userId combination. So different attribute types do not matter when identifying an attribute.userId
- as StringattributeName
- as StringUserAttribute
void delete(U ua)
Copyright © 2018. All rights reserved.