org.lexevs.dao.database.service.valuesets
Class VersionableEventPickListDefinitionService

java.lang.Object
  extended by org.lexevs.dao.database.service.event.DatabaseServiceEventSupport
      extended by org.lexevs.dao.database.service.AbstractDatabaseService
          extended by org.lexevs.dao.database.service.valuesets.VersionableEventPickListDefinitionService
All Implemented Interfaces:
PickListDefinitionService

public class VersionableEventPickListDefinitionService
extends AbstractDatabaseService
implements PickListDefinitionService

The Class VersionableEventPickListDefinitionService.

Author:
Sridhar Dwarkanath

Constructor Summary
VersionableEventPickListDefinitionService()
           
 
Method Summary
 PickListDefinition getPickListDefinitionByPickListId(java.lang.String pickListId)
          Gets the pick list definition by pick list id.
 java.util.List<java.lang.String> getPickListDefinitionIdForEntityReference(java.lang.String entityCode, java.lang.String entityCodeNameSpace, java.lang.String propertyId)
           
 java.util.List<java.lang.String> getPickListDefinitionIdForSupportedTagAndValue(java.lang.String supportedTag, java.lang.String value)
          Returns list of pick list definition IDs that contains supplied Supported Attribute Tag and Value.
 java.util.List<java.lang.String> getPickListDefinitionIdForValueSetDefinitionUri(java.lang.String valueSetDefURI)
          Gets the pick list definition id's by value set definition uri.
 PickListEntryNodeService getPickListEntryNodeService()
           
 VSPropertyService getVsPropertyService()
           
 void insertDependentChanges(PickListDefinition definition)
           
 void insertPickListDefinition(PickListDefinition definition, java.lang.String systemReleaseUri, Mappings mappings)
          Insert pick list definition.
 void insertPickListDefinitions(PickListDefinitions definitions, java.lang.String systemReleaseUri)
          Insert pick list definitions.
 java.util.List<java.lang.String> listPickListIds()
          List pick list ids.
 void removePickListDefinition(PickListDefinition definition)
           
 void removePickListDefinitionByPickListId(java.lang.String pickListId)
          Removes the pick list definition by pick list id.
 PickListDefinition resolvePickListDefinitionByDate(java.lang.String pickListId, java.sql.Date date, java.lang.Integer sortType)
           
 PickListDefinition resolvePickListDefinitionByRevision(java.lang.String pickListId, java.lang.String revisionId, java.lang.Integer sortType)
           
 void revise(PickListDefinition pickListDefinition, Mappings mapping, java.lang.String releaseURI)
           
 void setPickListEntryNodeService(PickListEntryNodeService pickListEntryNodeService)
           
 void setVsPropertyService(VSPropertyService vsPropertyService)
           
 void updatePickListDefinition(PickListDefinition definition)
           
 void updateVersionableAttributes(PickListDefinition definition)
           
 
Methods inherited from class org.lexevs.dao.database.service.AbstractDatabaseService
getCodingSchemeUId, getDaoManager, getLogger, isChangeTypeDependent, isChangeTypeRemove, setDaoManager, setLogger
 
Methods inherited from class org.lexevs.dao.database.service.event.DatabaseServiceEventSupport
fireCodingSchemeInsertErrorEvent, fireCodingSchemeUpdateEvent, fireEntityReviseEvent, fireEntityUpdateEvent, firePostBatchEntityInsertEvent, firePostCodingSchemeInsertEvent, firePostEntityInsertEvent, firePostEntityRemoveEvent, firePostPropertyInsertEvent, firePostPropertyRemoveEvent, firePreBatchAssociationInsertEvent, firePreBatchEntityInsertEvent, firePreCodingSchemeInsertEvent, firePreEntityInsertEvent, firePreEntityRemoveEvent, firePropertyUpdateEvent, getListenerRegistry, setListenerRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionableEventPickListDefinitionService

public VersionableEventPickListDefinitionService()
Method Detail

getPickListDefinitionByPickListId

public PickListDefinition getPickListDefinitionByPickListId(java.lang.String pickListId)
Description copied from interface: PickListDefinitionService
Gets the pick list definition by pick list id.

Specified by:
getPickListDefinitionByPickListId in interface PickListDefinitionService
Parameters:
pickListId - the pick list id
Returns:
the pick list definition by pick list id

getPickListDefinitionIdForValueSetDefinitionUri

public java.util.List<java.lang.String> getPickListDefinitionIdForValueSetDefinitionUri(java.lang.String valueSetDefURI)
Description copied from interface: PickListDefinitionService
Gets the pick list definition id's by value set definition uri.

Specified by:
getPickListDefinitionIdForValueSetDefinitionUri in interface PickListDefinitionService
Parameters:
valueSetDefURI - the value set definition uri
Returns:
list of pick list definition id that match value set definition uri

