com.ibm.itim.dataservices.model.domain

Class HostedServiceFactory

  • java.lang.Object
    • com.ibm.itim.dataservices.model.domain.HostedServiceFactory


  • public class HostedServiceFactory
    extends java.lang.Object
    Factory class for creating hosted service(s) in the data store.
    • Constructor Detail

      • HostedServiceFactory

        public HostedServiceFactory()
        Default constructor.
    • Method Detail

      • create

        public HostedServiceEntity create(CompoundDN logicalContext,
                                          HostedService service)
                                   throws ModelCommunicationException,
                                          ModelCreationException
        Creates a hosted service in the data store with the given value object.
        Parameters:
        logicalContext - CompoundDN that defines the placement of the hosted service. At least one (1) element and at most two (2) are expected:
        • logicalContext.elements[1] must contain the organization DN
        • logicalContext.elements[2] may contain the parent DN (optional)
        An element cannot be skipped. For example, you can not pass the parent DN without passing the organization DN.
        service - HostedService value object use for creation.
        Returns:
        HostedServiceEntity representing the hosted service saved in data store.
        Throws:
        ModelCommunicationException - Thrown if unable to communicate with the data store.
        ModelCreationException - Thrown if unable to create the entity in the data store. Most likely due to some sort of schema violation caused by improper attributes set in the value object.