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

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

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

origin: Evolveum/midpoint

@Test
public void test172GetAccountLocked() throws Exception {
  final String TEST_NAME = "test172GetAccountLocked";
  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
  PrismObject<ShadowType> shadow = modelService.getObject(ShadowType.class, accountOid, null, task, result);
  // THEN
  result.computeStatus();
  TestUtil.assertSuccess("executeChanges result", result);
  PrismAsserts.assertPropertyValue(shadow, SchemaConstants.PATH_ACTIVATION_LOCKOUT_STATUS,
      LockoutStatusType.LOCKED);
  PrismObject<UserType> userAfter = getUser(USER_JACK_OID);
  display("User after", userAfter);
  checkAdminStatusFor15x(userAfter, true, true, true);
}
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

dummyAccount.setLockout(true);
origin: Evolveum/midpoint

account.setLockout(getBooleanMandatory(attr));
origin: Evolveum/midpoint

account.setLockout(getBooleanMandatory(delta));
origin: Evolveum/midpoint

newAccount.setLockout(lockout);
com.evolveum.icf.dummy.resourceDummyAccountsetLockout

Popular methods of DummyAccount

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • CodeWhisperer alternatives
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