|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LetterService
Service interface for Letter specific operations.
| Method Summary | |
|---|---|
Letter |
activateLetter(String letterID,
boolean updateDependencies)
Deprecated. |
Letter |
copyLetter(String oldletterID,
Letter newletter)
Create a copy of the Letter identified by the oldletterID. |
Letter |
createLetter(Letter letter)
Create a new Letter object. |
Letter |
createTestLetter(String letterID)
Deprecated. |
void |
deleteLetter(String letterID)
Deprecated. |
List |
getAllLetters(Query query)
List all Letters filtered by the given Query. |
List |
getDependentPortfolios(String letterID)
Retrieve the list of Portfolios dependent on the Letter identified by the given
letterID. |
Letter |
getLetter(String letterID)
Fetch the Letter identified by the given letterID. |
Map |
getLetterDataElements(String letterID)
Gets information about data elements (element for which values can be updated for letter rendering). |
Letter |
getLetterWithLatestAssets(String letterID)
Deprecated. Use LetterService.getLetter(String) instead. |
List |
getUsedDataModules(Letter letter,
boolean fetchIndirectReferences)
Retrieve the list of all DataModules that is used by the Letter identified by the given
letterID. |
List |
getUsedDataModules(String letterID,
boolean fetchIndirectReferences)
Retrieve the list of all DataModules that is used by the Letter identified by the given
letterID. |
Map |
getUsedFragmentLayouts(Letter letter,
boolean fetchIndirectReferences)
Retrieve the list of all the child ContainerLayoutAssignments of the Letter identified by the given
letterID. |
boolean |
isReferenced(String letterID)
Check if this Letter is being referenced by any other asset (Portfolio). |
Boolean |
letterExists(String letterName)
Check if a Letter exists by the given name. |
Letter |
markReadyToPublish(String letterID)
Mark as ready to publish the Letter identified by the given letterID. |
Letter |
publishLetter(String letterID)
Publish the Letter identified by the given letterID. |
Letter |
retrieveVersion(String letterId,
Date publishDate)
Returns the version of letter that was published on or before the specified date. |
Letter |
revertToLastPublished(String letterId)
Reverts the letter to the last published version. |
boolean |
updateDependencies(String oldLetterID,
String newLetterID)
Update the references of the old Letter in any dependent assets with the new Letter. |
Letter |
updateLetter(Letter letter)
Update the given Letter. |
| Method Detail |
|---|
Boolean letterExists(String letterName)
throws ICCException
Letter exists by the given name.
letterName - Name of the Letter.
ICCException
void deleteLetter(String letterID)
throws ICCException
Letter identified by the given letterID.
letterID - ID of the Letter.
ICCException
Letter createLetter(Letter letter)
throws ICCException
Letter object.
letter - The Letter to be created.
Letter object
ICCException
Letter updateLetter(Letter letter)
throws ICCException
Letter.
letter - Letter object to be updated.
Letter object.
ICCException
Letter markReadyToPublish(String letterID)
throws ICCException
Letter identified by the given letterID.
letterID - ID of the Letter.
Letter object marked for publishing
ICCException
Letter activateLetter(String letterID,
boolean updateDependencies)
throws ICCException
Letter identified by the given letterID.
letterID - ID of the Letter.updateDependencies - Whether to set this new activated version in the dependencies.
Letter object
ICCException
Letter publishLetter(String letterID)
throws ICCException
Letter identified by the given letterID.
letterID - ID of the Letter.
Letter object
ICCException
Letter createTestLetter(String letterID)
throws ICCException
Letter object.
letterID - ID of the Letter whose Inactive version is to be created.
Letter object.
ICCException
Letter copyLetter(String oldletterID,
Letter newletter)
throws ICCException
Letter identified by the oldletterID.
newletter does not have content in it, the content of the original Letter
is set in it.
oldletterID - ID of the original Letter. Used to fetch the original content, if need be.newletter - copy of the original Letter (may have properties altered by the user)
Letter.
ICCException
List getAllLetters(Query query)
throws ICCException
Letters filtered by the given Query.
query - Query to select Letter (supports only first level
attributes/properties of an object).Letter objects
ICCExceptionStatement} and {@link Query}.
Letter getLetter(String letterID)
throws ICCException
Letter identified by the given letterID.
letterID - ID of the Letter to be fetched.
Letter identified by the given letterID.
ICCException
Letter getLetterWithLatestAssets(String letterID)
throws ICCException
LetterService.getLetter(String) instead.
Letter identified by the given letterID, with the latest versions of assets used
in the letter. The actual versions of assets used in the Letter would be replaced by the latest available
assets.
letterID - ID of the Letter to be fetched.
Letter identified by the given letterID, built with the latest versions of
used assets.
ICCException
List getDependentPortfolios(String letterID)
throws ICCException
Portfolios dependent on the Letter identified by the given
letterID.
letterID - ID of the Letter whose dependencies are to be fetched.
Portfolios which depend on the given Letter.
ICCException
List getUsedDataModules(String letterID,
boolean fetchIndirectReferences)
throws ICCException
DataModules that is used by the Letter identified by the given
letterID.
letterID - ID of the Letter, for which the used modules are to be fetched.fetchIndirectReferences - True, if you wish to fetch the modules that are directly or indirectly used by this Letter.
DataModules that is used by the Letter. Empty list returned, if the
Letter does not use any other module.
ICCException
List getUsedDataModules(Letter letter,
boolean fetchIndirectReferences)
throws ICCException
DataModules that is used by the Letter identified by the given
letterID.
letter - Letter, for which the used modules are to be fetched.fetchIndirectReferences - True, if you wish to fetch the modules that are directly or indirectly used by this Letter.
DataModules that is used by the Letter. Empty list returned, if the
Letter does not use any other module.
ICCException
Map getUsedFragmentLayouts(Letter letter,
boolean fetchIndirectReferences)
throws ICCException
ContainerLayoutAssignments of the Letter identified by the given
letterID.
letterID - ID of the Letter, for which the child container layout assignments are to be fetched.fetchIndirectReferences - True, if you wish to fetch the container layout assignments that are directly or indirectly used by this Letter.
ContainerLayoutAssignments and corresponding (@link FragmentLayout)s used in the Letter. Empty map returned, if the
Letter does not use a (@link FragmentLayout).
ICCException
boolean isReferenced(String letterID)
throws ICCException
letterID - ID of the Letter whose dependencies are to be fetched.
ICCException
boolean updateDependencies(String oldLetterID,
String newLetterID)
throws ICCException
oldLetterID - The old Letter ID.newLetterID - The new Letter ID.
ICCException
Map getLetterDataElements(String letterID)
throws ICCException
letterID - the letter ID
ICCException
Letter revertToLastPublished(String letterId)
throws ICCException
letterID - The Letter ID.
ICCException
Letter retrieveVersion(String letterId,
Date publishDate)
letterId - The Letter ID.publishDate - specifies the date for fetching published letter.
ICCException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||