Class OrgStructFunctionsImpl
java.lang.Object
com.evolveum.midpoint.model.impl.expr.OrgStructFunctionsImpl
- All Implemented Interfaces:
- OrgStructFunctions
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetManagers(UserType user, boolean preAuthorized) getManagers(UserType user, String orgType, boolean allowSelf, boolean preAuthorized) getManagersByOrgType(UserType user, String orgType, boolean preAuthorized) getManagersOfOrg(String orgOid, boolean preAuthorized) getManagersOids(UserType user, boolean preAuthorized) Returns a list of user's managers.getManagersOidsExceptUser(@NotNull Collection<ObjectReferenceType> userRefList, boolean preAuthorized) getManagersOidsExceptUser(UserType user, boolean preAuthorized) <T extends ObjectType>
 TgetOrgByName(String name, boolean preAuthorized) getOrgByOid(String oid, boolean preAuthorized) getOrgUnits(UserType user, boolean preAuthorized) getOrgUnits(UserType user, QName relation, boolean preAuthorized) getParentOrgByArchetype(ObjectType object, String archetypeOid, boolean preAuthorized) getParentOrgByOrgType(ObjectType object, String orgType, boolean preAuthorized) getParentOrgs(ObjectType object, boolean preAuthorized) getParentOrgs(ObjectType object, String relation, String orgType, boolean preAuthorized) getParentOrgs(ObjectType object, QName relation, @NotNull Predicate<OrgType> predicate, boolean preAuthorized) getParentOrgs(ObjectType object, QName relation, String orgType, boolean preAuthorized) getParentOrgsByRelation(ObjectType object, String relation, boolean preAuthorized) getParentOrgsByRelation(ObjectType object, QName relation, boolean preAuthorized) booleanbooleanisManagerOf(UserType user, String orgOid, boolean preAuthorized) booleanisManagerOfOrgType(UserType user, String orgType, boolean preAuthorized) 
- 
Constructor Details- 
OrgStructFunctionsImplpublic OrgStructFunctionsImpl()
 
- 
- 
Method Details- 
getManagersOidspublic Collection<String> getManagersOids(UserType user, boolean preAuthorized) throws SchemaException, SecurityViolationException Returns a list of user's managers. Formally, for each Org O which this user has (any) relation to, all managers of O are added to the result. Some customizations are probably necessary here, e.g. filter out project managers (keep only line managers), or defining who is a manager of a user who is itself a manager in its org.unit. (A parent org unit manager, perhaps.)- Specified by:
- getManagersOidsin interface- OrgStructFunctions
- Returns:
- list of oids of the respective managers
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getManagersOidsExceptUserpublic Collection<String> getManagersOidsExceptUser(UserType user, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getManagersOidsExceptUserin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getManagersOidsExceptUserpublic Collection<String> getManagersOidsExceptUser(@NotNull @NotNull Collection<ObjectReferenceType> userRefList, boolean preAuthorized) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException 
- 
getManagerspublic Collection<UserType> getManagers(UserType user, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getManagersin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getManagersByOrgTypepublic Collection<UserType> getManagersByOrgType(UserType user, String orgType, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getManagersByOrgTypein interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getManagerspublic Collection<UserType> getManagers(UserType user, String orgType, boolean allowSelf, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getManagersin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getOrgUnits- Specified by:
- getOrgUnitsin interface- OrgStructFunctions
 
- 
getOrgUnits- Specified by:
- getOrgUnitsin interface- OrgStructFunctions
 
- 
getOrgByOid- Specified by:
- getOrgByOidin interface- OrgStructFunctions
- Throws:
- SchemaException
 
- 
getOrgByNamepublic OrgType getOrgByName(String name, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getOrgByNamein interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getParentOrgByOrgTypepublic OrgType getParentOrgByOrgType(ObjectType object, String orgType, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getParentOrgByOrgTypein interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getParentOrgByArchetypepublic OrgType getParentOrgByArchetype(ObjectType object, String archetypeOid, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getParentOrgByArchetypein interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getParentOrgsByRelationpublic Collection<OrgType> getParentOrgsByRelation(ObjectType object, QName relation, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getParentOrgsByRelationin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getParentOrgsByRelationpublic Collection<OrgType> getParentOrgsByRelation(ObjectType object, String relation, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getParentOrgsByRelationin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getParentOrgspublic Collection<OrgType> getParentOrgs(ObjectType object, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getParentOrgsin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getParentOrgspublic Collection<OrgType> getParentOrgs(ObjectType object, String relation, String orgType, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getParentOrgsin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getParentOrgspublic Collection<OrgType> getParentOrgs(ObjectType object, QName relation, String orgType, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getParentOrgsin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getParentOrgspublic Collection<OrgType> getParentOrgs(ObjectType object, QName relation, @NotNull @NotNull Predicate<OrgType> predicate, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getParentOrgsin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
getManagersOfOrgpublic Collection<UserType> getManagersOfOrg(String orgOid, boolean preAuthorized) throws SchemaException, SecurityViolationException - Specified by:
- getManagersOfOrgin interface- OrgStructFunctions
- Throws:
- SchemaException
- SecurityViolationException
 
- 
isManagerOf- Specified by:
- isManagerOfin interface- OrgStructFunctions
 
- 
isManager- Specified by:
- isManagerin interface- OrgStructFunctions
 
- 
isManagerOfOrgTypepublic boolean isManagerOfOrgType(UserType user, String orgType, boolean preAuthorized) throws SchemaException - Specified by:
- isManagerOfOrgTypein interface- OrgStructFunctions
- Throws:
- SchemaException
 
- 
getObjectpublic <T extends ObjectType> T getObject(Class<T> type, String oid, boolean preAuthorized) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException 
 
-