Tabnine Logo
DummyAccount.isLockout
Code IndexAdd Tabnine to your IDE (free)

How to use
isLockout
method
in
com.evolveum.icf.dummy.resource.DummyAccount

Best Java code snippets using com.evolveum.icf.dummy.resource.DummyAccount.isLockout (Showing top 4 results out of 315)

origin: Evolveum/midpoint

if (account.isLockout() != null) {
  builder.addAttribute(OperationalAttributes.LOCK_OUT_NAME, account.isLockout());
origin: Evolveum/midpoint

@Test
public void test176ModifyUserUnlock() throws Exception {
  final String TEST_NAME = "test176ModifyUserUnlock";
  displayTestTitle(TEST_NAME);
  // GIVEN
  Task task = taskManager.createTaskInstance(TestActivation.class.getName() + "." + TEST_NAME);
  OperationResult result = task.getResult();
  assumeAssignmentPolicy(AssignmentPolicyEnforcementType.FULL);
  DummyAccount dummyAccount = getDummyAccount(null, ACCOUNT_JACK_DUMMY_USERNAME);
  dummyAccount.setLockout(true);
  // WHEN
  modifyUserReplace(USER_JACK_OID, SchemaConstants.PATH_ACTIVATION_LOCKOUT_STATUS, task, result,
      LockoutStatusType.NORMAL);
  // THEN
  result.computeStatus();
  TestUtil.assertSuccess("executeChanges result", result);
  DummyAccount dummyAccountAfter = getDummyAccount(null, ACCOUNT_JACK_DUMMY_USERNAME);
  assertFalse("Dummy account was not unlocked", dummyAccountAfter.isLockout());
  PrismObject<UserType> userJack = getUser(USER_JACK_OID);
  display("User after change execution", userJack);
  assertUserJack(userJack);
  PrismObject<ShadowType> shadow = modelService.getObject(ShadowType.class, accountOid, null, task, result);
  PrismAsserts.assertPropertyValue(shadow, SchemaConstants.PATH_ACTIVATION_LOCKOUT_STATUS,
      LockoutStatusType.NORMAL);
  checkAdminStatusFor15x(userJack, true, true, true);
}
origin: Evolveum/midpoint

@Test
public void test174ModifyAccountUnlock() throws Exception {
  final String TEST_NAME = "test174ModifyAccountUnlock";
  displayTestTitle(TEST_NAME);
  // GIVEN
  Task task = taskManager.createTaskInstance(TestActivation.class.getName() + "." + TEST_NAME);
  OperationResult result = task.getResult();
  assumeAssignmentPolicy(AssignmentPolicyEnforcementType.FULL);
  // WHEN
  ObjectDelta<ShadowType> dummyDelta = createModifyAccountShadowReplaceDelta(accountOid, null,
      SchemaConstants.PATH_ACTIVATION_LOCKOUT_STATUS, LockoutStatusType.NORMAL);
  Collection<ObjectDelta<? extends ObjectType>> deltas = MiscSchemaUtil.createCollection(dummyDelta);
  modelService.executeChanges(deltas, null, task, result);
  // THEN
  result.computeStatus();
  TestUtil.assertSuccess("executeChanges result", result);
  DummyAccount dummyAccount = getDummyAccount(null, ACCOUNT_JACK_DUMMY_USERNAME);
  assertFalse("Dummy account was not unlocked", dummyAccount.isLockout());
  PrismObject<UserType> userJack = getUser(USER_JACK_OID);
  display("User after change execution", userJack);
  assertUserJack(userJack);
  PrismObject<ShadowType> shadow = modelService.getObject(ShadowType.class, accountOid, null, task, result);
  PrismAsserts.assertPropertyValue(shadow, SchemaConstants.PATH_ACTIVATION_LOCKOUT_STATUS,
      LockoutStatusType.NORMAL);
  checkAdminStatusFor15x(userJack, true, true, true);
}
origin: Evolveum/midpoint

assertTrue("Account is not locked", dummyAccount.isLockout());
assertFalse("Dummy account "+transformNameFromResource(ACCOUNT_WILL_USERNAME)+" is locked, expected unlocked", dummyAccount.isLockout());
com.evolveum.icf.dummy.resourceDummyAccountisLockout

Popular methods of DummyAccount

  • <init>
  • addAttributeValues
  • setEnabled
  • setPassword
  • getAttributeValue
  • getAttributeValues
  • getName
  • getPassword
  • replaceAttributeValue
  • replaceAttributeValues
  • addAttributeValue
  • debugDump
  • addAttributeValue,
  • debugDump,
  • getId,
  • isEnabled,
  • setLockout,
  • getValidFrom,
  • getValidTo,
  • removeAttributeValues,
  • setValidFrom

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now