Package com.soffid.iam.iga.service
Interface DispatcherService
public interface DispatcherService
Service DispatcherService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCertificate(Server server, X509Certificate cert) Operation addCertificatevoidapplyConfiguration(System dispatcher) Operation applyConfigurationapplyConfigurationAsync(System dispatcher) Operation applyConfigurationAsyncassignTemporaryPermissions(String host, String accountName, String accountSystem, List<String> permissions) Operation assignTemporaryPermissionsvoidcheckConnectivity(String dispatcher) Operation checkConnectivity Tests system connectivityconsumeRegistrationToken(String token) Operation consumeRegistrationTokencreate(AccessControl controlAcces) Operation createcreate(AttributeMapping mapping) Operation createcreate(ObjectMapping om) Operation createOperation createcreate(ObjectMappingTrigger trigger) Operation createOperation createOperation createcreate(SystemGroup grupDispatcher) Operation createcreate(UserTypeDispatcher tipusUsuari) Operation createOperation createcreateRemoteServer(String name, String tenant) Operation createRemoteServervoiddelete(AccessControl controlAcces) Operation deletevoiddelete(AttributeMapping mapping) Operation deletevoiddelete(ObjectMapping om) Operation deletevoidOperation deletevoiddelete(ObjectMappingTrigger tirger) Operation deletevoidOperation deletevoidOperation deletevoiddelete(SystemGroup grupDispatcher) Operation deletevoiddelete(UserTypeDispatcher tipusUsuari) Operation deletevoidOperation deletefindAccessControlByDispatcherName(String codiAgent) Operation findAccessControlByDispatcherNameOperation findActiveDirectoryDomainsOperation findAllActiveDispatchersOperation findAllServersfindAttributeMappingsByObject(Long objectId) Operation findAttributeMappingsByObjectfindDispatcherByName(String codi) Operation findDispatcherByNamefindObjectMappingPropertiesByObject(Long objectId) Operation findObjectMappingPropertiesByObjectfindObjectMappingsByDispatcher(Long dispatcherId) Operation findObjectMappingsByDispatcherfindObjectMappingTriggersByObject(Long objectId) Operation findObjectMappingTriggersByObjectfindReconcileTriggersByDispatcher(Long dispatcherId) Operation findReconcileTriggersByDispatcherfindScheduledTasksByDispatcher(System dispatcher) Operation findScheduledTasksByDispatcherOperation findSoffidDispatcher Finds the dispatcher bound to soffid itselfcom.soffid.zkdb.api.PagedResult<System>findSystems(com.soffid.zkdb.api.Query q) Operation findSystemsOperation findTenantServersOperation findValidCertificatesvoidfinishVirtualSourceTransaction(String transactionId) Operation finishVirtualSourceTransactiongenerateChangesReport(System dispatcher) Operation generateChangesReportgetAccessControl(System agent) Operation getAccessControlgetDispatcherGroups(System agent) Operation getDispatcherGroupsgetDispatcherUserTypes(System agent) Operation getDispatcherUserTypesgetNativeObject(String dispatcher, SoffidObjectType type, String object1, String object2) Operation getNativeObject Loads system object attributesString[]getServerTenants(Server server) Operation getServerTenantsgetSoffidObject(String dispatcher, SoffidObjectType type, String object1, String object2) Operation getSoffidObject Loads system object and transforms into Soffid ObjectOperation invoke Invokes a custom methodOperation invokeAsync Invokes a custom methodbooleanisGroupAllowed(System dispatcher, String group) Operation isGroupAllowedbooleanisRegistrationTokenAlive(String token) Operation isRegistrationTokenAlivebooleanisUserAllowed(System dispatcher, String user) Operation isUserAllowedbooleanisUserAllowed(System dispatcher, String user, Collection<RoleGrant> permissions) Operation isUserAllowedpreRegisterServer(ServerRegistrationToken register) Operation preRegisterServer Pre-registers a new sync-server and returns the registration tokenvoidpropagateGroupsForSystem(String codiAgent, ScheduledTask task) Operation propagateGroupsForSystemvoidpropagateRolesForSystem(String codiAgent, ScheduledTask task) Operation propagateRolesForSystemvoidpropagateUsersForSystem(String codiAgent, ScheduledTask task) Operation propagateUsersForSystemqueryProcessStatus(AsyncProcessTracker process) Operation queryProcessStatus Query the apply process statusOperation reconcile Loads account into soffid databasevoidremoveTemporaryPermissions(String host, String accountName, String accountSystem, List<String> permissions) Operation removeTemporaryPermissionsvoidrenameAccounts(System dispatcher) Operation renameAccountsvoidsetDefaultMappingsByDispatcher(Long dispatcherId) Operation setDefaultMappingsByDispatcherstartVirtualSourceTransaction(boolean readonly, String server) Operation startVirtualSourceTransactiontestObjectMapping(Map<String, String> sentences, String dispatcher, SoffidObjectType type, String object1, String object2) Operation testObjectMapping Tests an object mapping for a real objecttestPropagateObject(String dispatcher, SoffidObjectType type, String object1, String object2) Operation testPropagateObject Tests and applies an object mappingupdate(AccessControl controlAcces) Operation updateupdate(AttributeMapping mapping) Operation updateupdate(ObjectMapping om) Operation updateOperation updateupdate(ObjectMappingTrigger trigger) Operation updateOperation updateOperation updateupdate(SystemGroup grupDispatcher) Operation updateupdate(UserTypeDispatcher tipusUsuari) Operation updateOperation update
-
Field Details
-
REMOTE_PATH
- See Also:
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
createRemoteServer
Operation createRemoteServer- Parameters:
name-tenant-- Returns:
- Throws:
InternalErrorException
-
findActiveDirectoryDomains
Operation findActiveDirectoryDomains- Returns:
- Throws:
InternalErrorException
-
startVirtualSourceTransaction
Operation startVirtualSourceTransaction- Parameters:
readonly-server-- Returns:
- Throws:
InternalErrorException
-
finishVirtualSourceTransaction
Operation finishVirtualSourceTransaction- Parameters:
transactionId-- Throws:
InternalErrorException
-
isGroupAllowed
boolean isGroupAllowed(System dispatcher, String group) throws InternalErrorException, InternalErrorException Operation isGroupAllowed- Parameters:
dispatcher-group-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
isRegistrationTokenAlive
Operation isRegistrationTokenAlive- Parameters:
token-- Returns:
- Throws:
InternalErrorException
-
isUserAllowed
boolean isUserAllowed(System dispatcher, String user) throws InternalErrorException, InternalErrorException Operation isUserAllowed- Parameters:
dispatcher-user-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
isUserAllowed
boolean isUserAllowed(System dispatcher, String user, Collection<RoleGrant> permissions) throws InternalErrorException, InternalErrorException Operation isUserAllowed- Parameters:
dispatcher-user-permissions-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
applyConfigurationAsync
AsyncProcessTracker applyConfigurationAsync(System dispatcher) throws InternalErrorException, InternalErrorException Operation applyConfigurationAsync- Parameters:
dispatcher-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
queryProcessStatus
AsyncProcessTracker queryProcessStatus(AsyncProcessTracker process) throws InternalErrorException, InternalErrorException Operation queryProcessStatus Query the apply process status- Parameters:
process-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
AccessControl create(AccessControl controlAcces) throws InternalErrorException, InternalErrorException Operation create- Parameters:
controlAcces-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
AccessControl update(AccessControl controlAcces) throws InternalErrorException, InternalErrorException Operation update- Parameters:
controlAcces-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
AttributeMapping create(AttributeMapping mapping) throws InternalErrorException, InternalErrorException Operation create- Parameters:
mapping-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
AttributeMapping update(AttributeMapping mapping) throws InternalErrorException, InternalErrorException Operation update- Parameters:
mapping-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
Operation create- Parameters:
om-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
Operation update- Parameters:
om-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
ObjectMappingProperty create(ObjectMappingProperty omp) throws InternalErrorException, InternalErrorException Operation create- Parameters:
omp-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
ObjectMappingProperty update(ObjectMappingProperty om) throws InternalErrorException, InternalErrorException Operation update- Parameters:
om-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
ObjectMappingTrigger create(ObjectMappingTrigger trigger) throws InternalErrorException, InternalErrorException Operation create- Parameters:
trigger-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
ObjectMappingTrigger update(ObjectMappingTrigger trigger) throws InternalErrorException, InternalErrorException Operation update- Parameters:
trigger-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
Operation create- Parameters:
rp-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
Operation update- Parameters:
rp-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
Operation create- Parameters:
dispatcher-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findDispatcherByName
Operation findDispatcherByName- Parameters:
codi-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findSoffidDispatcher
Operation findSoffidDispatcher Finds the dispatcher bound to soffid itself- Returns:
- Throws:
InternalErrorException
-
update
Operation update- Parameters:
dispatcher-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
SystemGroup create(SystemGroup grupDispatcher) throws InternalErrorException, InternalErrorException Operation create- Parameters:
grupDispatcher-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
SystemGroup update(SystemGroup grupDispatcher) throws InternalErrorException, InternalErrorException Operation update- Parameters:
grupDispatcher-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
UserTypeDispatcher create(UserTypeDispatcher tipusUsuari) throws InternalErrorException, InternalErrorException Operation create- Parameters:
tipusUsuari-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
UserTypeDispatcher update(UserTypeDispatcher tipusUsuari) throws InternalErrorException, InternalErrorException Operation update- Parameters:
tipusUsuari-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
testPropagateObject
DebugTaskResults testPropagateObject(String dispatcher, SoffidObjectType type, String object1, String object2) throws InternalErrorException, InternalErrorException Operation testPropagateObject Tests and applies an object mapping- Parameters:
dispatcher-type-object1-object2-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getNativeObject
GetObjectResults getNativeObject(String dispatcher, SoffidObjectType type, String object1, String object2) throws InternalErrorException, InternalErrorException Operation getNativeObject Loads system object attributes- Parameters:
dispatcher-type-object1-object2-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getSoffidObject
GetObjectResults getSoffidObject(String dispatcher, SoffidObjectType type, String object1, String object2) throws InternalErrorException, InternalErrorException Operation getSoffidObject Loads system object and transforms into Soffid Object- Parameters:
dispatcher-type-object1-object2-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
reconcile
GetObjectResults reconcile(String dispatcher, String accountName) throws InternalErrorException, InternalErrorException Operation reconcile Loads account into soffid database- Parameters:
dispatcher-accountName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
Operation create- Parameters:
server-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
Operation update- Parameters:
server-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
consumeRegistrationToken
Operation consumeRegistrationToken- Parameters:
token-- Returns:
- Throws:
InternalErrorException
-
findSystems
com.soffid.zkdb.api.PagedResult<System> findSystems(com.soffid.zkdb.api.Query q) throws InternalErrorException Operation findSystems- Parameters:
q-- Returns:
- Throws:
InternalErrorException
-
invokeAsync
Long invokeAsync(String dispatcher, String verb, String object, Map<String, Object> attributes) throws InternalErrorException, InternalErrorExceptionOperation invokeAsync Invokes a custom method- Parameters:
dispatcher-verb-object-attributes-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
generateChangesReport
String generateChangesReport(System dispatcher) throws InternalErrorException, InternalErrorException Operation generateChangesReport- Parameters:
dispatcher-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
preRegisterServer
Operation preRegisterServer Pre-registers a new sync-server and returns the registration token- Parameters:
register-- Returns:
- Throws:
InternalErrorException
-
getServerTenants
Operation getServerTenants- Parameters:
server-- Returns:
- Throws:
InternalErrorException
-
findAllActiveDispatchers
Operation findAllActiveDispatchers- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findAllServers
Operation findAllServers- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findAttributeMappingsByObject
Collection<AttributeMapping> findAttributeMappingsByObject(Long objectId) throws InternalErrorException, InternalErrorException Operation findAttributeMappingsByObject- Parameters:
objectId-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findAccessControlByDispatcherName
Collection<AccessControl> findAccessControlByDispatcherName(String codiAgent) throws InternalErrorException, InternalErrorException Operation findAccessControlByDispatcherName- Parameters:
codiAgent-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findObjectMappingPropertiesByObject
Collection<ObjectMappingProperty> findObjectMappingPropertiesByObject(Long objectId) throws InternalErrorException, InternalErrorException Operation findObjectMappingPropertiesByObject- Parameters:
objectId-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findObjectMappingTriggersByObject
Collection<ObjectMappingTrigger> findObjectMappingTriggersByObject(Long objectId) throws InternalErrorException, InternalErrorException Operation findObjectMappingTriggersByObject- Parameters:
objectId-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findObjectMappingsByDispatcher
Collection<ObjectMapping> findObjectMappingsByDispatcher(Long dispatcherId) throws InternalErrorException, InternalErrorException Operation findObjectMappingsByDispatcher- Parameters:
dispatcherId-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findReconcileTriggersByDispatcher
Collection<ReconcileTrigger> findReconcileTriggersByDispatcher(Long dispatcherId) throws InternalErrorException, InternalErrorException Operation findReconcileTriggersByDispatcher- Parameters:
dispatcherId-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findScheduledTasksByDispatcher
Collection<ScheduledTask> findScheduledTasksByDispatcher(System dispatcher) throws InternalErrorException, InternalErrorException Operation findScheduledTasksByDispatcher- Parameters:
dispatcher-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findTenantServers
Operation findTenantServers- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getAccessControl
Collection<AccessControl> getAccessControl(System agent) throws InternalErrorException, InternalErrorException Operation getAccessControl- Parameters:
agent-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getDispatcherGroups
Collection<SystemGroup> getDispatcherGroups(System agent) throws InternalErrorException, InternalErrorException Operation getDispatcherGroups- Parameters:
agent-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getDispatcherUserTypes
Collection<UserTypeDispatcher> getDispatcherUserTypes(System agent) throws InternalErrorException, InternalErrorException Operation getDispatcherUserTypes- Parameters:
agent-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
invoke
Collection<Map<String,Object>> invoke(String dispatcher, String verb, String object, Map<String, Object> attributes) throws InternalErrorException, InternalErrorExceptionOperation invoke Invokes a custom method- Parameters:
dispatcher-verb-object-attributes-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
assignTemporaryPermissions
List<String> assignTemporaryPermissions(String host, String accountName, String accountSystem, List<String> permissions) throws InternalErrorException Operation assignTemporaryPermissions- Parameters:
host-accountName-accountSystem-permissions-- Returns:
- Throws:
InternalErrorException
-
findValidCertificates
Operation findValidCertificates- Returns:
- Throws:
InternalErrorException
-
testObjectMapping
Map<String,Object> testObjectMapping(Map<String, String> sentences, String dispatcher, SoffidObjectType type, String object1, String object2) throws InternalErrorException, InternalErrorExceptionOperation testObjectMapping Tests an object mapping for a real object- Parameters:
sentences-dispatcher-type-object1-object2-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
addCertificate
void addCertificate(Server server, X509Certificate cert) throws InternalErrorException, InternalErrorException Operation addCertificate- Parameters:
server-cert-- Throws:
InternalErrorExceptionInternalErrorException
-
applyConfiguration
Operation applyConfiguration- Parameters:
dispatcher-- Throws:
InternalErrorExceptionInternalErrorException
-
checkConnectivity
Operation checkConnectivity Tests system connectivity- Parameters:
dispatcher-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
controlAcces-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
mapping-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
om-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
omp-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
tirger-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
rp-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
dispatcher-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
grupDispatcher-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
tipusUsuari-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
server-- Throws:
InternalErrorExceptionInternalErrorException
-
propagateGroupsForSystem
void propagateGroupsForSystem(String codiAgent, ScheduledTask task) throws InternalErrorException, InternalErrorException Operation propagateGroupsForSystem- Parameters:
codiAgent-task-- Throws:
InternalErrorExceptionInternalErrorException
-
propagateRolesForSystem
void propagateRolesForSystem(String codiAgent, ScheduledTask task) throws InternalErrorException, InternalErrorException Operation propagateRolesForSystem- Parameters:
codiAgent-task-- Throws:
InternalErrorExceptionInternalErrorException
-
propagateUsersForSystem
void propagateUsersForSystem(String codiAgent, ScheduledTask task) throws InternalErrorException, InternalErrorException Operation propagateUsersForSystem- Parameters:
codiAgent-task-- Throws:
InternalErrorExceptionInternalErrorException
-
removeTemporaryPermissions
void removeTemporaryPermissions(String host, String accountName, String accountSystem, List<String> permissions) throws InternalErrorException Operation removeTemporaryPermissions- Parameters:
host-accountName-accountSystem-permissions-- Throws:
InternalErrorException
-
renameAccounts
Operation renameAccounts- Parameters:
dispatcher-- Throws:
InternalErrorExceptionInternalErrorException
-
setDefaultMappingsByDispatcher
void setDefaultMappingsByDispatcher(Long dispatcherId) throws InternalErrorException, InternalErrorException Operation setDefaultMappingsByDispatcher- Parameters:
dispatcherId-- Throws:
InternalErrorExceptionInternalErrorException
-