com.trackstudio.secured
Class SecuredNotificationBean

java.lang.Object
  extended by com.trackstudio.tools.PropertyComparable
      extended by com.trackstudio.secured.Secured
          extended by com.trackstudio.secured.SecuredNotificationBean
All Implemented Interfaces:
java.lang.Comparable

public class SecuredNotificationBean
extends Secured

Bean which represents e-mail notification rule


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredNotificationBean(Notification n, SessionContext sc)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 SecuredFilterBean getFilter()
           
 java.lang.String getFilterId()
           
 SecuredPrstatusBean getGroup()
           
 java.lang.String getGroupId()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 NotificationBean getSOAP()
           
 SecuredTaskBean getTask()
           
 java.lang.String getTaskId()
           
 java.lang.String getTemplate()
           
 SecuredUserBean getUser()
           
 java.lang.String getUserId()
           
 boolean isAllowedByACL()
           
 boolean isFireNewAttachment()
           
 boolean isFireNewMessage()
           
 boolean isFireNewTask()
           
 boolean isFireUpdatedTask()
           
 
Methods inherited from class com.trackstudio.secured.Secured
canUpdate, getCanManage, getCanUpdate, getSecure
 
Methods inherited from class com.trackstudio.tools.PropertyComparable
compareTo, compareToIgnoreCase, compareToIgnoreCase, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecuredNotificationBean

public SecuredNotificationBean(Notification n,
                               SessionContext sc)
                        throws GranException
Throws:
GranException
Method Detail

getTask

public SecuredTaskBean getTask()
                        throws GranException
Throws:
GranException

getUser

public SecuredUserBean getUser()
                        throws GranException
Throws:
GranException

getGroup

public SecuredPrstatusBean getGroup()
                             throws GranException
Throws:
GranException

getFilter

public SecuredFilterBean getFilter()
                            throws GranException
Throws:
GranException

getTemplate

public java.lang.String getTemplate()
                             throws GranException
Throws:
GranException

getId

public java.lang.String getId()
Specified by:
getId in class Secured

getUserId

public java.lang.String getUserId()

getName

public java.lang.String getName()

getGroupId

public java.lang.String getGroupId()

getTaskId

public java.lang.String getTaskId()

getFilterId

public java.lang.String getFilterId()

isFireNewTask

public boolean isFireNewTask()

isFireUpdatedTask

public boolean isFireUpdatedTask()

isFireNewAttachment

public boolean isFireNewAttachment()

isFireNewMessage

public boolean isFireNewMessage()

getContainer

protected PropertyContainer getContainer()
Description copied from class: PropertyComparable
Возвращает контейнер свойств

Specified by:
getContainer in class PropertyComparable
Returns:
контейнер свойств

isAllowedByACL

public boolean isAllowedByACL()
                       throws GranException
Specified by:
isAllowedByACL in class Secured
Throws:
GranException

canView

public boolean canView()
                throws GranException
Specified by:
canView in class Secured
Throws:
GranException

canManage

public boolean canManage()
                  throws GranException
Description copied from class: Secured
Проверяет доступ к бину. Новый улучшеный метод. Нужно проверять доступ как по ACL, так и по Roles

Specified by:
canManage in class Secured
Returns:
TRUE - доступ есть, FALSE - нет
Throws:
GranException - при необходимости

getSOAP

public NotificationBean getSOAP()
                         throws GranException
Throws:
GranException


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