gran.app.adapter.external.filter
Class BaseSecuredFilterAdapter

java.lang.Object
  extended bygran.app.adapter.external.filter.BaseSecuredFilterAdapter
All Implemented Interfaces:
Adapter, SecuredAdapter, SecuredFilterAdapter

public class BaseSecuredFilterAdapter
extends java.lang.Object
implements SecuredFilterAdapter


Constructor Summary
BaseSecuredFilterAdapter()
           
 
Method Summary
 java.lang.String cloneTaskFilterImpl(SessionContext sc, java.lang.String filterId, java.lang.String currentTaskId)
          Copies Filter.
 java.lang.String cloneUserFilterImpl(SessionContext sc, java.lang.String filterId)
           
 java.lang.String createSubscriberImpl(SessionContext sc, java.lang.String name, java.lang.String userId, java.lang.String groupId, java.lang.String taskId, java.lang.String filterId, java.lang.String result)
           
 java.lang.String createTaskFilterImpl(SessionContext sc, java.lang.String name, java.lang.String description, boolean priv, java.lang.String taskId, java.lang.String ownerId, java.lang.String type, java.lang.String result)
          Create new filter
 java.lang.String createUserFilterImpl(SessionContext sc, java.lang.String toUserId, java.lang.String name, java.lang.String description, boolean priv, java.lang.String result)
           
 void deleteTaskFilterImpl(SessionContext sc, java.lang.String filterId)
          Deletes specified Filter.
 void deleteUserFilterImpl(SessionContext sc, java.lang.String id)
           
 java.lang.String getCurrentTaskFilterIdImpl(SessionContext sc, java.lang.String taskId, java.lang.String result)
          Returns CurrentFilter identifier.
 java.lang.String getCurrentUserFilterIdImpl(SessionContext sc, java.lang.String userId, java.lang.String result)
           
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.util.ArrayList getFilterTypeListImpl(SessionContext sc, java.util.ArrayList result)
          Returns FilterType list.
 FValue getFValueImpl(SessionContext sc, java.lang.String filterId, FValue result)
          Returns Filter properties.
 java.util.List getNotificationListImpl(SessionContext sc, java.lang.String filterId, java.lang.String taskId, java.util.List result)
           
 java.util.List getPrstatusNotificationListImpl(SessionContext sc, java.lang.String prstatusId, java.util.List result)
           
 java.util.List getPrstatusSubscriptionListImpl(SessionContext sc, java.lang.String prstatusId, java.util.List result)
           
 java.util.List getSubscriberListImpl(SessionContext sc, java.lang.String filterId, java.lang.String taskId, java.util.List result)
          Returns Subscriber's ID.
 java.util.ArrayList getTaskFilterListImpl(SessionContext sc, java.lang.String taskId, java.util.ArrayList result)
          Returns available Filter list for specified Task.
 java.util.ArrayList getUserFilterListImpl(SessionContext sc, java.lang.String currentUser, java.util.ArrayList result)
           
 java.util.List getUserNotificationListImpl(SessionContext sc, java.lang.String userId, java.util.List result)
           
 java.util.List getUserSubscriptionListImpl(SessionContext sc, java.lang.String userId, java.util.List result)
           
 boolean init()
          Initialize adapter.
 java.lang.String setCurrentFilterImpl(SessionContext sc, java.lang.String taskId, java.lang.String filterId, java.lang.String result)
          Sets CurrentFilter for specified Task and User.
 java.lang.String setCurrentUserFilterImpl(SessionContext sc, java.lang.String userId, java.lang.String filterId, java.lang.String result)
           
 void setFValueImpl(SessionContext sc, java.lang.String filterId, FValue map)
          Sets Filter properties.
 java.lang.String setNotificationImpl(SessionContext sc, java.lang.String name, java.lang.String filterId, java.lang.String userId, java.lang.String groupId, java.lang.String taskId)
          Sets notification for specified Filter, User and Task.
 void unsetNotificationImpl(SessionContext sc, java.lang.String notificationId)
          Resets notification for specified Filter, User and Task.
 void unSubscribeImpl(SessionContext sc, java.lang.String subscriberId)
          Unsubscribes from the Filter.
 void updateNotificationImpl(SessionContext sc, java.lang.String notificationId, java.lang.String name, java.lang.String templateId, java.lang.String condition)
           
 void updateSubscriberImpl(SessionContext sc, java.lang.String subscriberId, java.lang.String name, java.lang.String templateId, java.util.Calendar startDate, java.util.Calendar stopDate, java.util.Calendar nextRun, java.lang.Integer interval)
          Creates Subscriber.
 void updateTaskFilterImpl(SessionContext sc, java.lang.String filterId, java.lang.String name, java.lang.String description, boolean priv)
          Updates Filter.
 void updateUserFilterImpl(SessionContext sc, java.lang.String id, java.lang.String name, java.lang.String description, boolean privateflag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSecuredFilterAdapter

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

getUserSubscriptionListImpl

public java.util.List getUserSubscriptionListImpl(SessionContext sc,
                                                  java.lang.String userId,
                                                  java.util.List result)
                                           throws GranException
Specified by:
getUserSubscriptionListImpl in interface SecuredFilterAdapter
Throws:
GranException

getPrstatusSubscriptionListImpl

public java.util.List getPrstatusSubscriptionListImpl(SessionContext sc,
                                                      java.lang.String prstatusId,
                                                      java.util.List result)
                                               throws GranException
Specified by:
getPrstatusSubscriptionListImpl in interface SecuredFilterAdapter
Throws:
GranException

getUserNotificationListImpl

public java.util.List getUserNotificationListImpl(SessionContext sc,
                                                  java.lang.String userId,
                                                  java.util.List result)
                                           throws GranException
Specified by:
getUserNotificationListImpl in interface SecuredFilterAdapter
Throws:
GranException

getPrstatusNotificationListImpl

public java.util.List getPrstatusNotificationListImpl(SessionContext sc,
                                                      java.lang.String prstatusId,
                                                      java.util.List result)
                                               throws GranException
Specified by:
getPrstatusNotificationListImpl in interface SecuredFilterAdapter
Throws:
GranException

deleteTaskFilterImpl

public void deleteTaskFilterImpl(SessionContext sc,
                                 java.lang.String filterId)
                          throws GranException
Description copied from interface: SecuredFilterAdapter
Deletes specified Filter. Available via SOAP.

Specified by:
deleteTaskFilterImpl in interface SecuredFilterAdapter
Parameters:
sc -
filterId -
Throws:
GranException

deleteUserFilterImpl

public void deleteUserFilterImpl(SessionContext sc,
                                 java.lang.String id)
                          throws GranException
Specified by:
deleteUserFilterImpl in interface SecuredFilterAdapter
Throws:
GranException

createTaskFilterImpl

public java.lang.String createTaskFilterImpl(SessionContext sc,
                                             java.lang.String name,
                                             java.lang.String description,
                                             boolean priv,
                                             java.lang.String taskId,
                                             java.lang.String ownerId,
                                             java.lang.String type,
                                             java.lang.String result)
                                      throws GranException
Description copied from interface: SecuredFilterAdapter
Create new filter

Specified by:
createTaskFilterImpl in interface SecuredFilterAdapter
Parameters:
name - - filter name
description - - filter description
priv - - is filter private or not.
taskId - - parent task for filter
ownerId - - filter owner
Throws:
GranException

createUserFilterImpl

public java.lang.String createUserFilterImpl(SessionContext sc,
                                             java.lang.String toUserId,
                                             java.lang.String name,
                                             java.lang.String description,
                                             boolean priv,
                                             java.lang.String result)
                                      throws GranException
Specified by:
createUserFilterImpl in interface SecuredFilterAdapter
Throws:
GranException

cloneTaskFilterImpl

public java.lang.String cloneTaskFilterImpl(SessionContext sc,
                                            java.lang.String filterId,
                                            java.lang.String currentTaskId)
                                     throws GranException
Description copied from interface: SecuredFilterAdapter
Copies Filter. Available via SOAP.

Specified by:
cloneTaskFilterImpl in interface SecuredFilterAdapter
Parameters:
sc -
filterId -
currentTaskId -
Returns:
new Filter identifier
Throws:
GranException

cloneUserFilterImpl

public java.lang.String cloneUserFilterImpl(SessionContext sc,
                                            java.lang.String filterId)
                                     throws GranException
Specified by:
cloneUserFilterImpl in interface SecuredFilterAdapter
Throws:
GranException

updateTaskFilterImpl

public void updateTaskFilterImpl(SessionContext sc,
                                 java.lang.String filterId,
                                 java.lang.String name,
                                 java.lang.String description,
                                 boolean priv)
                          throws GranException
Description copied from interface: SecuredFilterAdapter
Updates Filter. Available via SOAP.

Specified by:
updateTaskFilterImpl in interface SecuredFilterAdapter
Parameters:
sc -
filterId -
name -
description -
priv -
Throws:
GranException

updateUserFilterImpl

public void updateUserFilterImpl(SessionContext sc,
                                 java.lang.String id,
                                 java.lang.String name,
                                 java.lang.String description,
                                 boolean privateflag)
                          throws GranException
Specified by:
updateUserFilterImpl in interface SecuredFilterAdapter
Throws:
GranException

getTaskFilterListImpl

public java.util.ArrayList getTaskFilterListImpl(SessionContext sc,
                                                 java.lang.String taskId,
                                                 java.util.ArrayList result)
                                          throws GranException
Description copied from interface: SecuredFilterAdapter
Returns available Filter list for specified Task. Available via SOAP.

Specified by:
getTaskFilterListImpl in interface SecuredFilterAdapter
Parameters:
sc -
taskId -
result -
Returns:
list of SecuredFilterBeans
Throws:
GranException
See Also:
SecuredFilterBean

getUserFilterListImpl

public java.util.ArrayList getUserFilterListImpl(SessionContext sc,
                                                 java.lang.String currentUser,
                                                 java.util.ArrayList result)
                                          throws GranException
Specified by:
getUserFilterListImpl in interface SecuredFilterAdapter
Throws:
GranException

getFValueImpl

public FValue getFValueImpl(SessionContext sc,
                            java.lang.String filterId,
                            FValue result)
                     throws GranException
Description copied from interface: SecuredFilterAdapter
Returns Filter properties.

Specified by:
getFValueImpl in interface SecuredFilterAdapter
Parameters:
sc -
filterId -
result -
Returns:
TaskFValue
Throws:
GranException
See Also:
TaskFValue

setFValueImpl

public void setFValueImpl(SessionContext sc,
                          java.lang.String filterId,
                          FValue map)
                   throws GranException
Description copied from interface: SecuredFilterAdapter
Sets Filter properties.

Specified by:
setFValueImpl in interface SecuredFilterAdapter
Parameters:
sc -
filterId -
map -
Throws:
GranException
See Also:
TaskFValue

getSubscriberListImpl

public java.util.List getSubscriberListImpl(SessionContext sc,
                                            java.lang.String filterId,
                                            java.lang.String taskId,
                                            java.util.List result)
                                     throws GranException
Description copied from interface: SecuredFilterAdapter
Returns Subscriber's ID. Available via SOAP.

Specified by:
getSubscriberListImpl in interface SecuredFilterAdapter
Parameters:
sc -
filterId -
taskId -
result -
Returns:
Subscriber indentifier
Throws:
GranException

unSubscribeImpl

public void unSubscribeImpl(SessionContext sc,
                            java.lang.String subscriberId)
                     throws GranException
Description copied from interface: SecuredFilterAdapter
Unsubscribes from the Filter. Available via SOAP.

Specified by:
unSubscribeImpl in interface SecuredFilterAdapter
Parameters:
sc -
Throws:
GranException

updateSubscriberImpl

public void updateSubscriberImpl(SessionContext sc,
                                 java.lang.String subscriberId,
                                 java.lang.String name,
                                 java.lang.String templateId,
                                 java.util.Calendar startDate,
                                 java.util.Calendar stopDate,
                                 java.util.Calendar nextRun,
                                 java.lang.Integer interval)
                          throws GranException
Description copied from interface: SecuredFilterAdapter
Creates Subscriber. Available via SOAP.

Specified by:
updateSubscriberImpl in interface SecuredFilterAdapter
Parameters:
sc -
subscriberId -
startDate -
stopDate -
nextRun -
interval -
Throws:
GranException

createSubscriberImpl

public java.lang.String createSubscriberImpl(SessionContext sc,
                                             java.lang.String name,
                                             java.lang.String userId,
                                             java.lang.String groupId,
                                             java.lang.String taskId,
                                             java.lang.String filterId,
                                             java.lang.String result)
                                      throws GranException
Specified by:
createSubscriberImpl in interface SecuredFilterAdapter
Throws:
GranException

getCurrentTaskFilterIdImpl

public java.lang.String getCurrentTaskFilterIdImpl(SessionContext sc,
                                                   java.lang.String taskId,
                                                   java.lang.String result)
                                            throws GranException
Description copied from interface: SecuredFilterAdapter
Returns CurrentFilter identifier. Available via SOAP.

Specified by:
getCurrentTaskFilterIdImpl in interface SecuredFilterAdapter
Parameters:
sc -
taskId -
result -
Returns:
CurrentFilter identirier
Throws:
GranException

setCurrentFilterImpl

public java.lang.String setCurrentFilterImpl(SessionContext sc,
                                             java.lang.String taskId,
                                             java.lang.String filterId,
                                             java.lang.String result)
                                      throws GranException
Description copied from interface: SecuredFilterAdapter
Sets CurrentFilter for specified Task and User. Available via SOAP.

Specified by:
setCurrentFilterImpl in interface SecuredFilterAdapter
Parameters:
sc -
taskId -
filterId -
result -
Returns:
CurrentFilter identifier
Throws:
GranException

setNotificationImpl

public java.lang.String setNotificationImpl(SessionContext sc,
                                            java.lang.String name,
                                            java.lang.String filterId,
                                            java.lang.String userId,
                                            java.lang.String groupId,
                                            java.lang.String taskId)
                                     throws GranException
Description copied from interface: SecuredFilterAdapter
Sets notification for specified Filter, User and Task. Available via SOAP.

Specified by:
setNotificationImpl in interface SecuredFilterAdapter
Parameters:
sc -
filterId -
userId -
taskId -
Throws:
GranException

unsetNotificationImpl

public void unsetNotificationImpl(SessionContext sc,
                                  java.lang.String notificationId)
                           throws GranException
Description copied from interface: SecuredFilterAdapter
Resets notification for specified Filter, User and Task. Available via SOAP.

Specified by:
unsetNotificationImpl in interface SecuredFilterAdapter
Parameters:
sc -
Throws:
GranException

updateNotificationImpl

public void updateNotificationImpl(SessionContext sc,
                                   java.lang.String notificationId,
                                   java.lang.String name,
                                   java.lang.String templateId,
                                   java.lang.String condition)
                            throws GranException
Specified by:
updateNotificationImpl in interface SecuredFilterAdapter
Throws:
GranException

getFilterTypeListImpl

public java.util.ArrayList getFilterTypeListImpl(SessionContext sc,
                                                 java.util.ArrayList result)
                                          throws GranException
Description copied from interface: SecuredFilterAdapter
Returns FilterType list.

Specified by:
getFilterTypeListImpl in interface SecuredFilterAdapter
Parameters:
sc -
result -
Returns:
list of SecuredFilterTypeBeans
Throws:
GranException
See Also:
SecuredFilterTypeBean

getNotificationListImpl

public java.util.List getNotificationListImpl(SessionContext sc,
                                              java.lang.String filterId,
                                              java.lang.String taskId,
                                              java.util.List result)
                                       throws GranException
Specified by:
getNotificationListImpl in interface SecuredFilterAdapter
Throws:
GranException

getCurrentUserFilterIdImpl

public java.lang.String getCurrentUserFilterIdImpl(SessionContext sc,
                                                   java.lang.String userId,
                                                   java.lang.String result)
                                            throws GranException
Specified by:
getCurrentUserFilterIdImpl in interface SecuredFilterAdapter
Throws:
GranException

setCurrentUserFilterImpl

public java.lang.String setCurrentUserFilterImpl(SessionContext sc,
                                                 java.lang.String userId,
                                                 java.lang.String filterId,
                                                 java.lang.String result)
                                          throws GranException
Specified by:
setCurrentUserFilterImpl in interface SecuredFilterAdapter
Throws:
GranException


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