@Component public class MidpointFunctionsImpl extends Object implements MidpointFunctions
Constructor and Description |
---|
MidpointFunctionsImpl() |
Modifier and Type | Method and Description |
---|---|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(PrismObject<T> newObject) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(PrismObject<T> newObject,
ModelExecuteOptions options) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(T newObject) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(T newObject,
ModelExecuteOptions options) |
<T> Integer |
countAccounts(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
QName attributeName,
T attributeValue) |
<T> Integer |
countAccounts(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
String attributeName,
T attributeValue) |
<T> Integer |
countAccounts(String resourceOid,
QName attributeName,
T attributeValue) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
countObjects(Class<T> type,
ObjectQuery query)
Count objects.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
countObjects(Class<T> type,
ObjectQuery query,
Collection<SelectorOptions<GetOperationOptions>> options)
Count objects.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createEmptyObject(Class<T> type)
Creates empty prism object of specified type in memory.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createEmptyObjectWithName(Class<T> type,
PolyString name)
Creates empty prism object of specified type and with specified name in memory.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createEmptyObjectWithName(Class<T> type,
PolyStringType name)
Creates empty prism object of specified type and with specified name in memory.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
createEmptyObjectWithName(Class<T> type,
String name)
Creates empty prism object of specified type and with specified name in memory.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
deleteObject(Class<T> type,
String oid) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
deleteObject(Class<T> type,
String oid,
ModelExecuteOptions options) |
void |
executeChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas)
Execute the provided object deltas.
|
void |
executeChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas,
ModelExecuteOptions options)
Execute the provided object deltas.
|
void |
executeChanges(ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>... deltas)
Execute the provided object deltas.
|
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
findShadowOwner(String accountOid)
Returns the User object representing owner of specified account (account
shadow).
|
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType |
getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) |
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType |
getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
boolean repositoryObjectOnly) |
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType |
getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus,
String resourceOid) |
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType |
getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus,
String resourceOid,
boolean repositoryObjectOnly) |
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType |
getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus,
String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType |
getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus,
String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent,
boolean repositoryObjectOnly) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getManagers(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) |
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) |
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) |
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getManagersOfOrg(String orgOid) |
Collection<String> |
getManagersOids(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) |
Collection<String> |
getManagersOidsExceptUser(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getObject(Class<T> type,
String oid)
Returns object for provided OID.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getObject(Class<T> type,
String oid,
Collection<SelectorOptions<GetOperationOptions>> options)
Returns object for provided OID.
|
<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,T> |
getObjectsInConflictOnPropertyValue(O objectType,
String propertyPathString,
T propertyValue,
boolean getAllConflicting) |
<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,T> |
getObjectsInConflictOnPropertyValue(O objectType,
String propertyPathString,
T propertyValue,
String matchingRuleName,
boolean getAllConflicting) |
com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType |
getOrgByName(String name) |
com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType |
getOrgByOid(String oid) |
Collection<String> |
getOrgUnits(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) |
Collection<String> |
getOrgUnits(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
QName relation) |
com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType |
getParentOrgByOrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object,
String orgType)
Returns parent orgs of the specified object that have a specific orgType.
|
Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> |
getParentOrgs(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object)
Returns all parent orgs of the specified object.
|
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)
Returns parent orgs of the specified object that have a specific relation and orgType.
|
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)
Returns parent orgs of the specified object that have a specific relation and orgType.
|
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)
Returns parent orgs of the specified object that have a specific relation.
|
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)
Returns parent orgs of the specified object that have a specific relation.
|
String |
getPlaintextAccountPassword(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType account) |
String |
getPlaintextAccountPasswordFromDelta(ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> delta) |
String |
getPlaintextUserPassword(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) |
String |
getPlaintextUserPasswordFromDeltas(List<ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType>> objectDeltas) |
PrismContext |
getPrismContext() |
Protector |
getProtector() |
ObjectDeltaType |
getResourceDelta(ModelContext context,
String resourceOid)
Returns aggregated delta that is to be executed on a given resource.
|
long |
getSequenceCounter(String sequenceOid) |
com.evolveum.midpoint.xml.ns._public.common.common_3.UserType |
getUserByOid(String oid) |
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
hasLinkedAccount(String resourceOid) |
String |
hello(String name) |
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
isDirectlyAssigned(F focusType,
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType target) |
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
isDirectlyAssigned(F focusType,
String targetOid) |
boolean |
isDirectlyAssigned(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType target) |
boolean |
isDirectlyAssigned(String targetOid) |
boolean |
isManager(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user)
Returns true if user is a manager of any organizational unit.
|
boolean |
isManagerOf(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
String orgOid)
Returns true if user is a manager of specified organiational unit.
|
boolean |
isManagerOfOrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
String orgType) |
boolean |
isMemberOf(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user,
String orgOid) |
<T> boolean |
isUniqueAccountValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType,
String attributeName,
T attributeValue) |
<T> boolean |
isUniquePropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType objectType,
String propertyPathString,
T propertyValue) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObject(ObjectDelta<T> modifyDelta) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObject(ObjectDelta<T> modifyDelta,
ModelExecuteOptions options) |
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
recompute(Class<F> type,
String oid)
Recomputes focal object with the specified OID.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
resolveReference(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType reference) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
resolveReferenceIfExists(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType reference) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchObjectByName(Class<T> type,
PolyString name)
Search for objects by name.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchObjectByName(Class<T> type,
PolyStringType name)
Search for objects by name.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchObjectByName(Class<T> type,
String name)
Search for objects by name.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchObjects(Class<T> type,
ObjectQuery query)
Search for objects.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchObjects(Class<T> type,
ObjectQuery query,
Collection<SelectorOptions<GetOperationOptions>> options)
Search for objects.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchObjectsIterative(Class<T> type,
ObjectQuery query,
ResultHandler<T> handler)
Search for objects in iterative fashion (using callback).
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchObjectsIterative(Class<T> type,
ObjectQuery query,
ResultHandler<T> handler,
Collection<SelectorOptions<GetOperationOptions>> options)
Search for objects in iterative fashion (using callback).
|
OperationResult |
testResource(String resourceOid)
Test the resource connection and basic resource connector functionality.
|
List<String> |
toList(String... s) |
ModelContext |
unwrapModelContext(com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType lensContextType) |
com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType |
wrapModelContext(LensContext<?> lensContext) |
public PrismContext getPrismContext()
public List<String> toList(String... s)
toList
in interface MidpointFunctions
public com.evolveum.midpoint.xml.ns._public.common.common_3.UserType getUserByOid(String oid) throws ObjectNotFoundException, SchemaException
getUserByOid
in interface MidpointFunctions
ObjectNotFoundException
SchemaException
public boolean isMemberOf(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, String orgOid)
isMemberOf
in interface MidpointFunctions
public String getPlaintextUserPassword(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) throws EncryptionException
getPlaintextUserPassword
in interface MidpointFunctions
EncryptionException
public String getPlaintextAccountPassword(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType account) throws EncryptionException
getPlaintextAccountPassword
in interface MidpointFunctions
EncryptionException
public String getPlaintextAccountPasswordFromDelta(ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> delta) throws EncryptionException
getPlaintextAccountPasswordFromDelta
in interface MidpointFunctions
EncryptionException
public String getPlaintextUserPasswordFromDeltas(List<ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType>> objectDeltas) throws EncryptionException
getPlaintextUserPasswordFromDeltas
in interface MidpointFunctions
EncryptionException
public <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> boolean hasLinkedAccount(String resourceOid)
public <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> boolean isDirectlyAssigned(F focusType, String targetOid)
isDirectlyAssigned
in interface MidpointFunctions
public <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> boolean isDirectlyAssigned(F focusType, com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType target)
isDirectlyAssigned
in interface MidpointFunctions
public boolean isDirectlyAssigned(String targetOid)
isDirectlyAssigned
in interface MidpointFunctions
public boolean isDirectlyAssigned(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType target)
isDirectlyAssigned
in interface MidpointFunctions
public com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
getLinkedShadow
in interface MidpointFunctions
SchemaException
SecurityViolationException
CommunicationException
ConfigurationException
public com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, boolean repositoryObjectOnly) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
getLinkedShadow
in interface MidpointFunctions
SchemaException
SecurityViolationException
CommunicationException
ConfigurationException
public com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus, String resourceOid) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
getLinkedShadow
in interface MidpointFunctions
SchemaException
SecurityViolationException
CommunicationException
ConfigurationException
public com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus, String resourceOid, boolean repositoryObjectOnly) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
getLinkedShadow
in interface MidpointFunctions
SchemaException
SecurityViolationException
CommunicationException
ConfigurationException
public com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus, String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
getLinkedShadow
in interface MidpointFunctions
SchemaException
SecurityViolationException
CommunicationException
ConfigurationException
public com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType getLinkedShadow(com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType focus, String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent, boolean repositoryObjectOnly) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
getLinkedShadow
in interface MidpointFunctions
SchemaException
SecurityViolationException
CommunicationException
ConfigurationException
public <T> Integer countAccounts(String resourceOid, QName attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <T> Integer countAccounts(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, QName attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <T> Integer countAccounts(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, String attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <T> boolean isUniquePropertyValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType objectType, String propertyPathString, T propertyValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,T> List<O> getObjectsInConflictOnPropertyValue(O objectType, String propertyPathString, T propertyValue, boolean getAllConflicting) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,T> List<O> getObjectsInConflictOnPropertyValue(O objectType, String propertyPathString, T propertyValue, String matchingRuleName, boolean getAllConflicting) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <T> boolean isUniqueAccountValue(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType, String attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public ModelContext unwrapModelContext(com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType lensContextType) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException
unwrapModelContext
in interface MidpointFunctions
SchemaException
ObjectNotFoundException
CommunicationException
ConfigurationException
public com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType wrapModelContext(LensContext<?> lensContext) throws SchemaException
SchemaException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T createEmptyObject(Class<T> type) throws SchemaException
MidpointFunctions
Creates empty prism object of specified type in memory. This is used to construct Java instances of object before they are added to the repository.
Please note that this method constructs the object in memory only. If you intend to create an object in repository or on the resource you need to populate this object with data and then invoke the addObject or executeChanges method.
createEmptyObject
in interface MidpointFunctions
type
- Class of the object to createSchemaException
- schema error instantiating the object (e.g. attempt to
instantiate abstract type).public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T createEmptyObjectWithName(Class<T> type, String name) throws SchemaException
MidpointFunctions
Creates empty prism object of specified type and with specified name in memory. This is used to construct Java instances of object before they are added to the repository. The 'name' property of the new object will be set to a specified value.
Please note that this method constructs the object in memory only. If you intend to create an object in repository or on the resource you need to populate this object with data and then invoke the addObject or executeChanges method.
createEmptyObjectWithName
in interface MidpointFunctions
type
- Class of the object to createname
- Name of the objectSchemaException
- schema error instantiating the object (e.g. attempt to
instantiate abstract type).public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T createEmptyObjectWithName(Class<T> type, PolyString name) throws SchemaException
MidpointFunctions
Creates empty prism object of specified type and with specified name in memory. This is used to construct Java instances of object before they are added to the repository. The 'name' property of the new object will be set to a specified value.
Please note that this method constructs the object in memory only. If you intend to create an object in repository or on the resource you need to populate this object with data and then invoke the addObject or executeChanges method.
createEmptyObjectWithName
in interface MidpointFunctions
type
- Class of the object to createname
- Name of the objectSchemaException
- schema error instantiating the object (e.g. attempt to
instantiate abstract type).public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T createEmptyObjectWithName(Class<T> type, PolyStringType name) throws SchemaException
MidpointFunctions
Creates empty prism object of specified type and with specified name in memory. This is used to construct Java instances of object before they are added to the repository. The 'name' property of the new object will be set to a specified value.
Please note that this method constructs the object in memory only. If you intend to create an object in repository or on the resource you need to populate this object with data and then invoke the addObject or executeChanges method.
createEmptyObjectWithName
in interface MidpointFunctions
type
- Class of the object to createname
- Name of the objectSchemaException
- schema error instantiating the object (e.g. attempt to
instantiate abstract type).public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T resolveReference(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType reference) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException
resolveReference
in interface MidpointFunctions
ObjectNotFoundException
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T resolveReferenceIfExists(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType reference) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException
resolveReferenceIfExists
in interface MidpointFunctions
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T getObject(Class<T> type, String oid, Collection<SelectorOptions<GetOperationOptions>> options) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException
MidpointFunctions
Returns object for provided OID. It retrieves the object from an appropriate source for an object type (e.g. internal repository, resource or both), merging data as necessary, processing any policies, caching mechanisms, etc. This can be influenced by using options.
Fails if object with the OID does not exists.
getObject
in interface MidpointFunctions
type
- (class) of an object to getoid
- OID of the object to getoptions
- options influencing the retrieval and processing of the objectObjectNotFoundException
- requested object does not existSchemaException
- the object is not schema compliantCommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T getObject(Class<T> type, String oid) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException
MidpointFunctions
Returns object for provided OID. It retrieves the object from an appropriate source for an object type (e.g. internal repository, resource or both), merging data as necessary, processing any policies, caching mechanisms, etc.
Fails if object with the OID does not exists.
getObject
in interface MidpointFunctions
type
- (class) of an object to getoid
- OID of the object to getObjectNotFoundException
- requested object does not existSchemaException
- the object is not schema compliantCommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
SecurityViolationException
public void executeChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
MidpointFunctions
Execute the provided object deltas.
The operation executes the provided object deltas. All deltas must relate to analogous objects (e.g. user and linked accounts). The implementation may throw an error if the objects are not analogous. The implementation also implicitly links the objects (mark them to be analogous) if such a link is part of the data model. E.g. the implementation links all accounts to the user if they are passed in a single delta collection. This is especially useful if the account deltas are ADD deltas without OID and therefore cannot be linked explicitly.
There must be no more than one delta for each object. The order of execution is not defined and the implementation is free to determine the correct or most suitable ordering.
The OID provided in ADD deltas may be empty. In that case the OID will be assigned by the implementation and the OIDs will be set in the deltas after the operation is completed.
Execution of ADD deltas should fail if such object already exists (if object with the provided OID already exists). Execution of MODIFY and DELETE deltas should fail if such objects do not exist.
The operation may fail if provided OIDs are in an unusable format for the storage. Generating own OIDs and providing them to this method is not recommended for normal operation.
There are no explicit atomicity guarantees for the operations. Some of the operations may pass, some may fail or even fail partially. The consistency of the data and state are not based on operation atomicity but rather a data model that can "repair" inconsistencies.
The operation may fail if any of the objects to be created or modified does not conform to the underlying schema of the storage system or the schema enforced by the implementation.
executeChanges
in interface MidpointFunctions
deltas
- Collection of object deltas to executeoptions
- options influencing processing of the deltasObjectAlreadyExistsException
- object with specified identifiers already exists, cannot addObjectNotFoundException
- object required to complete the operation was not found (e.g.
appropriate connector or resource definition)SchemaException
- error dealing with resource schema, e.g. created object does
not conform to schemaExpressionEvaluationException
- evaluation of expression associated with the object has failedCommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.PolicyViolationException
- Policy violation was detected during processing of the objectSecurityViolationException
public void executeChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
MidpointFunctions
Execute the provided object deltas.
The operation executes the provided object deltas. All deltas must relate to analogous objects (e.g. user and linked accounts). The implementation may throw an error if the objects are not analogous. The implementation also implicitly links the objects (mark them to be analogous) if such a link is part of the data model. E.g. the implementation links all accounts to the user if they are passed in a single delta collection. This is especially useful if the account deltas are ADD deltas without OID and therefore cannot be linked explicitly.
There must be no more than one delta for each object. The order of execution is not defined and the implementation is free to determine the correct or most suitable ordering.
The OID provided in ADD deltas may be empty. In that case the OID will be assigned by the implementation and the OIDs will be set in the deltas after the operation is completed.
Execution of ADD deltas should fail if such object already exists (if object with the provided OID already exists). Execution of MODIFY and DELETE deltas should fail if such objects do not exist.
The operation may fail if provided OIDs are in an unusable format for the storage. Generating own OIDs and providing them to this method is not recommended for normal operation.
There are no explicit atomicity guarantees for the operations. Some of the operations may pass, some may fail or even fail partially. The consistency of the data and state are not based on operation atomicity but rather a data model that can "repair" inconsistencies.
The operation may fail if any of the objects to be created or modified does not conform to the underlying schema of the storage system or the schema enforced by the implementation.
executeChanges
in interface MidpointFunctions
deltas
- Collection of object deltas to executeObjectAlreadyExistsException
- object with specified identifiers already exists, cannot addObjectNotFoundException
- object required to complete the operation was not found (e.g.
appropriate connector or resource definition)SchemaException
- error dealing with resource schema, e.g. created object does
not conform to schemaExpressionEvaluationException
- evaluation of expression associated with the object has failedCommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.PolicyViolationException
- Policy violation was detected during processing of the objectSecurityViolationException
public void executeChanges(ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>... deltas) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
MidpointFunctions
Execute the provided object deltas.
The operation executes the provided object deltas. All deltas must relate to analogous objects (e.g. user and linked accounts). The implementation may throw an error if the objects are not analogous. The implementation also implicitly links the objects (mark them to be analogous) if such a link is part of the data model. E.g. the implementation links all accounts to the user if they are passed in a single delta collection. This is especially useful if the account deltas are ADD deltas without OID and therefore cannot be linked explicitly.
There must be no more than one delta for each object. The order of execution is not defined and the implementation is free to determine the correct or most suitable ordering.
The OID provided in ADD deltas may be empty. In that case the OID will be assigned by the implementation and the OIDs will be set in the deltas after the operation is completed.
Execution of ADD deltas should fail if such object already exists (if object with the provided OID already exists). Execution of MODIFY and DELETE deltas should fail if such objects do not exist.
The operation may fail if provided OIDs are in an unusable format for the storage. Generating own OIDs and providing them to this method is not recommended for normal operation.
There are no explicit atomicity guarantees for the operations. Some of the operations may pass, some may fail or even fail partially. The consistency of the data and state are not based on operation atomicity but rather a data model that can "repair" inconsistencies.
The operation may fail if any of the objects to be created or modified does not conform to the underlying schema of the storage system or the schema enforced by the implementation.
executeChanges
in interface MidpointFunctions
deltas
- Collection of object deltas to executeObjectAlreadyExistsException
- object with specified identifiers already exists, cannot addObjectNotFoundException
- object required to complete the operation was not found (e.g.
appropriate connector or resource definition)SchemaException
- error dealing with resource schema, e.g. created object does
not conform to schemaExpressionEvaluationException
- evaluation of expression associated with the object has failedCommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.PolicyViolationException
- Policy violation was detected during processing of the objectSecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> String addObject(PrismObject<T> newObject, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> String addObject(PrismObject<T> newObject) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> String addObject(T newObject, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> String addObject(T newObject) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void modifyObject(ObjectDelta<T> modifyDelta, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void modifyObject(ObjectDelta<T> modifyDelta) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void deleteObject(Class<T> type, String oid, ModelExecuteOptions options) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void deleteObject(Class<T> type, String oid) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
public <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void recompute(Class<F> type, String oid) throws SchemaException, PolicyViolationException, ExpressionEvaluationException, ObjectNotFoundException, ObjectAlreadyExistsException, CommunicationException, ConfigurationException, SecurityViolationException
MidpointFunctions
recompute
in interface MidpointFunctions
type
- type (class) of an object to recomputeoid
- OID of the object to recomputeSchemaException
PolicyViolationException
ExpressionEvaluationException
ObjectNotFoundException
ObjectAlreadyExistsException
CommunicationException
ConfigurationException
SecurityViolationException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> findShadowOwner(String accountOid) throws ObjectNotFoundException, SecurityViolationException, SchemaException, ConfigurationException
MidpointFunctions
Returns the User object representing owner of specified account (account shadow).
May return null if there is no owner specified for the account.
Implements the backward "owns" association between account shadow and user. Forward association is implemented by property "account" of user object.
findShadowOwner
in interface MidpointFunctions
accountOid
- OID of the account to look for an ownerObjectNotFoundException
- specified account was not foundSecurityViolationException
SchemaException
ConfigurationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> List<T> searchObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
MidpointFunctions
Search for objects.
Searches through all object of a specified type. Returns a list of objects that match search criteria.
Note that this method has a very limited scaling capability as all the results are stored in the memory. DO NOT USE on large datasets. Recommended usage is only when using queries that cannot return large number of results (e.g. queries for unique values) or when combined with paging capability. For other cases use searchObjectsIterative instead.
Returns empty list if object type is correct but there are no objects of that type. Fails if object type is wrong. Should fail if unknown property is specified in the query.
searchObjects
in interface MidpointFunctions
type
- (class) of an object to searchquery
- search queryoptions
- options influencing the retrieval and processing of the objectsSchemaException
- unknown property used in search queryObjectNotFoundException
- object required for a search was not found (e.g. resource definition)CommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> List<T> searchObjects(Class<T> type, ObjectQuery query) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
MidpointFunctions
Search for objects.
Searches through all object of a specified type. Returns a list of objects that match search criteria.
Note that this method has a very limited scaling capability as all the results are stored in the memory. DO NOT USE on large datasets. Recommended usage is only when using queries that cannot return large number of results (e.g. queries for unique values) or when combined with paging capability. For other cases use searchObjectsIterative instead.
Returns empty list if object type is correct but there are no objects of that type. Fails if object type is wrong. Should fail if unknown property is specified in the query.
searchObjects
in interface MidpointFunctions
type
- (class) of an object to searchquery
- search querySchemaException
- unknown property used in search queryObjectNotFoundException
- object required for a search was not found (e.g. resource definition)CommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void searchObjectsIterative(Class<T> type, ObjectQuery query, ResultHandler<T> handler, Collection<SelectorOptions<GetOperationOptions>> options) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
MidpointFunctions
Search for objects in iterative fashion (using callback).
Searches through all object of a specified type. A handler is invoked for each object found.
The handler is not called at all if object type is correct but there are no objects of that type. Fails if object type is wrong. Should fail if unknown property is specified in the query.
searchObjectsIterative
in interface MidpointFunctions
type
- (class) of an object to searchquery
- search queryhandler
- callback handler that will be called for each found objectoptions
- options influencing the retrieval and processing of the objectsSchemaException
- unknown property used in search queryObjectNotFoundException
- object required for a search was not found (e.g. resource definition)CommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void searchObjectsIterative(Class<T> type, ObjectQuery query, ResultHandler<T> handler) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
MidpointFunctions
Search for objects in iterative fashion (using callback).
Searches through all object of a specified type. A handler is invoked for each object found.
The handler is not called at all if object type is correct but there are no objects of that type. Fails if object type is wrong. Should fail if unknown property is specified in the query.
searchObjectsIterative
in interface MidpointFunctions
type
- (class) of an object to searchquery
- search queryhandler
- callback handler that will be called for each found objectSchemaException
- unknown property used in search queryObjectNotFoundException
- object required for a search was not found (e.g. resource definition)CommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T searchObjectByName(Class<T> type, String name) throws SecurityViolationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SchemaException
MidpointFunctions
Search for objects by name.
Searches through all object of a specified type for an object with specified name. Returns that object if it is found, return null otherwise. The method fails if more than one object is found therefore it cannot be reliably used on types with non-unique names (such as Shadows).
searchObjectByName
in interface MidpointFunctions
type
- (class) of an object to searchname
- Name of the object to look forObjectNotFoundException
- object required for a search was not found (e.g. resource definition)CommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SchemaException
- unknown property used in search querySecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T searchObjectByName(Class<T> type, PolyString name) throws SecurityViolationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SchemaException
MidpointFunctions
Search for objects by name.
Searches through all object of a specified type for an object with specified name. Returns that object if it is found, return null otherwise. The method fails if more than one object is found therefore it cannot be reliably used on types with non-unique names (such as Shadows).
searchObjectByName
in interface MidpointFunctions
type
- (class) of an object to searchname
- Name of the object to look forObjectNotFoundException
- object required for a search was not found (e.g. resource definition)CommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SchemaException
- unknown property used in search querySecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> T searchObjectByName(Class<T> type, PolyStringType name) throws SecurityViolationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SchemaException
MidpointFunctions
Search for objects by name.
Searches through all object of a specified type for an object with specified name. Returns that object if it is found, return null otherwise. The method fails if more than one object is found therefore it cannot be reliably used on types with non-unique names (such as Shadows).
searchObjectByName
in interface MidpointFunctions
type
- (class) of an object to searchname
- Name of the object to look forObjectNotFoundException
- object required for a search was not found (e.g. resource definition)CommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.SchemaException
- unknown property used in search querySecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> int countObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) throws SchemaException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException
MidpointFunctions
Count objects.
Searches through all object of a specified type and returns a count of such objects. This method is usually much more efficient than equivalent search method. It is used mostly for presentation purposes, e.g. displaying correct number of pages in the GUI listings.
countObjects
in interface MidpointFunctions
type
- (class) of an object to searchquery
- search queryoptions
- options influencing the retrieval and processing of the objectsSchemaException
- unknown property used in search queryObjectNotFoundException
- object required for a search was not found (e.g. resource definition)ConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.CommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceSecurityViolationException
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> int countObjects(Class<T> type, ObjectQuery query) throws SchemaException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException
MidpointFunctions
Count objects.
Searches through all object of a specified type and returns a count of such objects. This method is usually much more efficient than equivalent search method. It is used mostly for presentation purposes, e.g. displaying correct number of pages in the GUI listings.
countObjects
in interface MidpointFunctions
type
- (class) of an object to searchquery
- search querySchemaException
- unknown property used in search queryObjectNotFoundException
- object required for a search was not found (e.g. resource definition)ConfigurationException
- Configuration error. E.g. misconfigured resource parameters, invalid policies, etc.CommunicationException
- Communication (network) error during retrieval. E.g. error communicating with the resourceSecurityViolationException
public OperationResult testResource(String resourceOid) throws ObjectNotFoundException
MidpointFunctions
Test the resource connection and basic resource connector functionality.
This operation will NOT throw exception in case the resource connection fails. It such case it will indicate the failure in the return message, but the operation itself succeeds. The operations fails only if the provided arguments are wrong, in case of system error, system misconfiguration, etc.
This returns OperationResult instead of taking it as in/out argument. This is different from the other methods. The testResource method is not using OperationResult to track its own execution but rather to track the execution of resource tests (that in fact happen in provisioning).
testResource
in interface MidpointFunctions
resourceOid
- OID of resource to testObjectNotFoundException
- specified object does not existpublic ObjectDeltaType getResourceDelta(ModelContext context, String resourceOid) throws SchemaException
MidpointFunctions
getResourceDelta
in interface MidpointFunctions
context
- model contextresourceOid
- OID of the resource in questionSchemaException
public long getSequenceCounter(String sequenceOid) throws ObjectNotFoundException, SchemaException
public Collection<String> getManagersOids(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagersOids
in interface MidpointFunctions
SchemaException
ObjectNotFoundException
SecurityViolationException
public Collection<String> getOrgUnits(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, QName relation)
getOrgUnits
in interface MidpointFunctions
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) throws SchemaException, SecurityViolationException
MidpointFunctions
getParentOrgByOrgType
in interface MidpointFunctions
object
- base objectorgType
- orgType to selectSchemaException
- Internal schema errorSecurityViolationException
- Security violationpublic com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType getOrgByOid(String oid) throws SchemaException
getOrgByOid
in interface MidpointFunctions
SchemaException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> getParentOrgs(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType object) throws SchemaException, SecurityViolationException
MidpointFunctions
getParentOrgs
in interface MidpointFunctions
object
- base objectSchemaException
- Internal schema errorSecurityViolationException
- Security violationpublic Collection<String> getOrgUnits(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user)
getOrgUnits
in interface MidpointFunctions
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getManagersOfOrg(String orgOid) throws SchemaException, SecurityViolationException
getManagersOfOrg
in interface MidpointFunctions
SchemaException
SecurityViolationException
public boolean isManagerOfOrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, String orgType) throws SchemaException
isManagerOfOrgType
in interface MidpointFunctions
SchemaException
public Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getManagers(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagers
in interface MidpointFunctions
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) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagersByOrgType
in interface MidpointFunctions
SchemaException
ObjectNotFoundException
SecurityViolationException
public boolean isManagerOf(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user, String orgOid)
MidpointFunctions
isManagerOf
in interface MidpointFunctions
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) throws SchemaException, SecurityViolationException
MidpointFunctions
getParentOrgsByRelation
in interface MidpointFunctions
object
- base objectrelation
- local part of the relation (in the String form)SchemaException
- Internal schema errorSecurityViolationException
- Security violationpublic 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) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagers
in interface MidpointFunctions
SchemaException
ObjectNotFoundException
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) throws SchemaException, SecurityViolationException
MidpointFunctions
getParentOrgs
in interface MidpointFunctions
object
- base objectrelation
- local part of the relation (in the String form)orgType
- orgType to selectSchemaException
- Internal schema errorSecurityViolationException
- Security violationpublic Collection<String> getManagersOidsExceptUser(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user) throws SchemaException, ObjectNotFoundException, SecurityViolationException
getManagersOidsExceptUser
in interface MidpointFunctions
SchemaException
ObjectNotFoundException
SecurityViolationException
public com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType getOrgByName(String name) throws SchemaException, SecurityViolationException
getOrgByName
in interface MidpointFunctions
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) throws SchemaException, SecurityViolationException
MidpointFunctions
getParentOrgsByRelation
in interface MidpointFunctions
object
- base objectrelation
- relation in the QName formSchemaException
- Internal schema errorSecurityViolationException
- Security violationpublic 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) throws SchemaException, SecurityViolationException
MidpointFunctions
getParentOrgs
in interface MidpointFunctions
object
- base objectrelation
- relation in the QName formorgType
- orgType to selectSchemaException
- Internal schema errorSecurityViolationException
- Security violationpublic boolean isManager(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType user)
MidpointFunctions
isManager
in interface MidpointFunctions
public Protector getProtector()
getProtector
in interface MidpointFunctions
Copyright © 2016 evolveum. All rights reserved.