gran.app.adapter.external.script
Class BaseSecuredScriptAdapter

java.lang.Object
  extended bygran.app.adapter.external.script.BaseSecuredScriptAdapter
All Implemented Interfaces:
Adapter, SecuredAdapter, SecuredScriptAdapter

public class BaseSecuredScriptAdapter
extends java.lang.Object
implements SecuredScriptAdapter


Constructor Summary
BaseSecuredScriptAdapter()
           
 
Method Summary
 java.lang.String cloneScriptImpl(SessionContext sc, java.lang.String scriptId)
          Copies a Script.
 java.lang.String createScriptImpl(SessionContext sc, java.lang.String toUserId, java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String formula, java.lang.String result)
          Creates Script.
 void deleteScriptImpl(SessionContext sc, java.lang.String scriptId)
          Deletes specified Script.
 java.util.ArrayList getAvailableScriptListImpl(SessionContext sc, java.lang.String userId, java.util.ArrayList result)
          Returns available list of Script for specified User.
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.util.ArrayList getScriptTypeListImpl(SessionContext sc, java.util.ArrayList result)
           
 boolean init()
          Initialize adapter.
 void updateScriptFormulaImpl(SessionContext sc, java.lang.String scriptId, java.lang.String formula)
           
 void updateScriptImpl(SessionContext sc, java.lang.String scriptId, java.lang.String name, java.lang.String description)
          Updates specified Script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSecuredScriptAdapter

public BaseSecuredScriptAdapter()
Method Detail

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Description copied from interface: Adapter
Get description of adapter as plain text

Specified by:
getDescription in interface Adapter

cloneScriptImpl

public java.lang.String cloneScriptImpl(SessionContext sc,
                                        java.lang.String scriptId)
                                 throws GranException
Description copied from interface: SecuredScriptAdapter
Copies a Script. Available via SOAP.

Specified by:
cloneScriptImpl in interface SecuredScriptAdapter
Parameters:
sc -
scriptId -
Returns:
new Script ID
Throws:
GranException

updateScriptFormulaImpl

public void updateScriptFormulaImpl(SessionContext sc,
                                    java.lang.String scriptId,
                                    java.lang.String formula)
                             throws GranException
Specified by:
updateScriptFormulaImpl in interface SecuredScriptAdapter
Throws:
GranException

updateScriptImpl

public void updateScriptImpl(SessionContext sc,
                             java.lang.String scriptId,
                             java.lang.String name,
                             java.lang.String description)
                      throws GranException
Description copied from interface: SecuredScriptAdapter
Updates specified Script. Available via SOAP.

Specified by:
updateScriptImpl in interface SecuredScriptAdapter
Parameters:
sc -
name -
Throws:
GranException

createScriptImpl

public java.lang.String createScriptImpl(SessionContext sc,
                                         java.lang.String toUserId,
                                         java.lang.String name,
                                         java.lang.String description,
                                         java.lang.String type,
                                         java.lang.String formula,
                                         java.lang.String result)
                                  throws GranException
Description copied from interface: SecuredScriptAdapter
Creates Script. Available via SOAP.

Specified by:
createScriptImpl in interface SecuredScriptAdapter
Parameters:
sc -
name -
type -
result -
Returns:
new EmailType ID
Throws:
GranException

deleteScriptImpl

public void deleteScriptImpl(SessionContext sc,
                             java.lang.String scriptId)
                      throws GranException
Description copied from interface: SecuredScriptAdapter
Deletes specified Script.

Specified by:
deleteScriptImpl in interface SecuredScriptAdapter
Parameters:
sc -
scriptId -
Throws:
GranException

getAvailableScriptListImpl

public java.util.ArrayList getAvailableScriptListImpl(SessionContext sc,
                                                      java.lang.String userId,
                                                      java.util.ArrayList result)
                                               throws GranException
Description copied from interface: SecuredScriptAdapter
Returns available list of Script for specified User. Available via SOAP.

Specified by:
getAvailableScriptListImpl in interface SecuredScriptAdapter
Parameters:
sc -
userId -
result -
Returns:
list of SecuredEmailTypeBeans
Throws:
GranException
See Also:
SecuredEmailTypeBean

getScriptTypeListImpl

public java.util.ArrayList getScriptTypeListImpl(SessionContext sc,
                                                 java.util.ArrayList result)
                                          throws GranException
Specified by:
getScriptTypeListImpl in interface SecuredScriptAdapter
Throws:
GranException


Copyright © 2002-2005 TrackStudio, Ltd. All Rights Reserved.