public abstract class AbstractModelIntegrationTest extends AbstractIntegrationTest
COMMON_DIR, COMMON_DIR_NAME, COMMON_DIR_PATH, DEFAULT_INTENT, derbyController, initializedClasses, ldapShaPasswordEncoder, OPENDJ_GROUPS_SUFFIX, OPENDJ_PEOPLE_SUFFIX, openDJController, protector, taskManager
Constructor and Description |
---|
AbstractModelIntegrationTest() |
Modifier and Type | Method and Description |
---|---|
protected <T> void |
addAttributeToShadow(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String attrName,
T attrValue) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(File file) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(File file,
Task task,
OperationResult result) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(PrismObject<O> object) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(PrismObject<O> object,
Task task,
OperationResult result) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObjects(File... files) |
protected void |
addTrigger(String oid,
XMLGregorianCalendar timestamp,
String uri) |
protected void |
applyResourceSchema(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType accountType,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType)
This is not the real thing.
|
protected void |
assertAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String resourceOid) |
protected void |
assertAccounts(String userOid,
int numAccounts) |
protected void |
assertAccountShadowModel(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) |
protected void |
assertAccountShadowModel(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
MatchingRule<String> matchingRule) |
protected void |
assertAdminGuiConfigurations(com.evolveum.midpoint.xml.ns._public.common.common_3.AdminGuiConfigurationType adminGuiConfiguration,
int expectedMenuLinks,
int expectedDashboardLinks,
int expectedObjectForms) |
protected void |
assertAdminGuiConfigurations(MidPointPrincipal principal,
int expectedMenuLinks,
int expectedDashboardLinks,
int expectedObjectForms) |
protected void |
assertAdministrativeStatus(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> object,
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expected) |
protected void |
assertAdministrativeStatusDisabled(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> user) |
protected void |
assertAdministrativeStatusEnabled(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> user) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertAssigned(PrismObject<F> user,
String targetOid,
QName refType) |
protected void |
assertAssignedAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String resourceOid) |
protected void |
assertAssignedAccount(String userOid,
String resourceOid,
Task task,
OperationResult result) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertAssignedNo(PrismObject<F> user,
QName refType) |
protected void |
assertAssignedNoAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String resourceOid) |
protected void |
assertAssignedNoOrg(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user) |
protected void |
assertAssignedNoOrg(String userOid,
Task task,
OperationResult result) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertAssignedNoRole(PrismObject<F> user) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertAssignedNoRole(PrismObject<F> focus,
Task task,
OperationResult result) |
protected void |
assertAssignedNoRole(String userOid,
Task task,
OperationResult result) |
protected void |
assertAssignedOrg(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> focus,
String orgOid) |
protected void |
assertAssignedOrg(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> focus,
String orgOid,
QName relation) |
protected void |
assertAssignedOrg(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> org) |
protected void |
assertAssignedOrg(String userOid,
String orgOid,
Task task,
OperationResult result) |
protected void |
assertAssignedResource(String userOid,
String resourceOid,
Task task,
OperationResult result) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertAssignedRole(PrismObject<F> user,
String roleOid) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertAssignedRole(PrismObject<F> focus,
String roleOid,
Task task,
OperationResult result) |
protected void |
assertAssignedRole(String userOid,
String roleOid,
Task task,
OperationResult result) |
protected void |
assertAssignees(String targetOid,
int expectedAssignees) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertAssignments(PrismObject<F> user,
Class expectedType,
int expectedNumber) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertAssignments(PrismObject<F> user,
int expectedNumber) |
protected void |
assertAuthorized(MidPointPrincipal principal,
String action) |
protected void |
assertAuthorized(MidPointPrincipal principal,
String action,
com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase) |
protected void |
assertDefaultDummyAccount(String username,
String fullname,
boolean active) |
protected void |
assertDefaultDummyAccountAttribute(String username,
String attributeName,
Object... expectedAttributeValues) |
protected void |
assertDefaultDummyGroupMember(String dummyGroupName,
String accountId) |
protected void |
assertDisableReasonShadow(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
String expectedReason) |
protected void |
assertDisableTimestampFocus(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> focus,
XMLGregorianCalendar startTime,
XMLGregorianCalendar endTime) |
protected void |
assertDisableTimestampShadow(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
XMLGregorianCalendar startTime,
XMLGregorianCalendar endTime) |
protected void |
assertDummyAccount(String dummyInstanceName,
String username) |
protected DummyAccount |
assertDummyAccount(String dummyInstanceName,
String username,
String fullname,
boolean active) |
protected void |
assertDummyAccountActivation(String dummyInstanceName,
String username,
boolean active) |
protected void |
assertDummyAccountAttribute(String dummyInstanceName,
String username,
String attributeName,
Object... expectedAttributeValues) |
protected void |
assertDummyAccountAttributeGenerated(String dummyInstanceName,
String username) |
protected void |
assertDummyAccountById(String dummyInstanceName,
String id) |
protected void |
assertDummyAccountNoAttribute(String dummyInstanceName,
String username,
String attributeName) |
protected void |
assertDummyGroup(String username,
String description) |
protected void |
assertDummyGroup(String username,
String description,
Boolean active) |
protected void |
assertDummyGroup(String dummyInstanceName,
String groupname,
String description,
Boolean active) |
protected void |
assertDummyGroupAttribute(String dummyInstanceName,
String groupname,
String attributeName,
Object... expectedAttributeValues) |
protected void |
assertDummyGroupMember(String dummyInstanceName,
String dummyGroupName,
String accountId) |
protected void |
assertDummyPassword(String instance,
String userId,
String expectedClearPassword) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertEffectualDeltas(ObjectDelta<F> focusDelta,
String desc,
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expectedEfficientActivation,
int expectedEffectualModifications) |
protected void |
assertEnableTimestampFocus(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> focus,
XMLGregorianCalendar startTime,
XMLGregorianCalendar endTime) |
protected void |
assertEnableTimestampShadow(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
XMLGregorianCalendar startTime,
XMLGregorianCalendar endTime) |
protected void |
assertEncryptedUserPassword(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String expectedClearPassword) |
protected void |
assertEncryptedUserPassword(String userOid,
String expectedClearPassword) |
protected void |
assertGroupMember(DummyGroup group,
String accountId) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertHasNoOrg(PrismObject<O> user) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertHasOrg(PrismObject<O> focus,
String orgOid) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertHasOrg(PrismObject<O> user,
String orgOid,
QName relation) |
protected void |
assertHasOrg(String userOid,
String orgOid,
Task task,
OperationResult result) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertHasOrgs(PrismObject<O> user,
int expectedNumber) |
protected void |
assertHasShadow(String username,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
Task task,
OperationResult result) |
protected void |
assertIteration(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
Integer expectedIteration,
String expectedIterationToken) |
protected void |
assertIterationDelta(ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadowDelta,
Integer expectedIteration,
String expectedIterationToken) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertLdapPassword(ProtectedStringType protectedStringType,
String expectedPassword,
PrismObject<O> source) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertLinked(Class<F> type,
String focusOid,
String projectionOid) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertLinked(PrismObject<F> focus,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> projection) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertLinked(PrismObject<F> focus,
String projectionOid) |
protected void |
assertLinked(String userOid,
String accountOid) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertLinks(PrismObject<F> focus,
int expectedNumLinks) |
protected void |
assertLoggedInUser(String username) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertNoAssignments(PrismObject<F> user) |
protected void |
assertNoAssignments(String userOid) |
protected void |
assertNoAssignments(String userOid,
OperationResult result) |
protected void |
assertNoAuthentication() |
protected void |
assertNoDefaultDummyGroupMember(String dummyGroupName,
String accountId) |
protected void |
assertNoDummyAccount(String username) |
protected void |
assertNoDummyAccount(String dummyInstanceName,
String username) |
protected void |
assertNoDummyAccountAttribute(String dummyInstanceName,
String username,
String attributeName) |
protected void |
assertNoDummyAccountById(String dummyInstanceName,
String id) |
protected void |
assertNoDummyGroup(String groupname) |
protected void |
assertNoDummyGroup(String dummyInstanceName,
String groupname) |
protected void |
assertNoDummyGroupMember(String dummyInstanceName,
String dummyGroupName,
String accountId) |
protected void |
assertNoGroupMember(DummyGroup group,
String accountId) |
protected void |
assertNoGroupMembers(DummyGroup group) |
protected void |
assertNoLinkedAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertNoObject(Class<O> type,
String oid) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertNoObject(Class<O> type,
String oid,
Task task,
OperationResult result) |
protected void |
assertNoOpenDjAccount(String uid) |
protected void |
assertNoShadow(String shadowOid) |
protected void |
assertNoShadow(String username,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
Task task,
OperationResult result) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertNotAssignedOrg(PrismObject<F> user,
String orgOid,
QName relation) |
protected void |
assertNotAssignedResource(String userOid,
String resourceOid,
Task task,
OperationResult result) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertNotAssignedRole(PrismObject<F> user,
String roleOid) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertNotAssignedRole(PrismObject<F> focus,
String roleOid,
Task task,
OperationResult result) |
protected void |
assertNotAssignedRole(String userOid,
String roleOid,
Task task,
OperationResult result) |
protected void |
assertNotAuthorized(MidPointPrincipal principal,
String action) |
protected void |
assertNotAuthorized(MidPointPrincipal principal,
String action,
com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase) |
protected void |
assertNotLinked(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> account) |
protected void |
assertNotLinked(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String accountOid) |
protected void |
assertNotLinked(String userOid,
String accountOid) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertNoTrigger(Class<O> type,
String oid) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertNoTrigger(PrismObject<O> object) |
protected org.opends.server.types.Entry |
assertOpenDjAccount(String uid,
String cn,
Boolean active) |
protected void |
assertPassword(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String expectedPassword) |
protected void |
assertPasswordMetadata(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
boolean create,
XMLGregorianCalendar start,
XMLGregorianCalendar end,
String actorOid,
String channel) |
protected void |
assertRefEquals(String message,
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType expected,
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType actual) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertResolvedResourceRefs(ModelContext<F> context) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertRoleMembershipRef(PrismObject<F> focus,
String... roleOids) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertRoleTypes(PrismObject<F> focus,
String... expectedRoleTypes) |
protected void |
assertRoleTypes(RoleSelectionSpecification roleSpec,
String... expectedRoleTypes) |
protected void |
assertShadowKindIntent(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType expectedKind,
String expectedIntent) |
protected void |
assertShadowKindIntent(String shadowOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType expectedKind,
String expectedIntent) |
protected void |
assertShadowLdapPassword(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
String expectedPassword) |
protected void |
assertShadowModel(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
QName objectClass) |
protected void |
assertShadowModel(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow,
String oid,
String username,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
QName objectClass,
MatchingRule<String> nameMatchingRule) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertSideEffectiveDeltasOnly(ObjectDelta<F> focusDelta,
String desc,
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expectedEfficientActivation) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
assertSideEffectiveDeltasOnly(String desc,
ObjectDelta<F> focusDelta) |
protected void |
assertSituation(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
com.evolveum.midpoint.xml.ns._public.common.common_3.SynchronizationSituationType expectedSituation) |
protected void |
assertSubOrgs(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> baseOrg,
int expected) |
protected void |
assertSubOrgs(String baseOrgOid,
int expected) |
protected void |
assertTaskClosed(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType> task) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertTrigger(PrismObject<O> object,
String handlerUri,
XMLGregorianCalendar mid,
long tolerance) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
assertTrigger(PrismObject<O> object,
String handlerUri,
XMLGregorianCalendar start,
XMLGregorianCalendar end) |
protected void |
assertUserLdapPassword(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String expectedPassword) |
protected void |
assertUserNoAccountRefs(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user) |
protected void |
assertUserProperty(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
QName propertyName,
Object... expectedPropValues) |
protected void |
assertUserProperty(String userOid,
QName propertyName,
Object... expectedPropValues) |
protected void |
assertUsers(int expectedNumberOfUsers) |
protected void |
assertValidFrom(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> obj,
Date expectedDate) |
protected void |
assertValidTo(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> obj,
Date expectedDate) |
protected void |
assignAccount(String userOid,
String resourceOid,
String intent) |
protected void |
assignAccount(String userOid,
String resourceOid,
String intent,
Task task,
OperationResult result) |
protected void |
assignOrg(String userOid,
String orgOid,
QName relation) |
protected void |
assignOrg(String userOid,
String orgOid,
QName relation,
Task task,
OperationResult result) |
protected void |
assignOrg(String userOid,
String orgOid,
Task task,
OperationResult result) |
protected void |
assignPrametricRole(String userOid,
String roleOid,
String orgOid,
String tenantOid,
Task task,
OperationResult result) |
protected void |
assignRole(String userOid,
String roleOid) |
protected void |
assignRole(String userOid,
String roleOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType activationType,
Task task,
OperationResult result) |
protected void |
assignRole(String userOid,
String roleOid,
PrismContainer<?> extension,
Task task,
OperationResult result) |
protected void |
assignRole(String userOid,
String roleOid,
Task task,
OperationResult result) |
protected void |
breakAssignmentDelta(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas)
Breaks user assignment delta in the context by inserting some empty value.
|
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
breakAssignmentDelta(ObjectDelta<F> userDelta)
Breaks user assignment delta in the context by inserting some empty value.
|
protected void |
checkDummyTransportMessages(String name,
int expectedCount) |
protected void |
checkDummyTransportMessagesAtLeast(String name,
int expectedCount) |
protected void |
cleanUpSecurity() |
protected int |
countAssignees(String targetOid,
OperationResult result) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String name,
boolean enabled) |
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType |
createAccountAssignment(String resourceOid,
String intent) |
protected ContainerDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> |
createAccountAssignmentModification(String resourceOid,
String intent,
boolean add) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createAccountAssignmentUserDelta(String userOid,
String resourceOid,
String intent,
boolean add) |
protected com.evolveum.midpoint.xml.ns._public.common.common_3.ConstructionType |
createAccountConstruction(String resourceOid,
String intent) |
protected ObjectQuery |
createAccountShadowQuery(String username,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType |
createAssignment(String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
createAssignmentDelta(Class<F> type,
String focusOid,
String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent,
boolean add) |
protected ContainerDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> |
createAssignmentModification(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignmentType,
boolean add) |
protected ContainerDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> |
createAssignmentModification(String roleOid,
QName refType,
QName relation,
PrismContainer<?> extension,
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType activationType,
boolean add) |
protected ContainerDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> |
createAssignmentModification(String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent,
boolean add) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createAssignmentUserDelta(String userOid,
String roleOid,
QName refType,
QName relation,
PrismContainer<?> extension,
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType activationType,
boolean add) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createAssignmentUserDelta(String userOid,
String roleOid,
QName refType,
QName relation,
PrismContainer<?> extension,
boolean add) |
protected <T> PropertyDelta<T> |
createAttributeAddDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
QName attributeQName,
T... newRealValue) |
protected <T> PropertyDelta<T> |
createAttributeAddDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String attributeLocalName,
T... newRealValue) |
protected <T> PropertyDelta<T> |
createAttributeDeleteDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
QName attributeQName,
T... newRealValue) |
protected <T> PropertyDelta<T> |
createAttributeDeleteDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String attributeLocalName,
T... newRealValue) |
protected <T> PropertyDelta<T> |
createAttributeReplaceDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
QName attributeQName,
T... newRealValue) |
protected <T> PropertyDelta<T> |
createAttributeReplaceDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String attributeLocalName,
T... newRealValue) |
protected Collection<org.springframework.security.access.ConfigAttribute> |
createConfigAttributes(String action) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createModifyAccountShadowAddDelta(String accountOid,
ItemPath propertyName,
Object... newRealValue) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createModifyAccountShadowEmptyDelta(String accountOid) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createModifyAccountShadowReplaceAttributeDelta(String accountOid,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
QName attributeName,
Object... newRealValue) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createModifyAccountShadowReplaceAttributeDelta(String accountOid,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String attributeName,
Object... newRealValue) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createModifyAccountShadowReplaceDelta(String accountOid,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
ItemPath itemPath,
Object... newRealValue) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createModifyUserAddAccount(String userOid,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createModifyUserAddDelta(String userOid,
ItemPath propertyName,
Object... newRealValue) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createModifyUserDeleteAccount(String userOid,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createModifyUserDeleteDelta(String userOid,
ItemPath propertyName,
Object... newRealValue) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createModifyUserReplaceDelta(String userOid,
ItemPath propertyName,
Object... newRealValue) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createModifyUserReplaceDelta(String userOid,
QName propertyName,
Object... newRealValue) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createModifyUserUnlinkAccount(String userOid,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
protected ObjectQuery |
createNameQuery(String name) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createParametricAssignmentDelta(String userOid,
String roleOid,
String orgOid,
String tenantOid,
boolean adding) |
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createReplaceAccountConstructionUserDelta(String userOid,
Long id,
com.evolveum.midpoint.xml.ns._public.common.common_3.ConstructionType newValue) |
protected Object |
createSecureObject() |
protected void |
createSecurityContext(MidPointPrincipal principal) |
protected Task |
createTask(String operationName) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createUser(String name,
String fullName) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createUser(String name,
String fullName,
Boolean enabled) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
createUser(String name,
String givenName,
String familyName,
Boolean enabled) |
protected <V> PropertyDelta<V> |
createUserPropertyReplaceModification(QName propertyName,
V... values) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
deleteObject(Class<O> type,
String oid) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
deleteObject(Class<O> type,
String oid,
Task task,
OperationResult result) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
deleteObjectRaw(Class<O> type,
String oid,
Task task,
OperationResult result) |
protected com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectSynchronizationType |
determineSynchronization(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
Class<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> type,
String name)
Returns appropriate object synchronization settings for the class.
|
protected void |
displayAllUsers() |
protected void |
displayUsers() |
protected String |
dumpOrgTree(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> topOrg,
Task task,
OperationResult result) |
protected String |
dumpOrgTree(String topOrgOid) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
executeChanges(ObjectDelta<O> objectDelta,
ModelExecuteOptions options,
Task task,
OperationResult result) |
protected void |
fillinUser(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String name,
String fullName) |
protected void |
fillinUserAssignmentAccountConstruction(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
String resourceOid) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
findAccountByUsername(String username,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
findAccountByUsername(String username,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
Task task,
OperationResult result) |
protected Throwable |
findCause(OperationResult result) |
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType |
findInducementByTarget(String roleOid,
String targetOid) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
findObjectByName(Class<O> type,
String name) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
findUserByUsername(String username) |
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
getAccountShadowDefinition() |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
getAssignableRoleSpecification(PrismObject<F> focus) |
protected PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> |
getAssignmentDefinition() |
protected PrismContainerDefinition<?> |
getAssignmentExtensionDefinition() |
protected PrismContainer<?> |
getAssignmentExtensionInstance() |
protected ResourceAttributeDefinition |
getAttributeDefinition(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
QName attributeName) |
protected ItemPath |
getAttributePath(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String attributeLocalName) |
protected QName |
getAttributeQName(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
String attributeLocalName) |
protected DummyAccount |
getDummyAccount(String dummyInstanceName,
String username) |
protected DummyAccount |
getDummyAccountById(String dummyInstanceName,
String id) |
protected DummyGroup |
getDummyGroup(String dummyInstanceName,
String name) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getEditObjectDefinition(PrismObject<O> object) |
protected ItemPath |
getIcfsNameAttributePath() |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
getLinkRef(PrismObject<F> focus,
String resourceOid) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
getLinkRefOid(PrismObject<F> focus,
String resourceOid) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
getLinkRefOid(PrismObject<F> focus,
String resourceOid,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind,
String intent) |
protected String |
getLinkRefOid(String userOid,
String resourceOid) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getObject(Class<O> type,
String oid) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getObjectViaRepo(Class<O> type,
String oid) |
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> |
getResourceDefinition() |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.RoleType> |
getRole(String oid) |
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.RoleType> |
getRoleDefinition() |
protected String |
getSecurityContextUserOid() |
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
getShadowDefinition() |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
getShadowModel(String accountOid) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
getShadowModel(String accountOid,
boolean noFetch,
boolean assertSuccess) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
getShadowModelNoFetch(String accountOid) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
getSingleLinkOid(PrismObject<F> focus) |
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
getSingleLinkRef(PrismObject<F> focus) |
protected List<PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType>> |
getSubOrgs(String baseOrgOid,
Task task,
OperationResult result) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType> |
getTask(String taskOid) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getUser(String userOid) |
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType |
getUserAssignment(String userOid,
String roleOid) |
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getUserFromRepo(String userOid) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
importAndGetObjectFromFile(Class<T> type,
File file,
String oid,
Task task,
OperationResult result) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
importAndGetObjectFromFile(Class<T> type,
String filename,
String oid,
Task task,
OperationResult result) |
protected void |
importObjectFromFile(File file) |
protected void |
importObjectFromFile(File file,
OperationResult result) |
protected void |
importObjectFromFile(File file,
Task task,
OperationResult result) |
protected void |
importObjectFromFile(String filename) |
protected void |
importObjectFromFile(String filename,
OperationResult result) |
void |
initSystem(Task initTask,
OperationResult initResult) |
protected Collection<PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType>> |
listAccounts(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
Task task,
OperationResult result) |
protected SearchResultList<PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType>> |
listAssignees(String targetOid,
OperationResult result) |
protected void |
login(MidPointPrincipal principal) |
protected void |
login(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user) |
protected void |
login(String principalName) |
protected void |
loginAnonymous() |
protected void |
loginSuperUser(MidPointPrincipal principal) |
protected void |
loginSuperUser(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user) |
protected void |
loginSuperUser(String principalName) |
protected void |
modifyAccountChangePassword(String accountOid,
String newPassword,
Task task,
OperationResult result) |
protected void |
modifyAccountShadowReplace(String accountOid,
ItemPath propertyPath,
Task task,
OperationResult result,
Object... newRealValue) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,C extends Containerable> |
modifyObjectAddContainer(Class<O> type,
String oid,
ItemPath propertyPath,
Task task,
OperationResult result,
C... newRealValue) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObjectAddProperty(Class<O> type,
String oid,
ItemPath propertyPath,
Task task,
OperationResult result,
Object... newRealValue) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,C extends Containerable> |
modifyObjectDeleteContainer(Class<O> type,
String oid,
ItemPath propertyPath,
Task task,
OperationResult result,
C... newRealValue) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObjectDeleteProperty(Class<O> type,
String oid,
ItemPath propertyPath,
Task task,
OperationResult result,
Object... newRealValue) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,C extends Containerable> |
modifyObjectReplaceContainer(Class<O> type,
String oid,
ItemPath propertyPath,
Task task,
OperationResult result,
C... newRealValue) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObjectReplaceProperty(Class<O> type,
String oid,
ItemPath propertyPath,
Task task,
OperationResult result,
Object... newRealValue) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObjectReplaceProperty(Class<O> type,
String oid,
QName propertyName,
Task task,
OperationResult result,
Object... newRealValue) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObjectReplaceReference(Class<O> type,
String oid,
ItemPath refPath,
Task task,
OperationResult result,
PrismReferenceValue... refVals) |
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObjectReplaceReference(Class<O> type,
String oid,
QName refName,
Task task,
OperationResult result,
PrismReferenceValue... refVals) |
protected void |
modifyRoleAddConstruction(String roleOid,
long inducementId,
String resourceOid) |
protected void |
modifyRoleAddInducementTarget(String roleOid,
String targetOid,
boolean reconcileAffected,
Task task) |
protected void |
modifyRoleDeleteInducement(String roleOid,
long inducementId,
boolean reconcileAffected,
Task task) |
protected void |
modifyRoleDeleteInducementTarget(String roleOid,
String targetOid) |
protected void |
modifyUserAdd(String userOid,
ItemPath propertyPath,
Task task,
OperationResult result,
Object... newRealValue) |
protected void |
modifyUserAdd(String userOid,
QName propertyName,
Task task,
OperationResult result,
Object... newRealValue) |
protected void |
modifyUserAddAccount(String userOid,
File accountFile,
Task task,
OperationResult result) |
protected void |
modifyUserAssignment(String userOid,
String roleOid,
QName refType,
QName relation,
Task task,
PrismContainer<?> extension,
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType activationType,
boolean add,
OperationResult result) |
protected void |
modifyUserAssignment(String userOid,
String roleOid,
QName refType,
QName relation,
Task task,
PrismContainer<?> extension,
boolean add,
OperationResult result) |
protected void |
modifyUserChangePassword(String userOid,
String newPassword,
Task task,
OperationResult result) |
protected void |
modifyUserDelete(String userOid,
ItemPath propertyPath,
Task task,
OperationResult result,
Object... newRealValue) |
protected void |
modifyUserDelete(String userOid,
QName propertyName,
Task task,
OperationResult result,
Object... newRealValue) |
protected void |
modifyUserReplace(String userOid,
ItemPath propertyPath,
Task task,
OperationResult result,
Object... newRealValue) |
protected void |
modifyUserReplace(String userOid,
QName propertyName,
Task task,
OperationResult result,
Object... newRealValue) |
protected void |
prepareNotifications() |
protected void |
purgeResourceSchema(String resourceOid) |
protected void |
recomputeUser(String userOid,
Task task,
OperationResult result) |
protected void |
reconcileOrg(String oid,
Task task,
OperationResult result) |
protected void |
reconcileUser(String oid,
Task task,
OperationResult result) |
protected void |
resetAuthentication() |
protected void |
restartTask(String taskOid) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchObjectByName(Class<T> type,
String name) |
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchObjectByName(Class<T> type,
String name,
Task task,
OperationResult result) |
protected List<PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType>> |
searchOrg(String baseOrgOid,
OrgFilter.Scope scope,
Task task,
OperationResult result) |
protected void |
setDefaultObjectTemplate(QName objectType,
String userTemplateOid) |
protected void |
setDefaultObjectTemplate(QName objectType,
String objectTemplateOid,
OperationResult parentResult) |
protected void |
setDefaultObjectTemplate(QName objectType,
String subType,
String objectTemplateOid,
OperationResult parentResult) |
protected void |
setDefaultUserTemplate(String userTemplateOid) |
protected void |
setSecurityContextUser(String userOid) |
protected void |
startResources() |
protected void |
unassignAccount(String userOid,
String resourceOid,
String intent,
Task task,
OperationResult result) |
protected void |
unassignAll(String userOid,
Task task,
OperationResult result)
Executes assignment replace delta with empty values.
|
protected void |
unassignAllRoles(String userOid) |
protected void |
unassignOrg(String userOid,
String orgOid,
QName relation,
Task task,
OperationResult result) |
protected void |
unassignOrg(String userOid,
String orgOid,
Task task,
OperationResult result) |
protected void |
unassignPrametricRole(String userOid,
String roleOid,
String orgOid,
String tenantOid,
Task task,
OperationResult result) |
protected void |
unassignRole(String userOid,
String roleOid) |
protected void |
unassignRole(String userOid,
String roleOid,
PrismContainer<?> extension,
Task task,
OperationResult result) |
protected void |
unassignRole(String userOid,
String roleOid,
Task task,
OperationResult result) |
protected void |
waitForTaskCloseOrSuspend(String taskOid) |
protected void |
waitForTaskCloseOrSuspend(String taskOid,
int timeout) |
protected void |
waitForTaskCloseOrSuspend(String taskOid,
int timeout,
long sleepTime) |
protected void |
waitForTaskFinish(String taskOid,
boolean checkSubresult) |
protected void |
waitForTaskFinish(String taskOid,
boolean checkSubresult,
int timeout) |
protected void |
waitForTaskFinish(String taskOid,
boolean checkSubresult,
int timeout,
boolean errorOk) |
protected void |
waitForTaskFinish(Task task,
boolean checkSubresult) |
protected void |
waitForTaskFinish(Task task,
boolean checkSubresult,
int timeout) |
protected void |
waitForTaskFinish(Task task,
boolean checkSubresult,
int timeout,
long sleepTime) |
protected OperationResult |
waitForTaskNextRun(String taskOid,
boolean checkSubresult,
int timeout) |
protected OperationResult |
waitForTaskNextRun(Task origTask,
boolean checkSubresult,
int timeout) |
protected OperationResult |
waitForTaskNextRun(Task origTask,
boolean checkSubresult,
int timeout,
OperationResult waitResult) |
protected OperationResult |
waitForTaskNextRunAssertSuccess(String taskOid,
boolean checkSubresult) |
protected OperationResult |
waitForTaskNextRunAssertSuccess(String taskOid,
boolean checkSubresult,
int timeout) |
protected OperationResult |
waitForTaskNextRunAssertSuccess(Task origTask,
boolean checkSubresult) |
protected OperationResult |
waitForTaskNextRunAssertSuccess(Task origTask,
boolean checkSubresult,
int timeout) |
protected void |
waitForTaskStart(String taskOid,
boolean checkSubresult) |
protected void |
waitForTaskStart(String taskOid,
boolean checkSubresult,
int timeout) |
addBasicMetadata, addResourceFromFile, addResourceFromFile, applySyncSettings, assertAccountShadowCommon, assertAccountShadowCommon, assertAccountShadowRepo, assertAccountShadowRepo, assertAccountShadowRepo, assertActivationAdministrativeStatus, assertCacheHits, assertCacheMisses, assertConnectorCapabilitiesFetchIncrement, assertConnectorInitializationCountIncrement, assertConnectorOperationIncrement, assertConnectorSchemaParseIncrement, assertConnectorSimulatedPagingSearchIncrement, assertDummyResourceGroupMembersReadCountIncrement, assertEffectiveActivation, assertFilter, assertNoChanges, assertNoChanges, assertObject, assertPassword, assertResourceCacheHitsIncrement, assertResourceCacheMissesIncrement, assertResourceSchemaFetchIncrement, assertResourceSchemaParseCountIncrement, assertScriptCompileIncrement, assertScriptExecutionIncrement, assertShadow, assertShadowCommon, assertShadowCommon, assertShadowFetchOperationCountIncrement, assertShadowLockout, assertShadowRepo, assertShadowRepo, assertShadowRepo, assertShadows, assertShadows, assertSteadyResources, assertSyncToken, assertSyncToken, assertSyncToken, assertUser, assertUser, assertUserLockout, assertValidityStatus, assumeAssignmentPolicy, assumeResourceAssigmentPolicy, createAccountShadowQuerySecondaryIdentifier, createShadow, createShadow, createShadowNameOnly, createShadowQuerySecondaryIdentifier, deleteResourceAssigmentPolicy, fillInConnectorRef, findAccountShadowByUsername, findConnectorByType, findConnectorByTypeAndVersion, findShadowByName, findShadowByName, getAccountObjectClass, getAssignmentPolicyEnforcementType, getAttributeDefinition, getGroupObjectClass, getIcfUid, getSystemConfiguration, getUserDefinition, initSystemConditional, isSystemInitialized, parseObjectType, parseObjectType, parseObjectTypeFromFile, rememberConnectorCapabilitiesFetchCount, rememberConnectorInitializationCount, rememberConnectorOperationCount, rememberConnectorSchemaParseCount, rememberConnectorSimulatedPagingSearchCount, rememberDummyResourceGroupMembersReadCount, rememberResourceCacheStats, rememberResourceSchemaFetchCount, rememberResourceSchemaParseCount, rememberScriptCompileCount, rememberScriptExecutionCount, rememberShadowFetchOperationCount, rememberSteadyResources, repoAddObject, repoAddObject, repoAddObjectFromFile, repoAddObjectFromFile, repoAddObjectFromFile, repoAddObjectsFromFile, repoAddObjectsFromFile, repoAddObjectsFromFile, repoAddShadowFromFile, unmarshallValueFromFile, unmarshallValueFromFile, unmarshallValueFromFile
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
protected static final int DEFAULT_TASK_WAIT_TIMEOUT
protected static final long DEFAULT_TASK_SLEEP_TIME
protected static final String CONNECTOR_DUMMY_TYPE
protected static final String CONNECTOR_DUMMY_VERSION
protected static final String CONNECTOR_DUMMY_NAMESPACE
protected static final String CONNECTOR_LDAP_TYPE
protected static final String CONNECTOR_LDAP_NAMESPACE
protected static final String CONNECTOR_AD_TYPE
protected static final String CONNECTOR_AD_NAMESPACE
protected static final ItemPath ACTIVATION_ADMINISTRATIVE_STATUS_PATH
protected static final ItemPath ACTIVATION_VALID_FROM_PATH
protected static final ItemPath ACTIVATION_VALID_TO_PATH
protected static final ItemPath PASSWORD_VALUE_PATH
@Autowired(required=true) protected ModelService modelService
@Autowired(required=true) protected ModelInteractionService modelInteractionService
@Autowired(required=true) protected ModelDiagnosticService modelDiagnosticService
@Autowired(required=true) protected com.evolveum.midpoint.xml.ns._public.model.model_3.ModelPortType modelWeb
@Autowired(required=true) protected RepositoryService repositoryService
@Autowired(required=true) protected ProvisioningService provisioningService
@Autowired(required=true) protected HookRegistry hookRegistry
@Autowired(required=true) protected Clock clock
@Autowired(required=true) protected PrismContext prismContext
@Autowired(required=true) protected DummyTransport dummyTransport
@Autowired(required=false) protected NotificationManager notificationManager
@Autowired(required=false) protected UserProfileService userProfileService
@Autowired(required=true) protected SecurityEnforcer securityEnforcer
@Autowired(required=true) protected MidpointFunctions libraryMidpointFunctions
protected DummyAuditService dummyAuditService
protected boolean verbose
public void initSystem(Task initTask, OperationResult initResult) throws Exception
initSystem
in class AbstractIntegrationTest
Exception
protected void cleanUpSecurity()
protected void importObjectFromFile(String filename) throws FileNotFoundException
FileNotFoundException
protected void importObjectFromFile(File file) throws FileNotFoundException
FileNotFoundException
protected void importObjectFromFile(String filename, OperationResult result) throws FileNotFoundException
FileNotFoundException
protected void importObjectFromFile(File file, OperationResult result) throws FileNotFoundException
FileNotFoundException
protected void importObjectFromFile(File file, Task task, OperationResult result) throws FileNotFoundException
FileNotFoundException
protected Throwable findCause(OperationResult result)
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<T> importAndGetObjectFromFile(Class<T> type, String filename, String oid, Task task, OperationResult result) throws FileNotFoundException, ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<T> importAndGetObjectFromFile(Class<T> type, File file, String oid, Task task, OperationResult result) throws FileNotFoundException, ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected void applyResourceSchema(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType accountType, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) throws SchemaException
SchemaException
protected void assertUsers(int expectedNumberOfUsers) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected void assertUserProperty(String userOid, QName propertyName, Object... expectedPropValues) throws ObjectNotFoundException, SchemaException
protected void assertUserProperty(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, QName propertyName, Object... expectedPropValues)
protected void assertLinked(String userOid, String accountOid) throws ObjectNotFoundException, SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertLinked(Class<F> type, String focusOid, String projectionOid) throws ObjectNotFoundException, SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertLinked(PrismObject<F> focus, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> projection) throws ObjectNotFoundException, SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertLinked(PrismObject<F> focus, String projectionOid) throws ObjectNotFoundException, SchemaException
protected void assertNotLinked(String userOid, String accountOid) throws ObjectNotFoundException, SchemaException
protected void assertNotLinked(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> account) throws ObjectNotFoundException, SchemaException
protected void assertNotLinked(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String accountOid) throws ObjectNotFoundException, SchemaException
protected void assertNoLinkedAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user)
protected void assertAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String resourceOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected void assertAccounts(String userOid, int numAccounts) throws ObjectNotFoundException, SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertLinks(PrismObject<F> focus, int expectedNumLinks) throws ObjectNotFoundException, SchemaException
protected void assertAdministrativeStatusEnabled(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> user)
protected void assertAdministrativeStatusDisabled(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> user)
protected void assertAdministrativeStatus(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> object, com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expected)
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createModifyUserReplaceDelta(String userOid, QName propertyName, Object... newRealValue)
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createModifyUserReplaceDelta(String userOid, ItemPath propertyName, Object... newRealValue)
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createModifyUserAddDelta(String userOid, ItemPath propertyName, Object... newRealValue)
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createModifyUserDeleteDelta(String userOid, ItemPath propertyName, Object... newRealValue)
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createModifyUserAddAccount(String userOid, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) throws SchemaException
SchemaException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createModifyUserDeleteAccount(String userOid, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createModifyUserUnlinkAccount(String userOid, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createModifyAccountShadowEmptyDelta(String accountOid)
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createModifyAccountShadowReplaceAttributeDelta(String accountOid, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String attributeName, Object... newRealValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createModifyAccountShadowReplaceAttributeDelta(String accountOid, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, QName attributeName, Object... newRealValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createModifyAccountShadowReplaceDelta(String accountOid, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, ItemPath itemPath, Object... newRealValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException
protected <T> PropertyDelta<T> createAttributeReplaceDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String attributeLocalName, T... newRealValue) throws SchemaException
SchemaException
protected <T> PropertyDelta<T> createAttributeReplaceDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, QName attributeQName, T... newRealValue) throws SchemaException
SchemaException
protected <T> PropertyDelta<T> createAttributeAddDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String attributeLocalName, T... newRealValue) throws SchemaException
SchemaException
protected <T> PropertyDelta<T> createAttributeAddDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, QName attributeQName, T... newRealValue) throws SchemaException
SchemaException
protected <T> PropertyDelta<T> createAttributeDeleteDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String attributeLocalName, T... newRealValue) throws SchemaException
SchemaException
protected <T> PropertyDelta<T> createAttributeDeleteDelta(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, QName attributeQName, T... newRealValue) throws SchemaException
SchemaException
protected ResourceAttributeDefinition getAttributeDefinition(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, QName attributeName) throws SchemaException
SchemaException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createModifyAccountShadowAddDelta(String accountOid, ItemPath propertyName, Object... newRealValue)
protected void modifyUserReplace(String userOid, QName propertyName, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyUserReplace(String userOid, ItemPath propertyPath, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void modifyObjectReplaceProperty(Class<O> type, String oid, QName propertyName, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void modifyObjectReplaceProperty(Class<O> type, String oid, ItemPath propertyPath, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void modifyObjectDeleteProperty(Class<O> type, String oid, ItemPath propertyPath, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void modifyObjectAddProperty(Class<O> type, String oid, ItemPath propertyPath, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,C extends Containerable> void modifyObjectReplaceContainer(Class<O> type, String oid, ItemPath propertyPath, Task task, OperationResult result, C... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,C extends Containerable> void modifyObjectAddContainer(Class<O> type, String oid, ItemPath propertyPath, Task task, OperationResult result, C... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType,C extends Containerable> void modifyObjectDeleteContainer(Class<O> type, String oid, ItemPath propertyPath, Task task, OperationResult result, C... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void modifyObjectReplaceReference(Class<O> type, String oid, QName refName, Task task, OperationResult result, PrismReferenceValue... refVals) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void modifyObjectReplaceReference(Class<O> type, String oid, ItemPath refPath, Task task, OperationResult result, PrismReferenceValue... refVals) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyUserAdd(String userOid, QName propertyName, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyUserAdd(String userOid, ItemPath propertyPath, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyUserDelete(String userOid, QName propertyName, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyUserDelete(String userOid, ItemPath propertyPath, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyAccountShadowReplace(String accountOid, ItemPath propertyPath, Task task, OperationResult result, Object... newRealValue) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyUserChangePassword(String userOid, String newPassword, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyAccountChangePassword(String accountOid, String newPassword, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void recomputeUser(String userOid, Task task, OperationResult result) throws SchemaException, PolicyViolationException, ExpressionEvaluationException, ObjectNotFoundException, ObjectAlreadyExistsException, CommunicationException, ConfigurationException, SecurityViolationException
protected void assignRole(String userOid, String roleOid) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void assignRole(String userOid, String roleOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void assignRole(String userOid, String roleOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType activationType, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void unassignRole(String userOid, String roleOid) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void unassignRole(String userOid, String roleOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void assignRole(String userOid, String roleOid, PrismContainer<?> extension, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void unassignRole(String userOid, String roleOid, PrismContainer<?> extension, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void unassignAllRoles(String userOid) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void assignOrg(String userOid, String orgOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void assignOrg(String userOid, String orgOid, QName relation) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void assignOrg(String userOid, String orgOid, QName relation, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void unassignOrg(String userOid, String orgOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void unassignOrg(String userOid, String orgOid, QName relation, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyUserAssignment(String userOid, String roleOid, QName refType, QName relation, Task task, PrismContainer<?> extension, boolean add, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void modifyUserAssignment(String userOid, String roleOid, QName refType, QName relation, Task task, PrismContainer<?> extension, com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType activationType, boolean add, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected void unassignAll(String userOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectAlreadyExistsException, PolicyViolationException, SecurityViolationException
protected ContainerDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> createAssignmentModification(String roleOid, QName refType, QName relation, PrismContainer<?> extension, com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType activationType, boolean add) throws SchemaException
SchemaException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createAssignmentUserDelta(String userOid, String roleOid, QName refType, QName relation, PrismContainer<?> extension, boolean add) throws SchemaException
SchemaException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createAssignmentUserDelta(String userOid, String roleOid, QName refType, QName relation, PrismContainer<?> extension, com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationType activationType, boolean add) throws SchemaException
SchemaException
protected ContainerDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> createAccountAssignmentModification(String resourceOid, String intent, boolean add) throws SchemaException
SchemaException
protected <V> PropertyDelta<V> createUserPropertyReplaceModification(QName propertyName, V... values)
protected ContainerDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> createAssignmentModification(String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent, boolean add) throws SchemaException
SchemaException
protected ContainerDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> createAssignmentModification(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignmentType, boolean add) throws SchemaException
SchemaException
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType createAccountAssignment(String resourceOid, String intent)
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType createAssignment(String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent)
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createParametricAssignmentDelta(String userOid, String roleOid, String orgOid, String tenantOid, boolean adding) throws SchemaException
SchemaException
protected void assignPrametricRole(String userOid, String roleOid, String orgOid, String tenantOid, Task task, OperationResult result) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void unassignPrametricRole(String userOid, String roleOid, String orgOid, String tenantOid, Task task, OperationResult result) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void assertAssignees(String targetOid, int expectedAssignees) throws SchemaException
SchemaException
protected int countAssignees(String targetOid, OperationResult result) throws SchemaException
SchemaException
protected SearchResultList<PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType>> listAssignees(String targetOid, OperationResult result) throws SchemaException
SchemaException
protected com.evolveum.midpoint.xml.ns._public.common.common_3.ConstructionType createAccountConstruction(String resourceOid, String intent) throws SchemaException
SchemaException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createReplaceAccountConstructionUserDelta(String userOid, Long id, com.evolveum.midpoint.xml.ns._public.common.common_3.ConstructionType newValue) throws SchemaException
SchemaException
protected ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createAccountAssignmentUserDelta(String userOid, String resourceOid, String intent, boolean add) throws SchemaException
SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> ObjectDelta<F> createAssignmentDelta(Class<F> type, String focusOid, String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent, boolean add) throws SchemaException
SchemaException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> Collection<ObjectDeltaOperation<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> executeChanges(ObjectDelta<O> objectDelta, ModelExecuteOptions options, Task task, OperationResult result) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void assignAccount(String userOid, String resourceOid, String intent) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void assignAccount(String userOid, String resourceOid, String intent, Task task, OperationResult result) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void unassignAccount(String userOid, String resourceOid, String intent, Task task, OperationResult result) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getUser(String userOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getUserFromRepo(String userOid) throws ObjectNotFoundException, SchemaException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<O> findObjectByName(Class<O> type, String name) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected ObjectQuery createNameQuery(String name) throws SchemaException
SchemaException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> findUserByUsername(String username) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.RoleType> getRole(String oid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> findAccountByUsername(String username, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> findAccountByUsername(String username, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected Collection<PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType>> listAccounts(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> getShadowModel(String accountOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> getShadowModelNoFetch(String accountOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> getShadowModel(String accountOid, boolean noFetch, boolean assertSuccess) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertNoObject(Class<O> type, String oid) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertNoObject(Class<O> type, String oid, Task task, OperationResult result) throws SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected void assertNoShadow(String username, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected void assertHasShadow(String username, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected ObjectQuery createAccountShadowQuery(String username, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource) throws SchemaException
createAccountShadowQuery
in class AbstractIntegrationTest
SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> String getSingleLinkOid(PrismObject<F> focus)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> PrismReferenceValue getSingleLinkRef(PrismObject<F> focus)
protected String getLinkRefOid(String userOid, String resourceOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> String getLinkRefOid(PrismObject<F> focus, String resourceOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> PrismReferenceValue getLinkRef(PrismObject<F> focus, String resourceOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> String getLinkRefOid(PrismObject<F> focus, String resourceOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType kind, String intent) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected void assertUserNoAccountRefs(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user)
protected void assertNoShadow(String shadowOid) throws SchemaException
SchemaException
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType getUserAssignment(String userOid, String roleOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertNoAssignments(PrismObject<F> user)
protected void assertNoAssignments(String userOid, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertNoAssignments(String userOid) throws ObjectNotFoundException, SchemaException
protected void assertAssignedRole(String userOid, String roleOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertAssignedRole(PrismObject<F> focus, String roleOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertAssignedRole(PrismObject<F> user, String roleOid)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertRoleMembershipRef(PrismObject<F> focus, String... roleOids)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertNotAssignedRole(PrismObject<F> focus, String roleOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertNotAssignedRole(String userOid, String roleOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertNotAssignedResource(String userOid, String resourceOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertAssignedResource(String userOid, String resourceOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertNotAssignedRole(PrismObject<F> user, String roleOid)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertNotAssignedOrg(PrismObject<F> user, String orgOid, QName relation)
protected void assertAssignedOrg(String userOid, String orgOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertAssignedOrg(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> focus, String orgOid, QName relation)
protected void assertAssignedOrg(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> focus, String orgOid)
protected void assertAssignedOrg(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> org)
protected void assertHasOrg(String userOid, String orgOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertHasOrg(PrismObject<O> focus, String orgOid)
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertHasOrg(PrismObject<O> user, String orgOid, QName relation)
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertHasNoOrg(PrismObject<O> user)
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertHasOrgs(PrismObject<O> user, int expectedNumber)
protected void assertSubOrgs(String baseOrgOid, int expected) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected void assertSubOrgs(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> baseOrg, int expected) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected List<PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType>> getSubOrgs(String baseOrgOid, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected String dumpOrgTree(String topOrgOid) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected String dumpOrgTree(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType> topOrg, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected void displayUsers() throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertAssignments(PrismObject<F> user, int expectedNumber)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertAssignments(PrismObject<F> user, Class expectedType, int expectedNumber)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertAssigned(PrismObject<F> user, String targetOid, QName refType)
protected void assertAssignedNoOrg(String userOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertAssignedNoOrg(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertAssignedNoRole(PrismObject<F> focus, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertAssignedNoRole(String userOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertAssignedNoRole(PrismObject<F> user)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertAssignedNo(PrismObject<F> user, QName refType)
protected void assertAssignedAccount(String userOid, String resourceOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
protected void assertAssignedAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String resourceOid) throws ObjectNotFoundException, SchemaException
protected void assertAssignedNoAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String resourceOid) throws ObjectNotFoundException, SchemaException
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.RoleType> getRoleDefinition()
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> getShadowDefinition()
getShadowDefinition
in class AbstractIntegrationTest
protected PrismContainerDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType> getAssignmentDefinition()
protected PrismContainerDefinition<?> getAssignmentExtensionDefinition()
protected PrismContainer<?> getAssignmentExtensionInstance() throws SchemaException
SchemaException
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> getResourceDefinition()
protected PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> getAccountShadowDefinition()
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createUser(String name, String fullName) throws SchemaException
SchemaException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createUser(String name, String fullName, Boolean enabled) throws SchemaException
SchemaException
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> createUser(String name, String givenName, String familyName, Boolean enabled) throws SchemaException
SchemaException
protected void fillinUser(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String name, String fullName)
protected void fillinUserAssignmentAccountConstruction(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String resourceOid)
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createAccount(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String name, boolean enabled) throws SchemaException
SchemaException
protected <T> void addAttributeToShadow(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String attrName, T attrValue) throws SchemaException
SchemaException
protected void setDefaultUserTemplate(String userTemplateOid) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
protected void setDefaultObjectTemplate(QName objectType, String userTemplateOid) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
protected void setDefaultObjectTemplate(QName objectType, String objectTemplateOid, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
protected void setDefaultObjectTemplate(QName objectType, String subType, String objectTemplateOid, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ObjectAlreadyExistsException
protected ItemPath getIcfsNameAttributePath()
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertResolvedResourceRefs(ModelContext<F> context)
protected void breakAssignmentDelta(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas) throws SchemaException
SchemaException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void breakAssignmentDelta(ObjectDelta<F> userDelta) throws SchemaException
SchemaException
protected void purgeResourceSchema(String resourceOid) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected List<PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType>> searchOrg(String baseOrgOid, OrgFilter.Scope scope, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<T> searchObjectByName(Class<T> type, String name) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<T> searchObjectByName(Class<T> type, String name, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
protected void assertAccountShadowModel(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType) throws SchemaException
SchemaException
protected void assertAccountShadowModel(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, MatchingRule<String> matchingRule) throws SchemaException
SchemaException
protected void assertShadowModel(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, QName objectClass) throws SchemaException
SchemaException
protected void assertShadowModel(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> accountShadow, String oid, String username, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, QName objectClass, MatchingRule<String> nameMatchingRule) throws SchemaException
SchemaException
protected QName getAttributeQName(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String attributeLocalName)
protected ItemPath getAttributePath(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, String attributeLocalName)
protected void waitForTaskFinish(Task task, boolean checkSubresult) throws Exception
Exception
protected void waitForTaskFinish(Task task, boolean checkSubresult, int timeout) throws Exception
Exception
protected void waitForTaskFinish(Task task, boolean checkSubresult, int timeout, long sleepTime) throws Exception
Exception
protected void waitForTaskCloseOrSuspend(String taskOid) throws Exception
Exception
protected void waitForTaskCloseOrSuspend(String taskOid, int timeout) throws Exception
Exception
protected void waitForTaskCloseOrSuspend(String taskOid, int timeout, long sleepTime) throws Exception
Exception
protected void waitForTaskFinish(String taskOid, boolean checkSubresult) throws CommonException
CommonException
protected void waitForTaskFinish(String taskOid, boolean checkSubresult, int timeout) throws CommonException
CommonException
protected void waitForTaskFinish(String taskOid, boolean checkSubresult, int timeout, boolean errorOk) throws CommonException
CommonException
protected void waitForTaskStart(String taskOid, boolean checkSubresult) throws Exception
Exception
protected void waitForTaskStart(String taskOid, boolean checkSubresult, int timeout) throws Exception
Exception
protected OperationResult waitForTaskNextRunAssertSuccess(String taskOid, boolean checkSubresult) throws Exception
Exception
protected OperationResult waitForTaskNextRunAssertSuccess(Task origTask, boolean checkSubresult) throws Exception
Exception
protected OperationResult waitForTaskNextRunAssertSuccess(String taskOid, boolean checkSubresult, int timeout) throws Exception
Exception
protected OperationResult waitForTaskNextRunAssertSuccess(Task origTask, boolean checkSubresult, int timeout) throws Exception
Exception
protected OperationResult waitForTaskNextRun(String taskOid, boolean checkSubresult, int timeout) throws Exception
Exception
protected OperationResult waitForTaskNextRun(Task origTask, boolean checkSubresult, int timeout) throws Exception
Exception
protected OperationResult waitForTaskNextRun(Task origTask, boolean checkSubresult, int timeout, OperationResult waitResult) throws Exception
Exception
protected void restartTask(String taskOid) throws CommonException
CommonException
protected void setSecurityContextUser(String userOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected String getSecurityContextUserOid()
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertSideEffectiveDeltasOnly(String desc, ObjectDelta<F> focusDelta)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertSideEffectiveDeltasOnly(ObjectDelta<F> focusDelta, String desc, com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expectedEfficientActivation)
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertEffectualDeltas(ObjectDelta<F> focusDelta, String desc, com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType expectedEfficientActivation, int expectedEffectualModifications)
protected void assertValidFrom(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> obj, Date expectedDate)
protected void assertValidTo(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> obj, Date expectedDate)
protected PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType> getTask(String taskOid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<O> getObject(Class<O> type, String oid) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<O> getObjectViaRepo(Class<O> type, String oid) throws ObjectNotFoundException, SchemaException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void addObjects(File... files) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException, IOException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void addObject(File file) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException, IOException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<O> addObject(File file, Task task, OperationResult result) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException, IOException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void addObject(PrismObject<O> object) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void addObject(PrismObject<O> object, Task task, OperationResult result) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void deleteObject(Class<O> type, String oid, Task task, OperationResult result) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void deleteObjectRaw(Class<O> type, String oid, Task task, OperationResult result) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void deleteObject(Class<O> type, String oid) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void addTrigger(String oid, XMLGregorianCalendar timestamp, String uri) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertTrigger(PrismObject<O> object, String handlerUri, XMLGregorianCalendar start, XMLGregorianCalendar end) throws ObjectNotFoundException, SchemaException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertTrigger(PrismObject<O> object, String handlerUri, XMLGregorianCalendar mid, long tolerance) throws ObjectNotFoundException, SchemaException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertNoTrigger(Class<O> type, String oid) throws ObjectNotFoundException, SchemaException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertNoTrigger(PrismObject<O> object) throws ObjectNotFoundException, SchemaException
protected void prepareNotifications()
protected void checkDummyTransportMessages(String name, int expectedCount)
protected void checkDummyTransportMessagesAtLeast(String name, int expectedCount)
protected DummyAccount getDummyAccount(String dummyInstanceName, String username) throws SchemaViolationException
SchemaViolationException
protected DummyAccount getDummyAccountById(String dummyInstanceName, String id) throws SchemaViolationException
SchemaViolationException
protected void assertDefaultDummyAccount(String username, String fullname, boolean active) throws SchemaViolationException
SchemaViolationException
protected DummyAccount assertDummyAccount(String dummyInstanceName, String username, String fullname, boolean active) throws SchemaViolationException
SchemaViolationException
protected void assertDummyAccount(String dummyInstanceName, String username) throws SchemaViolationException
SchemaViolationException
protected void assertDummyAccountById(String dummyInstanceName, String id) throws SchemaViolationException
SchemaViolationException
protected void assertNoDummyAccountById(String dummyInstanceName, String id) throws SchemaViolationException
SchemaViolationException
protected void assertDummyAccountActivation(String dummyInstanceName, String username, boolean active) throws SchemaViolationException
SchemaViolationException
protected void assertNoDummyAccount(String username) throws SchemaViolationException
SchemaViolationException
protected void assertNoDummyAccount(String dummyInstanceName, String username) throws SchemaViolationException
SchemaViolationException
protected void assertDefaultDummyAccountAttribute(String username, String attributeName, Object... expectedAttributeValues) throws SchemaViolationException
SchemaViolationException
protected void assertDummyAccountAttribute(String dummyInstanceName, String username, String attributeName, Object... expectedAttributeValues) throws SchemaViolationException
SchemaViolationException
protected void assertNoDummyAccountAttribute(String dummyInstanceName, String username, String attributeName) throws SchemaViolationException
SchemaViolationException
protected void assertDummyAccountAttributeGenerated(String dummyInstanceName, String username) throws SchemaViolationException
SchemaViolationException
protected DummyGroup getDummyGroup(String dummyInstanceName, String name) throws SchemaViolationException
SchemaViolationException
protected void assertDummyGroup(String username, String description) throws SchemaViolationException
SchemaViolationException
protected void assertDummyGroup(String username, String description, Boolean active) throws SchemaViolationException
SchemaViolationException
protected void assertDummyGroup(String dummyInstanceName, String groupname, String description, Boolean active) throws SchemaViolationException
SchemaViolationException
protected void assertNoDummyGroup(String groupname) throws SchemaViolationException
SchemaViolationException
protected void assertNoDummyGroup(String dummyInstanceName, String groupname) throws SchemaViolationException
SchemaViolationException
protected void assertDummyGroupAttribute(String dummyInstanceName, String groupname, String attributeName, Object... expectedAttributeValues) throws SchemaViolationException
SchemaViolationException
protected void assertDummyGroupMember(String dummyInstanceName, String dummyGroupName, String accountId) throws ConnectException, FileNotFoundException, SchemaViolationException
protected void assertDefaultDummyGroupMember(String dummyGroupName, String accountId) throws ConnectException, FileNotFoundException, SchemaViolationException
protected void assertNoDummyGroupMember(String dummyInstanceName, String dummyGroupName, String accountId) throws ConnectException, FileNotFoundException, SchemaViolationException
protected void assertNoDefaultDummyGroupMember(String dummyGroupName, String accountId) throws ConnectException, FileNotFoundException, SchemaViolationException
protected void assertDummyAccountNoAttribute(String dummyInstanceName, String username, String attributeName) throws SchemaViolationException
SchemaViolationException
protected org.opends.server.types.Entry assertOpenDjAccount(String uid, String cn, Boolean active) throws org.opends.server.types.DirectoryException
org.opends.server.types.DirectoryException
protected void assertNoOpenDjAccount(String uid) throws org.opends.server.types.DirectoryException
org.opends.server.types.DirectoryException
protected void assertIteration(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, Integer expectedIteration, String expectedIterationToken)
protected void assertIterationDelta(ObjectDelta<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadowDelta, Integer expectedIteration, String expectedIterationToken)
protected void assertSituation(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, com.evolveum.midpoint.xml.ns._public.common.common_3.SynchronizationSituationType expectedSituation)
protected void assertEnableTimestampFocus(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> focus, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime)
protected void assertDisableTimestampFocus(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> focus, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime)
protected void assertEnableTimestampShadow(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime)
protected void assertDisableTimestampShadow(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime)
protected void assertDisableReasonShadow(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, String expectedReason)
protected void assertPassword(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String expectedPassword) throws EncryptionException
EncryptionException
protected void assertUserLdapPassword(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String expectedPassword) throws EncryptionException
EncryptionException
protected void assertShadowLdapPassword(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, String expectedPassword) throws EncryptionException
EncryptionException
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void assertLdapPassword(ProtectedStringType protectedStringType, String expectedPassword, PrismObject<O> source) throws EncryptionException
EncryptionException
protected void assertGroupMember(DummyGroup group, String accountId)
protected void assertNoGroupMember(DummyGroup group, String accountId)
protected void assertNoGroupMembers(DummyGroup group)
protected void login(String principalName) throws ObjectNotFoundException
ObjectNotFoundException
protected void login(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user)
protected void login(MidPointPrincipal principal)
protected void loginSuperUser(String principalName) throws SchemaException, ObjectNotFoundException
protected void loginSuperUser(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user) throws SchemaException
SchemaException
protected void loginSuperUser(MidPointPrincipal principal) throws SchemaException
SchemaException
protected void loginAnonymous()
protected void assertLoggedInUser(String username)
protected void resetAuthentication()
protected void assertNoAuthentication()
protected void displayAllUsers() throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
protected com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectSynchronizationType determineSynchronization(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, Class<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> type, String name)
protected void assertShadowKindIntent(String shadowOid, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType expectedKind, String expectedIntent) throws ObjectNotFoundException, SchemaException
protected void assertShadowKindIntent(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType expectedKind, String expectedIntent)
protected void modifyRoleAddConstruction(String roleOid, long inducementId, String resourceOid) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void modifyRoleAddInducementTarget(String roleOid, String targetOid, boolean reconcileAffected, Task task) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType findInducementByTarget(String roleOid, String targetOid) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void modifyRoleDeleteInducementTarget(String roleOid, String targetOid) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void modifyRoleDeleteInducement(String roleOid, long inducementId, boolean reconcileAffected, Task task) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void modifyUserAddAccount(String userOid, File accountFile, Task task, OperationResult result) throws SchemaException, IOException, ObjectAlreadyExistsException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, PolicyViolationException, SecurityViolationException
protected void assertAuthorized(MidPointPrincipal principal, String action) throws SchemaException
SchemaException
protected void assertAuthorized(MidPointPrincipal principal, String action, com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase) throws SchemaException
SchemaException
protected void assertNotAuthorized(MidPointPrincipal principal, String action) throws SchemaException
SchemaException
protected void assertNotAuthorized(MidPointPrincipal principal, String action, com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase) throws SchemaException
SchemaException
protected void assertAdminGuiConfigurations(MidPointPrincipal principal, int expectedMenuLinks, int expectedDashboardLinks, int expectedObjectForms)
protected void assertAdminGuiConfigurations(com.evolveum.midpoint.xml.ns._public.common.common_3.AdminGuiConfigurationType adminGuiConfiguration, int expectedMenuLinks, int expectedDashboardLinks, int expectedObjectForms)
protected void createSecurityContext(MidPointPrincipal principal)
protected Object createSecureObject()
protected Collection<org.springframework.security.access.ConfigAttribute> createConfigAttributes(String action)
protected <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObjectDefinition<O> getEditObjectDefinition(PrismObject<O> object) throws SchemaException, ConfigurationException, ObjectNotFoundException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> void assertRoleTypes(PrismObject<F> focus, String... expectedRoleTypes) throws ObjectNotFoundException, SchemaException, ConfigurationException
protected <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> RoleSelectionSpecification getAssignableRoleSpecification(PrismObject<F> focus) throws ObjectNotFoundException, SchemaException, ConfigurationException
protected void assertRoleTypes(RoleSelectionSpecification roleSpec, String... expectedRoleTypes)
protected void assertEncryptedUserPassword(String userOid, String expectedClearPassword) throws EncryptionException, ObjectNotFoundException, SchemaException
protected void assertEncryptedUserPassword(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, String expectedClearPassword) throws EncryptionException
EncryptionException
protected void assertPasswordMetadata(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, boolean create, XMLGregorianCalendar start, XMLGregorianCalendar end, String actorOid, String channel)
protected void assertDummyPassword(String instance, String userId, String expectedClearPassword) throws SchemaViolationException
SchemaViolationException
protected void reconcileUser(String oid, Task task, OperationResult result) throws CommunicationException, ObjectAlreadyExistsException, ExpressionEvaluationException, PolicyViolationException, SchemaException, SecurityViolationException, ConfigurationException, ObjectNotFoundException
protected void reconcileOrg(String oid, Task task, OperationResult result) throws CommunicationException, ObjectAlreadyExistsException, ExpressionEvaluationException, PolicyViolationException, SchemaException, SecurityViolationException, ConfigurationException, ObjectNotFoundException
protected void assertRefEquals(String message, com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType expected, com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType actual)
protected void assertTaskClosed(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType> task)
Copyright © 2016 evolveum. All rights reserved.