com.evolveum.midpoint.provisioning.impl
Class ResourceTypeManager

java.lang.Object
  extended by com.evolveum.midpoint.provisioning.impl.ResourceTypeManager

@Component
public class ResourceTypeManager
extends Object


Constructor Summary
ResourceTypeManager()
           
 
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 modifyResourceAvailabilityStatus(ResourceType resource, AvailabilityStatusType status, OperationResult result)
           
 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
 

Constructor Detail

ResourceTypeManager

public ResourceTypeManager()
Method Detail

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 check
resourceSchema - 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)

modifyResourceAvailabilityStatus

public void modifyResourceAvailabilityStatus(ResourceType resource,
                                             AvailabilityStatusType status,
                                             OperationResult result)

getResourceSchema

public ResourceSchema getResourceSchema(ResourceType resource,
                                        OperationResult parentResult)
                                 throws SchemaException,
                                        CommunicationException,
                                        ConfigurationException
Throws:
SchemaException
CommunicationException
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 © 2013 evolveum. All Rights Reserved.