com.trackstudio.secured
Class SecuredMailImportBean

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

public class SecuredMailImportBean
extends Secured

Bean which represents e-mail import rule


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredMailImportBean(MailImport m, SessionContext sc)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 SecuredCategoryBean getCategory()
           
 java.lang.String getCategoryId()
           
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 java.lang.String getDomain()
           
 java.lang.String getId()
           
 boolean getImportUnknown()
           
 java.lang.String getKeywords()
           
 SecuredMstatusBean getMstatus()
           
 java.lang.String getMStatusId()
           
 java.lang.String getName()
           
 java.lang.Integer getOrder()
           
 SecuredUserBean getOwner()
           
 java.lang.String getOwnerId()
           
 java.lang.Integer getSearchIn()
           
 MailImportBean getSOAP()
           
 SecuredTaskBean getTask()
           
 java.lang.String getTaskId()
           
 boolean isActive()
           
 boolean isAllowedByACL()
           
 void setActive(boolean active)
           
 void setDomain(java.lang.String domain)
           
 void setImportUnknown(boolean importUnknown)
           
 void setMstatusId(java.lang.String mStatusId)
           
 void setName(java.lang.String name)
           
 void setOwnerId(java.lang.String ownerId)
           
 
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

SecuredMailImportBean

public SecuredMailImportBean(MailImport m,
                             SessionContext sc)
                      throws GranException
Throws:
GranException
Method Detail

getId

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

getKeywords

public java.lang.String getKeywords()

getSearchIn

public java.lang.Integer getSearchIn()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getDomain

public java.lang.String getDomain()

setDomain

public void setDomain(java.lang.String domain)

getCategory

public SecuredCategoryBean getCategory()
                                throws GranException
Throws:
GranException

getMstatus

public SecuredMstatusBean getMstatus()
                              throws GranException
Throws:
GranException

getOwner

public SecuredUserBean getOwner()
                         throws GranException
Throws:
GranException

getTask

public SecuredTaskBean getTask()
                        throws GranException
Throws:
GranException

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

canManage

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

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

canView

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

getSOAP

public MailImportBean getSOAP()
                       throws GranException
Throws:
GranException

getCategoryId

public java.lang.String getCategoryId()

getTaskId

public java.lang.String getTaskId()

getOrder

public java.lang.Integer getOrder()

getOwnerId

public java.lang.String getOwnerId()

setOwnerId

public void setOwnerId(java.lang.String ownerId)

getMStatusId

public java.lang.String getMStatusId()

setMstatusId

public void setMstatusId(java.lang.String mStatusId)

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

getImportUnknown

public boolean getImportUnknown()

setImportUnknown

public void setImportUnknown(boolean importUnknown)


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