|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDIFUser
Defines the DIF user features interface
Method Summary | |
---|---|
void |
addTempGroup(String groupId)
Adds the temporary group. |
void |
cleanCache()
Clears any existing cache |
boolean |
containsAttribute(String id)
Searches for a given attribute |
boolean |
containsParameter(String id)
Searches for a given parameter |
Object |
getAttribute(String id)
Gets the user attribute. |
pt.digitalis.utils.common.collections.CaseInsensitiveHashMap<Object> |
getAttributes()
Gets the user attribute list. |
List<String> |
getAttributesToRemove()
Inspector for the 'attributesToRemove' attribute. |
String |
getEmail()
Returns the user e-mail address. |
Set<String> |
getGroupIDs()
Retrieves the list of group ids associated with this user |
Map<String,IDIFGroup> |
getGroups()
Retrieves the list of groups associated with this user |
String |
getID()
Returns the user id. |
String |
getName()
Returns the user full name. |
String |
getNick()
Returns the user's nick name. |
Object |
getParameter(String id)
Gets a user parameter. |
Map<String,Object> |
getParameters()
Gets the user parameter list. |
IDIFGroup |
getProfile()
Retrieves the user profile or default group |
String |
getProfileID()
Retrieves the user profile or default group ID |
void |
initializeAttributes(Map<String,Object> attrs)
|
boolean |
isDefault()
A default user is a user that is created by the default configuration of the application. |
boolean |
isEnabled()
A disabled user will not be able to log on |
void |
refresh()
Refreshes the current user from the persistent layer |
void |
removeAttribute(String id)
Removes the user attribute. |
void |
removeParameter(String id)
Removes the user parameter. |
void |
removeTempGroup(String groupId)
Removes the temporary group. |
void |
setAttribute(String id,
Object attribute)
Sets the user attribute. |
void |
setAttributes(Map<String,Object> attributes)
Sets the attributes. |
void |
setDefault(boolean isDefault)
Sets the user as a default user. |
void |
setEmail(String email)
Sets the user e-mail address. |
void |
setEnabled(boolean enabled)
|
void |
setID(String id)
Sets the user id. |
void |
setName(String name)
Sets the user full name. |
void |
setNick(String nick)
Sets the user nick name. |
void |
setParameter(String id,
Object parameter)
Sets the user parameters. |
void |
setParameters(Map<String,Object> parameters)
Sets the parameters. |
void |
setPassword(String password)
Sets the user password. |
void |
setProfileID(String profileGroupID)
Sets the profile ID or default group of the user |
Methods inherited from interface pt.digitalis.dif.controller.security.objects.IUserAuthorization |
---|
canAccess, canAccess |
Method Detail |
---|
void addTempGroup(String groupId)
groupId
- the group idvoid cleanCache()
boolean containsAttribute(String id)
id
- the id of the attribute to search
boolean containsParameter(String id)
id
- the id of the parameter to search
Object getAttribute(String id)
id
- the id of the attribute
pt.digitalis.utils.common.collections.CaseInsensitiveHashMap<Object> getAttributes()
List<String> getAttributesToRemove()
String getEmail()
Set<String> getGroupIDs() throws IdentityManagerException
IdentityManagerException
- if the users can't be found on the identity managerMap<String,IDIFGroup> getGroups() throws IdentityManagerException
IdentityManagerException
- if the groups can't be found on the identity managerString getID()
String getName()
String getNick()
Object getParameter(String id)
id
- the id of the parameter
Map<String,Object> getParameters()
IDIFGroup getProfile() throws IdentityManagerException
IdentityManagerException
- if the profile can't be found on the identity managerString getProfileID() throws IdentityManagerException
IdentityManagerException
- if the profile can't be accessedvoid initializeAttributes(Map<String,Object> attrs)
attrs
- the new attributes to setboolean isDefault()
boolean isEnabled()
void refresh()
void removeAttribute(String id)
id
- the id of the attributevoid removeParameter(String id)
id
- the id of the parametervoid removeTempGroup(String groupId)
groupId
- the group idvoid setAttribute(String id, Object attribute) throws InternalFrameworkException
id
- the id of the attributeattribute
- the attribute to set
InternalFrameworkException
- if the attribute can't be setvoid setAttributes(Map<String,Object> attributes) throws InternalFrameworkException
attributes
- the attributes to set
InternalFrameworkException
- if the attribute can't be setvoid setDefault(boolean isDefault)
isDefault
- void setEmail(String email)
email
- the email to setvoid setEnabled(boolean enabled)
enabled
- the enabled to setvoid setID(String id)
id
- the id to setvoid setName(String name)
name
- the name to setvoid setNick(String nick)
nick
- the nick name to setvoid setParameter(String id, Object parameter)
id
- the id of the parameterparameter
- the parameter to setvoid setParameters(Map<String,Object> parameters)
parameters
- the parameters to setvoid setPassword(String password)
password
- the password to setvoid setProfileID(String profileGroupID)
profileGroupID
- the group to set as the profile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |