|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.controller.security.managers.impl.AbstractIdentityManager
public abstract class AbstractIdentityManager
Field Summary | |
---|---|
static String |
N_A
The 'N/A' String literal. |
Constructor Summary | |
---|---|
AbstractIdentityManager()
|
Method Summary | |
---|---|
void |
addManagedAttribute(String attribute)
Adds a managed attribute. |
void |
addManagedAttributes(String attributes)
Adds a comma-separated list of managed attributes. |
boolean |
containsUserParameter(String userID,
String parameterID)
Checks if a parameter exists. |
int |
countAllGroupsOfUser(String userId,
boolean parseGroupHierarchy)
Counts all groups of a given user. |
abstract List<String> |
gatherManagedAttributes()
Gathers the managed attributes. |
List<String> |
getManagedAttributes()
Gets the framework managed attributes. |
Map<String,IDIFGroup> |
getUserGroups(String userID,
boolean parseGroupHierarchy)
Returns the list of groups of a given user |
Set<String> |
getUserGroupsIDs(String userID,
boolean parseGroupHierarchy)
Returns the list of group IDs of a given user |
Object |
getUserParameter(String userID,
String parameterID)
Gets a given parameter from a given user. |
Map<String,Object> |
getUserParameters(String userID)
Gets all the parameters from a given user. |
boolean |
isUserInGroup(String userID,
String groupID,
boolean parseGroupHierarchy)
Checks if a given user belongs to a given group. |
void |
removeUserParameter(String userID,
String parameterID)
Removes a given parameter from a given user. |
void |
setUserParameter(String userID,
String parameterID,
Object parameterValue)
Sets an user parameter. |
void |
setUserParameters(String userID,
Map<String,Object> parametersMap)
Sets the user parameters as an whole. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pt.digitalis.dif.controller.security.managers.IIdentityManagerPrivate |
---|
persistUserAttribute, persistUserAttributes |
Field Detail |
---|
public static final String N_A
Constructor Detail |
---|
public AbstractIdentityManager()
Method Detail |
---|
public void addManagedAttribute(String attribute)
IIdentityManager
addManagedAttribute
in interface IIdentityManager
attribute
- The attributeIIdentityManager.addManagedAttribute(java.lang.String)
public void addManagedAttributes(String attributes)
IIdentityManager
addManagedAttributes
in interface IIdentityManager
attributes
- The comma-separated list of managed attributes.IIdentityManager.addManagedAttributes(java.lang.String)
public boolean containsUserParameter(String userID, String parameterID)
IIdentityManager
containsUserParameter
in interface IIdentityManager
userID
- the user IDparameterID
- the parameter ID
IIdentityManager.containsUserParameter(java.lang.String,
java.lang.String)
public int countAllGroupsOfUser(String userId, boolean parseGroupHierarchy) throws IdentityManagerException
IIdentityManager
countAllGroupsOfUser
in interface IIdentityManager
userId
- The user identifierparseGroupHierarchy
- contemplates the group Hierarchy
IdentityManagerException
IIdentityManager.countAllGroupsOfUser(java.lang.String,
boolean)
public abstract List<String> gatherManagedAttributes()
IIdentityManager
gatherManagedAttributes
in interface IIdentityManager
IIdentityManager.gatherManagedAttributes()
public List<String> getManagedAttributes()
IIdentityManager
getManagedAttributes
in interface IIdentityManager
IIdentityManager.getManagedAttributes()
public Map<String,IDIFGroup> getUserGroups(String userID, boolean parseGroupHierarchy) throws IdentityManagerException
IIdentityManager
getUserGroups
in interface IIdentityManager
userID
- the userparseGroupHierarchy
- contemplates the group Hierarchy
IdentityManagerException
- if the group's users can't be foundIIdentityManager.getUserGroups(java.lang.String, boolean)
public Set<String> getUserGroupsIDs(String userID, boolean parseGroupHierarchy) throws IdentityManagerException
IIdentityManager
getUserGroupsIDs
in interface IIdentityManager
userID
- the userparseGroupHierarchy
- contemplates the group Hierarchy
IdentityManagerException
- if the group's users can't be foundIIdentityManager.getUserGroupsIDs(java.lang.String, boolean)
public Object getUserParameter(String userID, String parameterID)
IIdentityManager
getUserParameter
in interface IIdentityManager
IIdentityManager.getUserParameter(java.lang.String,
java.lang.String)
public Map<String,Object> getUserParameters(String userID)
IIdentityManager
getUserParameters
in interface IIdentityManager
userID
- the user ID
IIdentityManager.getUserParameters(java.lang.String)
public boolean isUserInGroup(String userID, String groupID, boolean parseGroupHierarchy) throws IdentityManagerException
IIdentityManager
isUserInGroup
in interface IIdentityManager
userID
- the user IDgroupID
- the group IDparseGroupHierarchy
- contemplates the group Hierarchy
IdentityManagerException
- if the operation can't be executedIIdentityManager.isUserInGroup(java.lang.String,
java.lang.String, boolean)
public void removeUserParameter(String userID, String parameterID)
IIdentityManager
removeUserParameter
in interface IIdentityManager
userID
- the user IDparameterID
- the parameter IDIIdentityManager.removeUserParameter(java.lang.String,
java.lang.String)
public void setUserParameter(String userID, String parameterID, Object parameterValue)
IIdentityManager
setUserParameter
in interface IIdentityManager
userID
- the user IDparameterID
- the parameter IDparameterValue
- the parameter valueIIdentityManager.setUserParameter(java.lang.String,
java.lang.String, java.lang.Object)
public void setUserParameters(String userID, Map<String,Object> parametersMap)
IIdentityManager
setUserParameters
in interface IIdentityManager
userID
- the user IDparametersMap
- the parameters mapIIdentityManager.setUserParameters(java.lang.String,
java.util.Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |