@Component public class OrgStructFunctionsImpl extends Object implements OrgStructFunctions
Constructor and Description |
---|
OrgStructFunctionsImpl() |
Modifier and Type | Method and Description |
---|---|
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getManagers(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
boolean preAuthorized) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getManagers(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
String orgType,
boolean allowSelf,
boolean preAuthorized) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getManagersByOrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
String orgType,
boolean preAuthorized) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getManagersOfOrg(String orgOid,
boolean preAuthorized) |
Collection<String> |
getManagersOids(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
boolean preAuthorized)
Returns a list of user's managers.
|
Collection<String> |
getManagersOidsExceptUser(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
boolean preAuthorized) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getObject(Class<T> type,
String oid,
boolean preAuthorized) |
com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType |
getOrgByName(String name,
boolean preAuthorized) |
com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType |
getOrgByOid(String oid,
boolean preAuthorized) |
Collection<String> |
getOrgUnits(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
boolean preAuthorized) |
Collection<String> |
getOrgUnits(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
QName relation,
boolean preAuthorized) |
com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType |
getParentOrgByOrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
String orgType,
boolean preAuthorized) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> |
getParentOrgs(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
boolean preAuthorized) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> |
getParentOrgs(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
QName relation,
String orgType,
boolean preAuthorized) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> |
getParentOrgs(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
String relation,
String orgType,
boolean preAuthorized) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> |
getParentOrgsByRelation(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
QName relation,
boolean preAuthorized) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> |
getParentOrgsByRelation(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
String relation,
boolean preAuthorized) |
boolean |
isManager(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) |
boolean |
isManagerOf(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
String orgOid,
boolean preAuthorized) |
boolean |
isManagerOfOrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
String orgType,
boolean preAuthorized) |
public Collection<String> getManagersOids(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, boolean preAuthorized) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagersOids
in interface OrgStructFunctions
user
- SchemaException
ObjectNotFoundException
SecurityViolationException
public Collection<String> getManagersOidsExceptUser(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, boolean preAuthorized) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagersOidsExceptUser
in interface OrgStructFunctions
SchemaException
ObjectNotFoundException
SecurityViolationException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getManagers(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, boolean preAuthorized) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagers
in interface OrgStructFunctions
SchemaException
ObjectNotFoundException
SecurityViolationException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getManagersByOrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, String orgType, boolean preAuthorized) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagersByOrgType
in interface OrgStructFunctions
SchemaException
ObjectNotFoundException
SecurityViolationException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getManagers(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, String orgType, boolean allowSelf, boolean preAuthorized) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagers
in interface OrgStructFunctions
SchemaException
ObjectNotFoundException
SecurityViolationException
public Collection<String> getOrgUnits(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, boolean preAuthorized)
getOrgUnits
in interface OrgStructFunctions
public Collection<String> getOrgUnits(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, QName relation, boolean preAuthorized)
getOrgUnits
in interface OrgStructFunctions
public com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType getOrgByOid(String oid, boolean preAuthorized) throws SchemaException
getOrgByOid
in interface OrgStructFunctions
SchemaException
public com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType getOrgByName(String name, boolean preAuthorized) throws SchemaException, SecurityViolationException
getOrgByName
in interface OrgStructFunctions
SchemaException
SecurityViolationException
public com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType getParentOrgByOrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, String orgType, boolean preAuthorized) throws SchemaException, SecurityViolationException
getParentOrgByOrgType
in interface OrgStructFunctions
SchemaException
SecurityViolationException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> getParentOrgsByRelation(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, QName relation, boolean preAuthorized) throws SchemaException, SecurityViolationException
getParentOrgsByRelation
in interface OrgStructFunctions
SchemaException
SecurityViolationException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> getParentOrgsByRelation(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, String relation, boolean preAuthorized) throws SchemaException, SecurityViolationException
getParentOrgsByRelation
in interface OrgStructFunctions
SchemaException
SecurityViolationException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> getParentOrgs(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, boolean preAuthorized) throws SchemaException, SecurityViolationException
getParentOrgs
in interface OrgStructFunctions
SchemaException
SecurityViolationException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> getParentOrgs(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, String relation, String orgType, boolean preAuthorized) throws SchemaException, SecurityViolationException
getParentOrgs
in interface OrgStructFunctions
SchemaException
SecurityViolationException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> getParentOrgs(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object, QName relation, String orgType, boolean preAuthorized) throws SchemaException, SecurityViolationException
getParentOrgs
in interface OrgStructFunctions
SchemaException
SecurityViolationException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getManagersOfOrg(String orgOid, boolean preAuthorized) throws SchemaException, SecurityViolationException
getManagersOfOrg
in interface OrgStructFunctions
SchemaException
SecurityViolationException
public boolean isManagerOf(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, String orgOid, boolean preAuthorized)
isManagerOf
in interface OrgStructFunctions
public boolean isManager(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user)
isManager
in interface OrgStructFunctions
public boolean isManagerOfOrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, String orgType, boolean preAuthorized) throws SchemaException
isManagerOfOrgType
in interface OrgStructFunctions
SchemaException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T getObject(Class<T> type, String oid, boolean preAuthorized) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException
Copyright © 2016 evolveum. All rights reserved.