it.eng.spago.cms
Class CmsManager

java.lang.Object
  extended by it.eng.spago.cms.CmsManager

public class CmsManager
extends java.lang.Object

Facade object useful to call operations on the repository


Constructor Summary
CmsManager()
          Constructor of class, reads the the configuration file, gets the class name of the IExecutionService interface and create an instance of the class.
 
Method Summary
 void execDeleteOperation(DeleteOperation delOp)
          Execs a delete operation using a default user credentials
 void execDeleteOperation(DeleteOperation delOp, java.lang.String user, java.lang.String password)
          Execs a delete operation using a specific user name and password
 CmsNode execGetOperation(GetOperation getOp)
          Execs a Get operation using a default user credentials
 CmsNode execGetOperation(GetOperation getOp, java.lang.String user, java.lang.String password)
          Execs a get operation using a specific user name and password
 void execRestoreOperation(RestoreOperation restOp)
          Execs a restore operation using a default user credentials
 void execRestoreOperation(RestoreOperation restOp, java.lang.String user, java.lang.String password)
          Execs a restore operation using a specific user name and password
 java.util.List execSearchOperation(SearchOperation searchOp)
          Execs a Search operation using a default user credentials
 java.util.List execSearchOperation(SearchOperation searchOp, java.lang.String user, java.lang.String password)
          Execs a search operation using a specific user name and password
 void execSetOperation(SetOperation setOp)
          Execs a Set operation using a default user credentials
 void execSetOperation(SetOperation setOp, java.lang.String user, java.lang.String password)
          Execs a Set operation using a specific user name and password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsManager

public CmsManager()
Constructor of class, reads the the configuration file, gets the class name of the IExecutionService interface and create an instance of the class. One of the Spago configuration file must contain an xml structure like this:

Method Detail

execSetOperation

public void execSetOperation(SetOperation setOp)
                      throws OperationExecutionException
Execs a Set operation using a default user credentials

Parameters:
setOp - Configuration of the set operation
Throws:
OperationExecutionException - Throwing if an error occurs during the execution

execSetOperation

public void execSetOperation(SetOperation setOp,
                             java.lang.String user,
                             java.lang.String password)
                      throws OperationExecutionException
Execs a Set operation using a specific user name and password

Parameters:
setOp - Configuration of the set operation
user - User name
password - User Password
Throws:
OperationExecutionException - Throwing if an error occurs during the execution

execGetOperation

public CmsNode execGetOperation(GetOperation getOp)
                         throws OperationExecutionException
Execs a Get operation using a default user credentials

Parameters:
getOp - Configuration of the get operation
Throws:
OperationExecutionException - Throwing if an error occurs during the execution

execGetOperation

public CmsNode execGetOperation(GetOperation getOp,
                                java.lang.String user,
                                java.lang.String password)
                         throws OperationExecutionException
Execs a get operation using a specific user name and password

Parameters:
getOp - Configuration of the get operation
user - User name
password - User Password
Throws:
OperationExecutionException - Throwing if an error occurs during the execution

execSearchOperation

public java.util.List execSearchOperation(SearchOperation searchOp)
                                   throws OperationExecutionException
Execs a Search operation using a default user credentials

Parameters:
searchOp - Configuration of the search operation
Throws:
OperationExecutionException - Throwing if an error occurs during the execution

execSearchOperation

public java.util.List execSearchOperation(SearchOperation searchOp,
                                          java.lang.String user,
                                          java.lang.String password)
                                   throws OperationExecutionException
Execs a search operation using a specific user name and password

Parameters:
searchOp - Configuration of the search operation
user - User name
password - User Password
Throws:
OperationExecutionException - Throwing if an error occurs during the execution

execDeleteOperation

public void execDeleteOperation(DeleteOperation delOp)
                         throws OperationExecutionException
Execs a delete operation using a default user credentials

Parameters:
delOp - Configuration of the delete operation
Throws:
OperationExecutionException - Throwing if an error occurs during the execution

execDeleteOperation

public void execDeleteOperation(DeleteOperation delOp,
                                java.lang.String user,
                                java.lang.String password)
                         throws OperationExecutionException
Execs a delete operation using a specific user name and password

Parameters:
delOp - Configuration of the delete operation
user - User name
password - User Password
Throws:
OperationExecutionException - Throwing if an error occurs during the execution

execRestoreOperation

public void execRestoreOperation(RestoreOperation restOp)
                          throws OperationExecutionException
Execs a restore operation using a default user credentials

Parameters:
restOp - Configuration of the restore operation
Throws:
OperationExecutionException - Throwing if an error occurs during the execution

execRestoreOperation

public void execRestoreOperation(RestoreOperation restOp,
                                 java.lang.String user,
                                 java.lang.String password)
                          throws OperationExecutionException
Execs a restore operation using a specific user name and password

Parameters:
restOp - Configuration of the restore operation
user - User name
password - User Password
Throws:
OperationExecutionException - Throwing if an error occurs during the execution