com.trackstudio.securedkernel
Class SecuredMailImportAdapterManager

java.lang.Object
  extended by com.trackstudio.securedkernel.SecuredMailImportAdapterManager

public class SecuredMailImportAdapterManager
extends java.lang.Object

This manager is used for accessing to e-mail import rules


Constructor Summary
SecuredMailImportAdapterManager()
           
 
Method Summary
 java.lang.String createMailImport(SessionContext sc, java.lang.String name, java.lang.String taskId, java.lang.String keywords, int searchIn, int order, java.lang.String categoryId, java.lang.String prstatusId, java.lang.String domain)
          Update properties of e-mail import rule
 void deleteMailImport(SessionContext sc, java.lang.String mailImportId)
          Delete e-mail import rule
 java.util.List getMailImportList(SessionContext sc, java.lang.String taskId)
          Get list of e-mail import rules for the task
 void updateMailImport(SessionContext sc, java.lang.String mailImportId, java.lang.String name, java.lang.String keywords, int searchIn, int order, java.lang.String categoryId, java.lang.String ownerId, java.lang.String prstatusId, java.lang.String domain)
          Update properties of e-mail import rule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecuredMailImportAdapterManager

public SecuredMailImportAdapterManager()
Method Detail

deleteMailImport

public void deleteMailImport(SessionContext sc,
                             java.lang.String mailImportId)
                      throws GranException
Delete e-mail import rule

Parameters:
sc - session context
mailImportId - rule's id
Throws:
GranException

updateMailImport

public void updateMailImport(SessionContext sc,
                             java.lang.String mailImportId,
                             java.lang.String name,
                             java.lang.String keywords,
                             int searchIn,
                             int order,
                             java.lang.String categoryId,
                             java.lang.String ownerId,
                             java.lang.String prstatusId,
                             java.lang.String domain)
                      throws GranException
Update properties of e-mail import rule

Parameters:
sc - session context
mailImportId - rule's id
name - new rule's name
keywords - keyword that should be founded in the body or subject of e-mail message
searchIn - where to search for keyword. 0 - in the body, 1 - in the subject, 2 - in headers.
order - execution order of a rule
categoryId - id of category of the created task
ownerId - owner's id
prstatusId - id of status of the created user
domain - used to process messages from the specified domains only
Throws:
GranException

createMailImport

public java.lang.String createMailImport(SessionContext sc,
                                         java.lang.String name,
                                         java.lang.String taskId,
                                         java.lang.String keywords,
                                         int searchIn,
                                         int order,
                                         java.lang.String categoryId,
                                         java.lang.String prstatusId,
                                         java.lang.String domain)
                                  throws GranException
Update properties of e-mail import rule

Parameters:
sc - session context
name - new rule's name
taskId - id of a task that will be root of created tasks
keywords - keyword that should be founded in the body or subject of e-mail message
searchIn - where to search for keyword. 0 - in the body, 1 - in the subject, 2 - in headers.
order - execution order of a rule
categoryId - id of category of the created task
prstatusId - id of status of the created user
domain - used to process messages from the specified domains only
Throws:
GranException

getMailImportList

public java.util.List getMailImportList(SessionContext sc,
                                        java.lang.String taskId)
                                 throws GranException
Get list of e-mail import rules for the task

Parameters:
sc - session context
taskId - task's id
Returns:
list of rule ids
Throws:
GranException


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