public class DummyResource extends Object implements DebugDumpable
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_CONNECTOR_CONFIGURATION_TO_STRING |
static String |
ATTRIBUTE_CONNECTOR_STATIC_VAL |
static String |
ATTRIBUTE_CONNECTOR_TO_STRING |
INDENT_STRING
public static final String ATTRIBUTE_CONNECTOR_TO_STRING
public static final String ATTRIBUTE_CONNECTOR_STATIC_VAL
public static final String ATTRIBUTE_CONNECTOR_CONFIGURATION_TO_STRING
public void reset()
public static DummyResource getInstance()
public static DummyResource getInstance(String instanceName)
public String getInstanceName()
public void setInstanceName(String instanceName)
public boolean isTolerateDuplicateValues()
public void setTolerateDuplicateValues(boolean tolerateDuplicateValues)
public boolean isGenerateDefaultValues()
public void setGenerateDefaultValues(boolean generateDefaultValues)
public boolean isEnforceUniqueName()
public void setEnforceUniqueName(boolean enforceUniqueName)
public boolean isEnforceSchema()
public void setEnforceSchema(boolean enforceSchema)
public BreakMode getSchemaBreakMode()
public void setSchemaBreakMode(BreakMode schemaBreakMode)
public BreakMode getAddBreakMode()
public void setAddBreakMode(BreakMode addBreakMode)
public BreakMode getGetBreakMode()
public void setGetBreakMode(BreakMode getBreakMode)
public BreakMode getModifyBreakMode()
public void setModifyBreakMode(BreakMode modifyBreakMode)
public BreakMode getDeleteBreakMode()
public void setDeleteBreakMode(BreakMode deleteBreakMode)
public void setBreakMode(BreakMode breakMode)
public void resetBreakMode()
public boolean isBlockOperations()
public void setBlockOperations(boolean blockOperations)
public String getUselessString()
public void setUselessString(String uselessString)
public String getUselessGuardedString()
public void setUselessGuardedString(String uselessGuardedString)
public boolean isCaseIgnoreId()
public void setCaseIgnoreId(boolean caseIgnoreId)
public boolean isCaseIgnoreValues()
public void setCaseIgnoreValues(boolean caseIgnoreValues)
public boolean isGenerateAccountDescriptionOnCreate()
public void setGenerateAccountDescriptionOnCreate(boolean generateAccountDescriptionOnCreate)
public boolean isGenerateAccountDescriptionOnUpdate()
public void setGenerateAccountDescriptionOnUpdate(boolean generateAccountDescriptionOnUpdate)
public Collection<String> getForbiddenNames()
public void setForbiddenNames(Collection<String> forbiddenNames)
public int getConnectionCount()
public void connect()
public void disconnect()
public void assertNoConnections()
public int getGroupMembersReadCount()
public void setGroupMembersReadCount(int groupMembersReadCount)
public void recordGroupMembersReadCount()
public DummyObjectClass getAccountObjectClass() throws ConnectException, FileNotFoundException, SchemaViolationException
public DummyObjectClass getAccountObjectClassNoExceptions()
public DummyObjectClass getGroupObjectClass()
public DummyObjectClass getPrivilegeObjectClass()
public Map<String,DummyObjectClass> getAuxiliaryObjectClassMap()
public void addAuxiliaryObjectClass(String name, DummyObjectClass objectClass)
public Collection<DummyAccount> listAccounts() throws ConnectException, FileNotFoundException, SchemaViolationException
public DummyAccount getAccountByUsername(String username) throws ConnectException, FileNotFoundException, SchemaViolationException
public DummyGroup getGroupByName(String name) throws ConnectException, FileNotFoundException, SchemaViolationException
public DummyPrivilege getPrivilegeByName(String name) throws ConnectException, FileNotFoundException, SchemaViolationException
public DummyOrg getOrgByName(String name) throws ConnectException, FileNotFoundException, SchemaViolationException
public DummyAccount getAccountById(String id) throws ConnectException, FileNotFoundException, SchemaViolationException
public DummyGroup getGroupById(String id) throws ConnectException, FileNotFoundException, SchemaViolationException
public DummyPrivilege getPrivilegeById(String id) throws ConnectException, FileNotFoundException, SchemaViolationException
public DummyOrg getOrgById(String id) throws ConnectException, FileNotFoundException, SchemaViolationException
public Collection<DummyGroup> listGroups() throws ConnectException, FileNotFoundException, SchemaViolationException
public Collection<DummyPrivilege> listPrivileges() throws ConnectException, FileNotFoundException, SchemaViolationException
public Collection<DummyOrg> listOrgs() throws ConnectException, FileNotFoundException, SchemaViolationException
public void deleteAccountById(String id) throws ConnectException, FileNotFoundException, ObjectDoesNotExistException, SchemaViolationException
public void deleteGroupById(String id) throws ConnectException, FileNotFoundException, ObjectDoesNotExistException, SchemaViolationException
public void deletePrivilegeById(String id) throws ConnectException, FileNotFoundException, ObjectDoesNotExistException, SchemaViolationException
public void deleteOrgById(String id) throws ConnectException, FileNotFoundException, ObjectDoesNotExistException, SchemaViolationException
public String addAccount(DummyAccount newAccount) throws ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException
public void deleteAccountByName(String id) throws ObjectDoesNotExistException, ConnectException, FileNotFoundException, SchemaViolationException
public void renameAccount(String id, String oldUsername, String newUsername) throws ObjectDoesNotExistException, ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, SchemaViolationException
public void changeDescriptionIfNeeded(DummyAccount account) throws SchemaViolationException
SchemaViolationException
public String addGroup(DummyGroup newGroup) throws ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, SchemaViolationException
public void deleteGroupByName(String id) throws ObjectDoesNotExistException, ConnectException, FileNotFoundException, SchemaViolationException
public void renameGroup(String id, String oldName, String newName) throws ObjectDoesNotExistException, ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException
public String addPrivilege(DummyPrivilege newGroup) throws ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, SchemaViolationException
public void deletePrivilegeByName(String id) throws ObjectDoesNotExistException, ConnectException, FileNotFoundException, SchemaViolationException
public void renamePrivilege(String id, String oldName, String newName) throws ObjectDoesNotExistException, ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException
public String addOrg(DummyOrg newGroup) throws ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException, SchemaViolationException
public void deleteOrgByName(String id) throws ObjectDoesNotExistException, ConnectException, FileNotFoundException, SchemaViolationException
public void renameOrg(String id, String oldName, String newName) throws ObjectDoesNotExistException, ObjectAlreadyExistsException, ConnectException, FileNotFoundException, SchemaViolationException
public List<ScriptHistoryEntry> getScriptHistory()
public void purgeScriptHistory()
public void runScript(String language, String scriptCode, Map<String,Object> params)
scriptCode
- code of the scriptpublic void populateWithDefaultSchema()
public DummySyncStyle getSyncStyle()
public void setSyncStyle(DummySyncStyle syncStyle)
public int getLatestSyncToken()
public List<DummyDelta> getDeltasSince(int syncToken)
public void unblock()
public void unblockAll()
public String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public String debugDump(int indent)
debugDump
in interface DebugDumpable
Copyright © 2016 evolveum. All rights reserved.