com.adobe.dct.service
Interface DataDictionaryRegistryService


public interface DataDictionaryRegistryService

This defines all the persistence layer apis for objects present in Data Dictionary(DCT).


Method Summary
 String createDataDictionary(DataDictionary dictionary)
          This creates a data dictionary in persistent store and returns the unique identifier of stored DD.
 void deleteDataDictionary(String id)
          Delete data dictionary based on the identifier.
 List getAllDataDictionaries()
          Obtain all data dictionaries present in the system.
 List getAllDataDictionaryReferences()
          Obtain all data dictionary references present in the system
 List getDataDictionaries(DataDictionarySearchFilter searchFilter)
          Obtain all data dictionaries based on search filter
 DataDictionary getDataDictionary(String id)
          Obtain a data dictionary object corresponding to the data dictionary Id
 List getDataDictionaryReferences(DataDictionarySearchFilter searchFilter)
          Obtain all data dictionary references based on search filter
 List getSystemDataDictionaries(String locale)
          Obtain all SYSTEM data dictionaries
 DataDictionary markReadyToPublish(String id)
          Mark the given Data Dictionary read to Publish.
 DataDictionary publishDataDictionary(String id)
          Publish the data dictionary identified by the given id.
 DataDictionary revertToLastPublished(String id)
          Revert to the last published version of the data dictionary identified by the given id.
 void updateDataDictionary(DataDictionary dictionary)
          This updates an already existing data dictionary present in the system set with the same identifier.
 

Method Detail

getDataDictionary

DataDictionary getDataDictionary(String id)
                                 throws DCTException
Obtain a data dictionary object corresponding to the data dictionary Id

Parameters:
id - data dictionary identifier
Returns:
data dictionary
Throws:
DCTException

createDataDictionary

String createDataDictionary(DataDictionary dictionary)
                            throws DCTException
This creates a data dictionary in persistent store and returns the unique identifier of stored DD. Name field in data dictionary is mandatory. The name of data dictionary is unique within the system and hence in case of name collisions this api will throw exception. If identifier property is set in the Data Dictionary, it gets ignored by the api.

Parameters:
dictionary - data dictionary object
Returns:
id of data dictionary
Throws:
DCTException

updateDataDictionary

void updateDataDictionary(DataDictionary dictionary)
                          throws DCTException
This updates an already existing data dictionary present in the system set with the same identifier. Name and Id fields in data dictionary are mandatory. The name of data dictionary is unique within the system and hence in case of name collisions this api will throw exception.

Parameters:
dictionary - data dictionary object
Throws:
DCTException

deleteDataDictionary

void deleteDataDictionary(String id)
                          throws DCTException
Delete data dictionary based on the identifier. This works in CASCADE-DELETE mode for the complete data dictionary tree.

Parameters:
id - identifier of data dictionary
Throws:
DCTException

getAllDataDictionaries

List getAllDataDictionaries()
                            throws DCTException
Obtain all data dictionaries present in the system.

Returns:
list of data dictionaries
Throws:
DCTException

getDataDictionaries

List getDataDictionaries(DataDictionarySearchFilter searchFilter)
                         throws DCTException
Obtain all data dictionaries based on search filter

Parameters:
serachFilter - search criteria for data dictionary search like name, type...
Returns:
list of data dictionaries matching the search criteria
Throws:
DCTException

getAllDataDictionaryReferences

List getAllDataDictionaryReferences()
                                    throws DCTException
Obtain all data dictionary references present in the system

Returns:
list of data dictionary references
Throws:
DCTException

getDataDictionaryReferences

List getDataDictionaryReferences(DataDictionarySearchFilter searchFilter)
                                 throws DCTException
Obtain all data dictionary references based on search filter

Parameters:
serachFilter - search criteria for data dictionary search like name, type...
Returns:
list of data dictionary references matching the search criteria
Throws:
DCTException

getSystemDataDictionaries

List getSystemDataDictionaries(String locale)
                               throws DCTException
Obtain all SYSTEM data dictionaries

Parameters:
locale -
Returns:
list of SYSTEM data dictionaries
Throws:
DCTException

markReadyToPublish

DataDictionary markReadyToPublish(String id)
                                  throws DCTException
Mark the given Data Dictionary read to Publish.

Parameters:
id - identifier of the data dictionary
Returns:
Data Dictionary object that was marked ready to publish.
Throws:
DCTException

publishDataDictionary

DataDictionary publishDataDictionary(String id)
                                     throws DCTException
Publish the data dictionary identified by the given id.

Parameters:
id - identifier of the data dictionary
Returns:
The published Data Dictionary object.
Throws:
DCTException

revertToLastPublished

DataDictionary revertToLastPublished(String id)
                                     throws DCTException
Revert to the last published version of the data dictionary identified by the given id.

Parameters:
id - identifier of the data dictionary
Returns:
The last published version of the Data Dictionary.
Throws:
DCTException


[an error occurred while processing this directive] [an error occurred while processing this directive]