getPickListDefinitionIdForEntityReference

public java.util.List<java.lang.String> getPickListDefinitionIdForEntityReference(java.lang.String entityCode,
                                                                                  java.lang.String entityCodeNameSpace,
                                                                                  java.lang.String propertyId)
Specified by:
getPickListDefinitionIdForEntityReference in interface PickListDefinitionService
Returns:

insertPickListDefinition

@Transactional
public void insertPickListDefinition(PickListDefinition definition,
                                                   java.lang.String systemReleaseUri,
                                                   Mappings mappings)
                              throws LBParameterException,
                                     LBException
Description copied from interface: PickListDefinitionService
Insert pick list definition.

Specified by:
insertPickListDefinition in interface PickListDefinitionService
Parameters:
definition - the definition
systemReleaseUri - the system release uri
mappings - SupportedAttribute mappings of pick list definition
Throws:
LBParameterException
LBException

insertPickListDefinitions

@Transactional
public void insertPickListDefinitions(PickListDefinitions definitions,
                                                    java.lang.String systemReleaseUri)
Description copied from interface: PickListDefinitionService
Insert pick list definitions.

Specified by:
insertPickListDefinitions in interface PickListDefinitionService
Parameters:
definitions - the pick list definitions
systemReleaseUri - the system release uri

listPickListIds

public java.util.List<java.lang.String> listPickListIds()
Description copied from interface: PickListDefinitionService
List pick list ids.

Specified by:
listPickListIds in interface PickListDefinitionService
Returns:
the list< string>

removePickListDefinitionByPickListId

public void removePickListDefinitionByPickListId(java.lang.String pickListId)
Description copied from interface: PickListDefinitionService
Removes the pick list definition by pick list id.

Specified by:
removePickListDefinitionByPickListId in interface PickListDefinitionService
Parameters:
pickListId - the pick list id

getPickListDefinitionIdForSupportedTagAndValue

public java.util.List<java.lang.String> getPickListDefinitionIdForSupportedTagAndValue(java.lang.String supportedTag,
                                                                                       java.lang.String value)
Description copied from interface: PickListDefinitionService
Returns list of pick list definition IDs that contains supplied Supported Attribute Tag and Value.

Specified by:
getPickListDefinitionIdForSupportedTagAndValue in interface PickListDefinitionService
Parameters:
supportedTag - SupportedAttribute tag like SupportedCodingScheme, SupportedAssociation etc.
value - value of the supportedAttribute
Returns:
list of picklistIds

removePickListDefinition

public void removePickListDefinition(PickListDefinition definition)
Specified by:
removePickListDefinition in interface PickListDefinitionService

updatePickListDefinition

public void updatePickListDefinition(PickListDefinition definition)
                              throws LBException
Specified by:
updatePickListDefinition in interface PickListDefinitionService
Throws:
LBException

updateVersionableAttributes

public void updateVersionableAttributes(PickListDefinition definition)
                                 throws LBException
Specified by:
updateVersionableAttributes in interface PickListDefinitionService
Throws:
LBException

insertDependentChanges

public void insertDependentChanges(PickListDefinition definition)
                            throws LBException
Specified by:
insertDependentChanges in interface PickListDefinitionService
Throws:
LBException

revise

public void revise(PickListDefinition pickListDefinition,
                   Mappings mapping,
                   java.lang.String releaseURI)
            throws LBException
Specified by:
revise in interface PickListDefinitionService
Throws:
LBException

getVsPropertyService

public VSPropertyService getVsPropertyService()
Returns:
the vsPropertyService

setVsPropertyService

public void setVsPropertyService(VSPropertyService vsPropertyService)
Parameters:
vsPropertyService - the vsPropertyService to set

getPickListEntryNodeService

public PickListEntryNodeService getPickListEntryNodeService()
Returns:
the pickListEntryNodeService

setPickListEntryNodeService

public void setPickListEntryNodeService(PickListEntryNodeService pickListEntryNodeService)
Parameters:
pickListEntryNodeService - the pickListEntryNodeService to set

resolvePickListDefinitionByRevision

public PickListDefinition resolvePickListDefinitionByRevision(java.lang.String pickListId,
                                                              java.lang.String revisionId,
                                                              java.lang.Integer sortType)
                                                       throws LBRevisionException
Specified by:
resolvePickListDefinitionByRevision in interface PickListDefinitionService
Throws:
LBRevisionException

resolvePickListDefinitionByDate

public PickListDefinition resolvePickListDefinitionByDate(java.lang.String pickListId,
                                                          java.sql.Date date,
                                                          java.lang.Integer sortType)
                                                   throws LBRevisionException
Specified by:
resolvePickListDefinitionByDate in interface PickListDefinitionService
Throws:
LBRevisionException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.