|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.controller.objects.DIFUserInSession
public class DIFUserInSession
Represents a IDIFUser in session after a successful login. This class contains a IDIFUser and the password that was used by the user to login
Constructor Summary | |
---|---|
DIFUserInSession(IDIFUser user,
String password)
|
Method Summary | |
---|---|
void |
addTempGroup(String groupId)
Adds the temporary group. |
boolean |
canAccess(Entity resourceType,
String resourceId)
Checks if the user can access a given resource. |
boolean |
canAccess(IStage stage)
Checks if the user can access a given stage. |
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. |
String |
getPassword()
|
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 |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DIFUserInSession(IDIFUser user, String password)
user
- the IDIFUserpassword
- the password used to loginMethod Detail |
---|
public void addTempGroup(String groupId)
IDIFUser
addTempGroup
in interface IDIFUser
groupId
- the group idIDIFUser.addTempGroup(java.lang.String)
public boolean canAccess(Entity resourceType, String resourceId)
IUserAuthorization
canAccess
in interface IUserAuthorization
resourceType
- the resource (entity) type.resourceId
- the id of the resource to check access
IUserAuthorization.canAccess(pt.digitalis.dif.dem.Entity,
java.lang.String)
public boolean canAccess(IStage stage)
IUserAuthorization
canAccess
in interface IUserAuthorization
stage
- the stage to check
IUserAuthorization.canAccess(pt.digitalis.dif.dem.interfaces.IStage)
public void cleanCache()
IDIFUser
cleanCache
in interface IDIFUser
IDIFUser.cleanCache()
public boolean containsAttribute(String id)
IDIFUser
containsAttribute
in interface IDIFUser
id
- the id of the attribute to search
IDIFUser.containsAttribute(java.lang.String)
public boolean containsParameter(String id)
IDIFUser
containsParameter
in interface IDIFUser
id
- the id of the parameter to search
IDIFUser.containsParameter(java.lang.String)
public Object getAttribute(String id)
IDIFUser
getAttribute
in interface IDIFUser
id
- the id of the attribute
IDIFUser.getAttribute(java.lang.String)
public pt.digitalis.utils.common.collections.CaseInsensitiveHashMap<Object> getAttributes()
IDIFUser
getAttributes
in interface IDIFUser
IDIFUser.getAttributes()
public List<String> getAttributesToRemove()
IDIFUser
getAttributesToRemove
in interface IDIFUser
IDIFUser.getAttributesToRemove()
public String getEmail()
IDIFUser
getEmail
in interface IDIFUser
IDIFUser.getEmail()
public Set<String> getGroupIDs() throws IdentityManagerException
IDIFUser
getGroupIDs
in interface IDIFUser
IdentityManagerException
- if the users can't be found on the identity managerIDIFUser.getGroupIDs()
public Map<String,IDIFGroup> getGroups() throws IdentityManagerException
IDIFUser
getGroups
in interface IDIFUser
IdentityManagerException
- if the groups can't be found on the identity managerIDIFUser.getGroups()
public String getID()
IDIFUser
getID
in interface IDIFUser
IDIFUser.getID()
public String getName()
IDIFUser
getName
in interface IDIFUser
IDIFUser.getName()
public String getNick()
IDIFUser
getNick
in interface IDIFUser
IDIFUser.getNick()
public Object getParameter(String id)
IDIFUser
getParameter
in interface IDIFUser
id
- the id of the parameter
IDIFUser.getParameter(java.lang.String)
public Map<String,Object> getParameters()
IDIFUser
getParameters
in interface IDIFUser
IDIFUser.getParameters()
public String getPassword()
getPassword
in interface IDIFInternalUser
IDIFInternalUser.getPassword()
public IDIFGroup getProfile() throws IdentityManagerException
IDIFUser
getProfile
in interface IDIFUser
IdentityManagerException
- if the profile can't be found on the identity managerIDIFUser.getProfile()
public String getProfileID() throws IdentityManagerException
IDIFUser
getProfileID
in interface IDIFUser
IdentityManagerException
- if the profile can't be accessedIDIFUser.getProfileID()
public void initializeAttributes(Map<String,Object> attrs)
initializeAttributes
in interface IDIFUser
attrs
- the new attributes to setIDIFUser.initializeAttributes(java.util.Map)
public boolean isDefault()
IDIFUser
isDefault
in interface IDIFUser
IDIFUser.isDefault()
public boolean isEnabled()
IDIFUser
isEnabled
in interface IDIFUser
IDIFUser.isEnabled()
public void refresh()
IDIFUser
refresh
in interface IDIFUser
IDIFUser.refresh()
public void removeAttribute(String id)
IDIFUser
removeAttribute
in interface IDIFUser
id
- the id of the attributeIDIFUser.removeAttribute(java.lang.String)
public void removeParameter(String id)
IDIFUser
removeParameter
in interface IDIFUser
id
- the id of the parameterIDIFUser.removeParameter(java.lang.String)
public void removeTempGroup(String groupId)
IDIFUser
removeTempGroup
in interface IDIFUser
groupId
- the group idIDIFUser.removeTempGroup(java.lang.String)
public void setAttribute(String id, Object attribute) throws InternalFrameworkException
IDIFUser
setAttribute
in interface IDIFUser
id
- the id of the attributeattribute
- the attribute to set
InternalFrameworkException
- if the attribute can't be setIDIFUser.setAttribute(java.lang.String, java.lang.Object)
public void setAttributes(Map<String,Object> attributes) throws InternalFrameworkException
IDIFUser
setAttributes
in interface IDIFUser
attributes
- the attributes to set
InternalFrameworkException
- if the attribute can't be setIDIFUser.setAttributes(java.util.Map)
public void setDefault(boolean isDefault)
IDIFUser
setDefault
in interface IDIFUser
IDIFUser.setDefault(boolean)
public void setEmail(String email)
IDIFUser
setEmail
in interface IDIFUser
email
- the email to setIDIFUser.setEmail(java.lang.String)
public void setEnabled(boolean enabled)
setEnabled
in interface IDIFUser
enabled
- the enabled to setIDIFUser.setEnabled(boolean)
public void setID(String id)
IDIFUser
setID
in interface IDIFUser
id
- the id to setIDIFUser.setID(java.lang.String)
public void setName(String name)
IDIFUser
setName
in interface IDIFUser
name
- the name to setIDIFUser.setName(java.lang.String)
public void setNick(String nick)
IDIFUser
setNick
in interface IDIFUser
nick
- the nick name to setIDIFUser.setNick(java.lang.String)
public void setParameter(String id, Object parameter)
IDIFUser
setParameter
in interface IDIFUser
id
- the id of the parameterparameter
- the parameter to setIDIFUser.setParameter(java.lang.String, java.lang.Object)
public void setParameters(Map<String,Object> parameters)
IDIFUser
setParameters
in interface IDIFUser
parameters
- the parameters to setIDIFUser.setParameters(java.util.Map)
public void setPassword(String password)
IDIFUser
setPassword
in interface IDIFUser
password
- the password to setIDIFUser.setPassword(java.lang.String)
public void setProfileID(String profileGroupID)
IDIFUser
setProfileID
in interface IDIFUser
profileGroupID
- the group to set as the profileIDIFUser.setProfileID(java.lang.String)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |