public class DefaultPublicationController extends Object implements PublicationController
| Constructor and Description |
|---|
DefaultPublicationController() |
| Modifier and Type | Method and Description |
|---|---|
CometBinary |
getBinaryFile(String fileId)
Returns a media that contains the requested file
|
CallProcessor |
getCometCallProcessor(String method)
Returns the CallProcessor that is registered for the given method
|
ElementlistProcessor |
getElementListProcessor(String method)
Returns the ElementlistProcessor that is registered for the given method
|
ListProcessor |
getListProcessor(String method)
Returns the ListProcessor that is registered for the given method
|
String |
getMessage(int messageCode)
Returns a (localized) error message for the given error code
|
void |
getNextHotfolder(String program,
int status,
int id)
Returns the next hotfolder that AutoComet shall observe for AutoCometJobs
|
AutoCometJob |
getNextJob(String program,
int status)
Returns the next AutoCometJob
|
CometProduct[] |
getProductList(Map<String,CometCondition> parameters)
Returns an Array of list entries that will be displayed in the Comet product tree.
|
ProductListProcessor |
getProductListProcessor(String method) |
static boolean |
hasSubItems(Item item) |
static boolean |
hasSubItems(SessionContext ctx,
Item item)
Verifies if the given item has sub ordinated items
|
void |
putBinaryFile(String fileId,
CometBinary file)
Stores the content of the given file
|
void |
registerCallProcessor(CallProcessor processor)
Adds the given CallProcessor
|
void |
registerElementlistProcessor(ElementlistProcessor processor)
Register the given ElementlistProcessor for the given method
|
void |
registerListProcessor(ListProcessor processor)
Register the given ListProcessor
|
void |
registerProductListProcessor(ProductListProcessor processor)
Register the given ProductListProcessor for the given method
|
void |
setCallProcessors(Collection<CallProcessor> processors) |
void |
setDone(int id,
int status,
Date starttime,
Date endtime,
int exitValue)
Reports the end of the execution of an AutoCometJob
|
void |
setElementlistProcessors(Collection<ElementlistProcessor> processors) |
void |
setListProcessors(Collection<ListProcessor> processors) |
void |
setProductListProcessors(Collection<ProductListProcessor> processors) |
void |
setStart(int id,
Date starttime,
int status)
Reports the execution start of an AutoCometJob
|
void |
setStatus(int id,
int status)
Sets the current status of an AutoCometJob
|
public CometProduct[] getProductList(Map<String,CometCondition> parameters) throws CometException
getProductList in interface PublicationControllerparameters - The search/request conditionsCometExceptionpublic ListProcessor getListProcessor(String method) throws UnknownProcessorException
PublicationControllergetListProcessor in interface PublicationControllermethod - The name of the method for which to get an IListProcessorUnknownProcessorExceptionpublic ElementlistProcessor getElementListProcessor(String method) throws UnknownProcessorException
PublicationControllergetElementListProcessor in interface PublicationControllermethod - The name of the method for which to get an IElementlistProcessorUnknownProcessorExceptionpublic CallProcessor getCometCallProcessor(String method) throws UnknownProcessorException
PublicationControllergetCometCallProcessor in interface PublicationControllermethod - The name of the method for which to get an ICallProcessorUnknownProcessorExceptionpublic ProductListProcessor getProductListProcessor(String method) throws UnknownProcessorException
UnknownProcessorExceptionpublic CometBinary getBinaryFile(String fileId) throws CometException
PublicationControllergetBinaryFile in interface PublicationControllerfileId - The file name for which to get the contentCometException - If an error occurs while getting the filepublic void putBinaryFile(String fileId, CometBinary file) throws CometException
PublicationControllerputBinaryFile in interface PublicationControllerfileId - The filename of related contentfile - The content that shall be storedCometException - If an error occurs while storing the filepublic String getMessage(int messageCode)
getMessage in interface PublicationControllermessageCode - The error code for which to get the respective messagepublic void setCallProcessors(Collection<CallProcessor> processors)
setCallProcessors in interface PublicationControllerpublic void setElementlistProcessors(Collection<ElementlistProcessor> processors)
setElementlistProcessors in interface PublicationControllerpublic void setListProcessors(Collection<ListProcessor> processors)
setListProcessors in interface PublicationControllerpublic void setProductListProcessors(Collection<ProductListProcessor> processors)
setProductListProcessors in interface PublicationControllerpublic void registerCallProcessor(CallProcessor processor) throws JaloInvalidParameterException
JaloInvalidParameterException - If an error occurs while registering the CallProcessorpublic void registerListProcessor(ListProcessor processor) throws JaloInvalidParameterException
JaloInvalidParameterException - If an error occurs while registering the IListProcessorpublic void registerElementlistProcessor(ElementlistProcessor processor) throws JaloInvalidParameterException
JaloInvalidParameterException - If an error occurs while registering the IElementlistProcessorpublic void registerProductListProcessor(ProductListProcessor processor) throws JaloInvalidParameterException
processor - The ProductListProcessor that is able to process requests of the specified method.JaloInvalidParameterException - If an error occurs while registering the ProductListProcessorpublic void getNextHotfolder(String program, int status, int id) throws CometException
PublicationControllergetNextHotfolder in interface PublicationControllerprogram - Unused (TODO: what is this?)status - Unused (TODO: what is this?)id - Unused (TODO: what is this?)CometException - If an error occurs while getting the next hot folderpublic AutoCometJob getNextJob(String program, int status)
PublicationControllergetNextJob in interface PublicationControllerprogram - Unused (TODO: what is this?)status - Unused (TODO: what is this?)public void setStart(int id,
Date starttime,
int status)
throws CometException
PublicationControllersetStart in interface PublicationControllerid - The ID of the AutoCometJob that's execution has startedstarttime - The time, when the execution has startedstatus - The AutoCometJob's current statusCometException - If an error occurs while starting an AutoCometJobpublic void setStatus(int id,
int status)
throws CometException
PublicationControllersetStatus in interface PublicationControllerid - The ID of the AutoCometJob that's status becomes reportedstatus - The AutoCometJob's current statusCometException - If an error occurs while setting the status to an AutoCometJobpublic void setDone(int id,
int status,
Date starttime,
Date endtime,
int exitValue)
throws CometException
PublicationControllersetDone in interface PublicationControllerid - The ID of the AutoCometJob that's execution has endedstatus - The AutoCometJob's current statusstarttime - The time, when the execution has startedendtime - The time, when the execution has endedexitValue - The result codeCometException - If an error occurs while finalize an AutoCometJobpublic static boolean hasSubItems(Item item) throws InvalidParameterException
InvalidParameterExceptionpublic static boolean hasSubItems(SessionContext ctx, Item item) throws InvalidParameterException
ctx - The SessionContextitem - The item for which to search for sub ordinated itemsInvalidParameterException - If item is unspecifiedCopyright © 2017 SAP SE. All Rights Reserved.