com.mirth.match.client
Class IdentifierDomainManager

java.lang.Object
  extended by com.mirth.match.client.IdentifierDomainManager

public class IdentifierDomainManager
extends java.lang.Object


Constructor Summary
IdentifierDomainManager(MirthMatchClient client)
           
 
Method Summary
 Result<DtoIdentifierDomain> create(DtoIdentifierDomain domain)
          Creates a new IdentifierDomain using the properties provided in the DTO
 DTOStatus delete(java.lang.String identifier, java.lang.String entityDomainId)
          Deletes the IdentifierDomain with the provided identifier
 Result<DtoIdentifierDomain> find(java.lang.String identifier, java.lang.String entityDomainId)
          Returns the IdentifierDomain with the given identifier
 Result<java.util.List<DtoIdentifierDomain>> findAllByFilter(IdentifierDomainFilter filter)
          Returns all of the Identifier Domains that match the given filter
 Result<DtoIdentifierDomain> update(DtoIdentifierDomain domain)
          Updates the IdentiferDomain with the identifier provided in the DTO to the other properties within the DTO
Note: To change the IdentifierDomain's identifier, set the current identifier to oldIdentifier and the new identifier to identifier
 Result<DtoIdentifierDomain> updateStatus(java.lang.String identifier, java.lang.String entityDomainId, java.lang.String statusAlias)
          Updates the IdentifierDomain with provided identifier to the given status alias Returns a status condition of ID_DOMAIN_DOES_NOT_EXIST, if the IdentifierDomain with the provided identifier does not exit
 Result<DtoIdentifierDomain> upsert(DtoIdentifierDomain domain)
          If the IdentifierDomain with the identifier provided in the DTO exists, the existing IdentifierDomain is updated to the newly provided values; otherwise, the a new IdentifierDomain is created with the provided values
Note: To change the IdentifierDomain's identifier, set the current identifier to oldIdentifier and the new identifier to identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifierDomainManager

public IdentifierDomainManager(MirthMatchClient client)
Method Detail

create

public Result<DtoIdentifierDomain> create(DtoIdentifierDomain domain)
Creates a new IdentifierDomain using the properties provided in the DTO

Parameters:
domain - the DTO whose properties will be used to create the IdentifierDomain
Returns:
the newly created IdentifierDomain

update

public Result<DtoIdentifierDomain> update(DtoIdentifierDomain domain)
Updates the IdentiferDomain with the identifier provided in the DTO to the other properties within the DTO
Note: To change the IdentifierDomain's identifier, set the current identifier to oldIdentifier and the new identifier to identifier

Parameters:
domain - the DTO whose properties to use to update
Returns:
the updated IdentifierDomain

updateStatus

public Result<DtoIdentifierDomain> updateStatus(java.lang.String identifier,
                                                java.lang.String entityDomainId,
                                                java.lang.String statusAlias)
Updates the IdentifierDomain with provided identifier to the given status alias Returns a status condition of ID_DOMAIN_DOES_NOT_EXIST, if the IdentifierDomain with the provided identifier does not exit

Parameters:
identifier - the identifier of the IdentifierDomain to update
entityDomainId - OPTIONAL: the identifier of the EntityDomain that identifier domain is a member of; if null, the default EntityDomain is used
statusAlias - the new status to set
Returns:
the updated IdentifierDomain

upsert

public Result<DtoIdentifierDomain> upsert(DtoIdentifierDomain domain)
If the IdentifierDomain with the identifier provided in the DTO exists, the existing IdentifierDomain is updated to the newly provided values; otherwise, the a new IdentifierDomain is created with the provided values
Note: To change the IdentifierDomain's identifier, set the current identifier to oldIdentifier and the new identifier to identifier

Parameters:
domain - the DTO whose properties will be used to upsert the IdentifierDomain
Returns:
the new IdentifierDomain

delete

public DTOStatus delete(java.lang.String identifier,
                        java.lang.String entityDomainId)
Deletes the IdentifierDomain with the provided identifier

Parameters:
identifier - the identifier of the IdentifierDomain to delete
entityDomainId - OPTIONAL: the identifier of the EntityDomain that identifier domain is a member of; if null, the default EntityDomain is used
Returns:
nothing

find

public Result<DtoIdentifierDomain> find(java.lang.String identifier,
                                        java.lang.String entityDomainId)
Returns the IdentifierDomain with the given identifier

Parameters:
identifier - the identifier
entityDomainId - OPTIONAL: the identifier of the EntityDomain that identifier domain is a member of; if null, the default EntityDomain is used
Returns:
the IdentifierDomain

findAllByFilter

public Result<java.util.List<DtoIdentifierDomain>> findAllByFilter(IdentifierDomainFilter filter)
Returns all of the Identifier Domains that match the given filter

Parameters:
filter - the filter to match
Returns:
the list of identifier domains


Copyright © 2011 Mirth Corp. All Rights Reserved.