Codota Logo
com.evolveum.icf.dummy.resource
Code IndexAdd Codota to your IDE (free)

How to use com.evolveum.icf.dummy.resource

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: Evolveum/midpoint

public DummyAttributeDefinition addAttrDef(DummyObjectClass accountObjectClass, String attrName, Class<?> type, boolean isRequired, boolean isMulti) {
  DummyAttributeDefinition attrDef = new DummyAttributeDefinition(attrName, type, isRequired, isMulti);
  accountObjectClass.add(attrDef);
  return attrDef;
}
origin: Evolveum/midpoint

public DummyAccount addAccount(String userId, String fullName) throws ObjectAlreadyExistsException, SchemaViolationException, ConnectException, FileNotFoundException, ConflictException, InterruptedException {
  DummyAccount account = new DummyAccount(userId);
  account.setEnabled(true);
  account.addAttributeValues(DUMMY_ACCOUNT_ATTRIBUTE_FULLNAME_NAME, fullName);
  dummyResource.addAccount(account);
  return account;
}
origin: Evolveum/midpoint

public String addAccount(DummyAccount newAccount) throws ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, ConflictException, InterruptedException {
  if (generateAccountDescriptionOnCreate && newAccount.getAttributeValue(DummyAccount.ATTR_DESCRIPTION_NAME) == null) {
    newAccount.addAttributeValue(DummyAccount.ATTR_DESCRIPTION_NAME, "Description of " + newAccount.getName());
  }
  return addObject(accounts, newAccount);
}
origin: Evolveum/midpoint

/**
 * Resets the blocking state, error simulation, etc.
 */
public void reset() {
  dummyResource.setBreakMode(BreakMode.NONE);
  dummyResource.setBlockOperations(false);
  dummyResource.unblockAll();
}

origin: Evolveum/midpoint

void recordModify(DummyObject dObject) {
  recordWriteOperation("modify");
  if (syncStyle != DummySyncStyle.NONE) {
    int syncToken = nextSyncToken();
    DummyDelta delta = new DummyDelta(syncToken, dObject.getClass(), dObject.getId(), dObject.getName(), DummyDeltaType.MODIFY);
    deltas.add(delta);
  }
}
origin: Evolveum/midpoint

public void renameAccount(String id, String oldUsername, String newUsername) throws ObjectDoesNotExistException, ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, SchemaViolationException, ConflictException, InterruptedException {
  renameObject(DummyAccount.class, accounts, id, oldUsername, newUsername);
  for (DummyGroup group : groups.values()) {
    if (group.containsMember(oldUsername)) {
      group.removeMember(oldUsername);
      group.addMember(newUsername);
    }
  }
}
origin: Evolveum/midpoint

public DummyOrg addOrgTop() throws ConnectException, FileNotFoundException, ObjectAlreadyExistsException, SchemaViolationException, ConflictException, InterruptedException {
  DummyOrg org = new DummyOrg(ORG_TOP_NAME);
  dummyResource.addOrg(org);
  return org;
}
origin: Evolveum/midpoint

  public boolean isReturnedByDefault(String attrName) {
    final DummyAttributeDefinition attributeDefinition = getAttributeDefinition(attrName);
    if (attributeDefinition != null) {
      return attributeDefinition.isReturnedByDefault();
    } else {
      System.out.println("Warning: attribute " + attrName + " is not defined in " + this);
      return false;
    }
  }
}
origin: Evolveum/midpoint

public void setEnabled(Boolean enabled) throws ConnectException, FileNotFoundException, SchemaViolationException, ConflictException, InterruptedException {
  checkModifyBreak();
  delayOperation();
  this.enabled = enabled;
  recordModify();
}
origin: Evolveum/midpoint

@Override
public String toStringContent() {
  return super.toStringContent() + ", members=" + getMembers();
}
origin: Evolveum/midpoint

@Override
protected DummyObjectClass getObjectClass() throws ConnectException, FileNotFoundException, SchemaViolationException {
  return resource.getPrivilegeObjectClass();
}
origin: Evolveum/midpoint

@Override
public String debugDump() {
  return debugDump(0);
}
origin: Evolveum/midpoint

public DummyObjectClass getAccountObjectClass() throws ConnectException, FileNotFoundException, SchemaViolationException, ConflictException, InterruptedException {
  breakIt(schemaBreakMode, "schema");
  delayOperation();
  return accountObjectClass;
}
origin: Evolveum/midpoint

private void delayOperation() throws InterruptedException {
  if (resource != null) {
    resource.delayOperation();
  }
}
origin: Evolveum/midpoint

private void recordModify() {
  if (resource != null) {
    resource.recordModify(this);
  }
}
origin: Evolveum/midpoint

@Override
public String toStringContent() {
  return super.toStringContent() + ", password=" + password;
}
origin: Evolveum/midpoint

@Override
protected DummyObjectClass getObjectClassNoExceptions() {
  return resource.getAccountObjectClassNoExceptions();
}
origin: Evolveum/midpoint

public void addAttributeDefinition(String attributeName, Class<?> attributeType, boolean isRequired,
    boolean isMulti) {
  DummyAttributeDefinition attrDef = new DummyAttributeDefinition(attributeName,attributeType,isRequired,isMulti);
  add(attrDef);
}
origin: Evolveum/midpoint

public void setValidFrom(Date validFrom) throws ConnectException, FileNotFoundException, SchemaViolationException, ConflictException, InterruptedException {
  checkModifyBreak();
  delayOperation();
  this.validFrom = validFrom;
  recordModify();
}
origin: Evolveum/midpoint

public void setValidTo(Date validTo) throws ConnectException, FileNotFoundException, SchemaViolationException, ConflictException, InterruptedException {
  checkModifyBreak();
  delayOperation();
  this.validTo = validTo;
  recordModify();
}
com.evolveum.icf.dummy.resource

Most used classes

  • DummyResource
    Resource for use with dummy ICF connector. This is a simple Java object that pretends to be a resour
  • DummyAccount
  • DummyGroup
  • DummyObject
  • DummyObjectClass
  • DummyPrivilege,
  • ScriptHistoryEntry,
  • ConflictException,
  • DummyDelta,
  • DummyOrg,
  • ObjectAlreadyExistsException,
  • ObjectDoesNotExistException,
  • SchemaViolationException
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now