gran.app.adapter.external.emailtype
Class BaseSecuredEmailTypeAdapter

java.lang.Object
  extended bygran.app.adapter.external.emailtype.BaseSecuredEmailTypeAdapter
All Implemented Interfaces:
Adapter, SecuredAdapter, SecuredEmailTypeAdapter

public class BaseSecuredEmailTypeAdapter
extends java.lang.Object
implements SecuredEmailTypeAdapter


Constructor Summary
BaseSecuredEmailTypeAdapter()
           
 
Method Summary
 java.lang.String cloneEmailTypeImpl(SessionContext sc, java.lang.String toUserId, java.lang.String emailTypeId)
          Copies a EmailType.
 java.lang.String createEmailTypeImpl(SessionContext sc, java.lang.String toUserId, java.lang.String name, java.lang.String result)
          Creates EmailType.
 void deleteEmailTypeImpl(SessionContext sc, java.lang.String emailTypeId)
          Deletes specified EmailType.
 java.util.ArrayList getAvailableEmailTypeListImpl(SessionContext sc, java.lang.String userId, java.util.ArrayList result)
          Returns available list of EmailType for specified User.
 java.util.ArrayList getContentTypeListImpl(SessionContext sc, java.util.ArrayList result)
          Returns list of ContentType.
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.util.ArrayList getFromTypeListImpl(SessionContext sc, java.util.ArrayList result)
           
 java.lang.String getTemplateImpl(SessionContext sc, java.lang.String emailTypeId, java.lang.String result)
          Returns Template for specified EmailType.
 boolean init()
          Initialize adapter.
 void setTemplateImpl(SessionContext sc, java.lang.String toUserId, java.lang.String emailTypeId, java.lang.String type, java.lang.String subject, java.lang.String from, java.lang.String reply, java.lang.String cc, java.lang.String text)
          Sets Template for specified Prstatus.
 void updateEmailTypeImpl(SessionContext sc, java.lang.String emailTypeId, java.lang.String name)
          Updates specified EmailType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSecuredEmailTypeAdapter

public BaseSecuredEmailTypeAdapter()
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

cloneEmailTypeImpl

public java.lang.String cloneEmailTypeImpl(SessionContext sc,
                                           java.lang.String toUserId,
                                           java.lang.String emailTypeId)
                                    throws GranException
Description copied from interface: SecuredEmailTypeAdapter
Copies a EmailType. Available via SOAP.

Specified by:
cloneEmailTypeImpl in interface SecuredEmailTypeAdapter
Parameters:
sc -
emailTypeId -
Returns:
new EmailType ID
Throws:
GranException

createEmailTypeImpl

public java.lang.String createEmailTypeImpl(SessionContext sc,
                                            java.lang.String toUserId,
                                            java.lang.String name,
                                            java.lang.String result)
                                     throws GranException
Description copied from interface: SecuredEmailTypeAdapter
Creates EmailType. Available via SOAP.

Specified by:
createEmailTypeImpl in interface SecuredEmailTypeAdapter
Parameters:
sc -
name -
result -
Returns:
new EmailType ID
Throws:
GranException

deleteEmailTypeImpl

public void deleteEmailTypeImpl(SessionContext sc,
                                java.lang.String emailTypeId)
                         throws GranException
Description copied from interface: SecuredEmailTypeAdapter
Deletes specified EmailType.

Specified by:
deleteEmailTypeImpl in interface SecuredEmailTypeAdapter
Parameters:
sc -
emailTypeId -
Throws:
GranException

getAvailableEmailTypeListImpl

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

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

getContentTypeListImpl

public java.util.ArrayList getContentTypeListImpl(SessionContext sc,
                                                  java.util.ArrayList result)
                                           throws GranException
Description copied from interface: SecuredEmailTypeAdapter
Returns list of ContentType. Available via SOAP.

Specified by:
getContentTypeListImpl in interface SecuredEmailTypeAdapter
Parameters:
sc -
result -
Returns:
list of SecuredContentTypeBean
Throws:
GranException
See Also:
SecuredContentTypeBean

getFromTypeListImpl

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

getTemplateImpl

public java.lang.String getTemplateImpl(SessionContext sc,
                                        java.lang.String emailTypeId,
                                        java.lang.String result)
                                 throws GranException
Description copied from interface: SecuredEmailTypeAdapter
Returns Template for specified EmailType. Available via SOAP.

Specified by:
getTemplateImpl in interface SecuredEmailTypeAdapter
Parameters:
sc -
emailTypeId -
result -
Returns:
Template
Throws:
GranException

setTemplateImpl

public void setTemplateImpl(SessionContext sc,
                            java.lang.String toUserId,
                            java.lang.String emailTypeId,
                            java.lang.String type,
                            java.lang.String subject,
                            java.lang.String from,
                            java.lang.String reply,
                            java.lang.String cc,
                            java.lang.String text)
                     throws GranException
Description copied from interface: SecuredEmailTypeAdapter
Sets Template for specified Prstatus. Available via SOAP.

Specified by:
setTemplateImpl in interface SecuredEmailTypeAdapter
Parameters:
sc -
Throws:
GranException

updateEmailTypeImpl

public void updateEmailTypeImpl(SessionContext sc,
                                java.lang.String emailTypeId,
                                java.lang.String name)
                         throws GranException
Description copied from interface: SecuredEmailTypeAdapter
Updates specified EmailType. Available via SOAP.

Specified by:
updateEmailTypeImpl in interface SecuredEmailTypeAdapter
Parameters:
sc -
emailTypeId -
name -
Throws:
GranException


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