com.trackstudio.secured
Class SecuredTemplateBean

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

public class SecuredTemplateBean
extends Secured

Bean which represents e-mail message template


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredTemplateBean(Template bean, SessionContext sess)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 boolean getActive()
           
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 java.lang.String getDescription()
           
 java.lang.String getFolder()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 SecuredUserBean getOwner()
           
 java.lang.String getOwnerId()
           
 TemplateBean getSOAP()
           
 SecuredTaskBean getTask()
           
 java.lang.String getTaskId()
           
 SecuredUserBean getUser()
           
 java.lang.String getUserId()
           
 boolean isActive()
           
 boolean isAllowedByACL()
           
 
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

SecuredTemplateBean

public SecuredTemplateBean(Template bean,
                           SessionContext sess)
Method Detail

getContainer

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

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

canManage

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

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

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

getId

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

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

getUserId

public java.lang.String getUserId()

getOwnerId

public java.lang.String getOwnerId()

getTaskId

public java.lang.String getTaskId()

getActive

public boolean getActive()

getUser

public SecuredUserBean getUser()
                        throws GranException
Throws:
GranException

getOwner

public SecuredUserBean getOwner()
                         throws GranException
Throws:
GranException

getTask

public SecuredTaskBean getTask()
                        throws GranException
Throws:
GranException

getFolder

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

isActive

public boolean isActive()

getSOAP

public TemplateBean getSOAP()


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