|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
SilverpeasProcess
@see SilverpeasProcess
.
See:
Description
Interface Summary | |
---|---|
SilverpeasProcess<C extends ProcessExecutionContext> | Interface which has to be implemented by each process (or task in other words) that has to be taken in charge by the Silverpeas Process API. |
Class Summary | |
---|---|
AbstractProcess<C extends ProcessExecutionContext> | The abstract root implementation of SilverpeasProcess interface where
process and getProcessType methods are the only ones that are not
implemented there. |
ProcessFactory | Process API factory which offers an access to the ProcessManagement services. |
Enum Summary | |
---|---|
ProcessType | This enumeration represents different types of process. |
Provides an API for executing one or several processes that implement SilverpeasProcess
@see SilverpeasProcess
.
This API has been created for chaining within a single applicative transaction different processes (processes
dealing with database and file systems together for example) and applying global validations (@see org.silverpeas.process.check.Checker
)
on output (if any) of processes (Quota disk for example).
SilverpeasProcess
is an interface which has to be implemented by each process (or task in other words)
that has to be taken in charge by this API. It offers methods whose the following three :
SilverpeasProcess
SilverpeasProcess
SilverpeasProcess
SilverpeasProcess
: @see ProcessType
The execution of processes is done by the 'execute' methods of ProcessManagement
class. (@see ProcessManagement
)
Two abstractions of SilverpeasProcess
interface exists for now.
One is oriented on data manipulations such as database registring.
An other one is oriented on file system manipulations. This last abstraction implements definitively the 'process' method
and offers a new abstract method 'processFile' with FileHandler parameter (@see FileHandler
).
As concrete API using example, let's taken the photo creation functionnality of the Gallery application.
In a first time, create the transactional service which will contain all directives of photo data registering (createPhoto
as example).
In a second time, create the different Silverpeas processes :
ProcessList
)
and executing the resulting chain with services of ProcessManagement
@see ProcessManagement
.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |