com.evolveum.midpoint.provisioning.impl
Class ResourceTypeManager
java.lang.Object
com.evolveum.midpoint.provisioning.impl.ResourceTypeManager
@Component
public class ResourceTypeManager
- extends java.lang.Object
Method Summary |
void |
applyDefinition(ObjectDelta<ResourceType> delta,
OperationResult objectResult)
|
void |
applyDefinition(PrismObject<ResourceType> resource,
OperationResult parentResult)
|
ResourceType |
completeResource(ResourceType resource,
ResourceSchema resourceSchema,
OperationResult parentResult)
Make sure that the resource is complete. |
RepositoryService |
getRepositoryService()
Get the value of repositoryService. |
ResourceSchema |
getResourceSchema(ResourceType resource,
OperationResult parentResult)
|
void |
listShadows(ResourceType resource,
javax.xml.namespace.QName objectClass,
ShadowHandler handler,
boolean readFromRepository,
OperationResult parentResult)
|
|
searchObjectsIterative(java.lang.Class<T> type,
javax.xml.namespace.QName objectClass,
ResourceType resourceType,
java.util.List<ResourceAttribute> query,
ShadowHandler handler,
DiscoveryHandler discoveryHandler,
OperationResult parentResult)
|
|
searchObjectsIterative(java.lang.Class<T> type,
javax.xml.namespace.QName objectClass,
ResourceType resourceType,
ObjectQuery query,
ShadowHandler handler,
DiscoveryHandler discoveryHandler,
OperationResult parentResult)
|
void |
setRepositoryService(RepositoryService repositoryService)
Set the value of repositoryService
Expected to be injected. |
void |
testConnection(ResourceType resourceType,
OperationResult parentResult)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceTypeManager
public ResourceTypeManager()
getRepositoryService
public RepositoryService getRepositoryService()
- Get the value of repositoryService.
- Returns:
- the value of repositoryService
setRepositoryService
public void setRepositoryService(RepositoryService repositoryService)
- Set the value of repositoryService
Expected to be injected.
- Parameters:
repositoryService
- new value of repositoryService
completeResource
public ResourceType completeResource(ResourceType resource,
ResourceSchema resourceSchema,
OperationResult parentResult)
throws ObjectNotFoundException,
SchemaException,
CommunicationException,
ConfigurationException
- Make sure that the resource is complete.
It will check if the resource has a sufficiently fresh schema, etc.
Returned resource may be the same or may be a different instance, but it
is guaranteed that it will be "fresher" and will correspond to the
repository state (assuming that the provided resource also corresponded
to the repository state).
The connector schema that was fetched before can be supplied to this
method. This is just an optimization. It comes handy e.g. in test
connection case.
Note: This is not really the best place for this method. Need to figure
out correct place later.
- Parameters:
resource
- Resource to checkresourceSchema
- schema that was freshly pre-fetched (or null)parentResult
-
- Returns:
- completed resource
- Throws:
ObjectNotFoundException
- connector instance was not found
SchemaException
CommunicationException
- cannot fetch resource schema
ConfigurationException
testConnection
public void testConnection(ResourceType resourceType,
OperationResult parentResult)
getResourceSchema
public ResourceSchema getResourceSchema(ResourceType resource,
OperationResult parentResult)
throws SchemaException,
CommunicationException,
ConfigurationException
- Throws:
SchemaException
CommunicationException
ConfigurationException
listShadows
public void listShadows(ResourceType resource,
javax.xml.namespace.QName objectClass,
ShadowHandler handler,
boolean readFromRepository,
OperationResult parentResult)
throws CommunicationException,
ObjectNotFoundException,
SchemaException,
ConfigurationException
- Throws:
CommunicationException
ObjectNotFoundException
SchemaException
ConfigurationException
searchObjectsIterative
public <T extends ResourceObjectShadowType> void searchObjectsIterative(java.lang.Class<T> type,
javax.xml.namespace.QName objectClass,
ResourceType resourceType,
java.util.List<ResourceAttribute> query,
ShadowHandler handler,
DiscoveryHandler discoveryHandler,
OperationResult parentResult)
throws ObjectNotFoundException,
CommunicationException,
SchemaException,
ConfigurationException
- Throws:
ObjectNotFoundException
CommunicationException
SchemaException
ConfigurationException
searchObjectsIterative
public <T extends ResourceObjectShadowType> void searchObjectsIterative(java.lang.Class<T> type,
javax.xml.namespace.QName objectClass,
ResourceType resourceType,
ObjectQuery query,
ShadowHandler handler,
DiscoveryHandler discoveryHandler,
OperationResult parentResult)
throws ObjectNotFoundException,
CommunicationException,
SchemaException,
ConfigurationException
- Throws:
ObjectNotFoundException
CommunicationException
SchemaException
ConfigurationException
applyDefinition
public void applyDefinition(ObjectDelta<ResourceType> delta,
OperationResult objectResult)
throws SchemaException,
ObjectNotFoundException,
CommunicationException,
ConfigurationException
- Throws:
SchemaException
ObjectNotFoundException
CommunicationException
ConfigurationException
applyDefinition
public void applyDefinition(PrismObject<ResourceType> resource,
OperationResult parentResult)
throws ObjectNotFoundException,
SchemaException,
CommunicationException,
ConfigurationException
- Throws:
ObjectNotFoundException
SchemaException
CommunicationException
ConfigurationException
Copyright © 2012 evolveum. All Rights Reserved.