com.trackstudio.secured
Class SecuredCategoryBean

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

public class SecuredCategoryBean
extends Secured

Bean which represents category


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredCategoryBean(Category cat, SessionContext sec)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 java.lang.String getAction()
           
 java.lang.String getBudget()
           
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 java.lang.String getCreateAfter()
           
 java.lang.String getCreateBefore()
           
 java.lang.String getCreateInsteadOf()
           
 java.lang.String getDescription()
           
 boolean getHandlerRequired()
           
 java.lang.String getIcon()
           
 java.lang.String getId()
           
 boolean getIsValid()
           
 java.lang.Boolean getIsValidParentCategory()
           
 java.lang.String getName()
           
 java.lang.String getPreferences()
           
 CategoryBean getSOAP()
           
 java.lang.String getSortOrderInTree()
           
 SecuredTaskBean getTask()
           
 java.lang.String getTaskId()
           
 java.lang.String getTemplate()
           
 java.lang.String getUpdateAfter()
           
 java.lang.String getUpdateBefore()
           
 java.lang.String getUpdateInsteadOf()
           
 SecuredWorkflowBean getWorkflow()
           
 java.lang.String getWorkflowId()
           
 boolean hasCreateAfterTrigger()
           
 boolean hasCreateBeforeTrigger()
           
 boolean hasCreateInsteadOfTrigger()
           
 boolean hasUpdateAfterTrigger()
           
 boolean hasUpdateBeforeTrigger()
           
 boolean hasUpdateInsteadOfTrigger()
           
 boolean isAllowedByACL()
           
 boolean isGroupHandlerAllowed()
           
 boolean isHandlerRequired()
           
 boolean isValid()
           
 java.lang.Boolean isValidParentCategory()
           
 void setSortOrderInTree(java.lang.String sortOrderInTree)
           
 
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

SecuredCategoryBean

public SecuredCategoryBean(Category cat,
                           SessionContext sec)
                    throws GranException
Throws:
GranException
Method Detail

getId

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

getName

public java.lang.String getName()

getTemplate

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

getTask

public SecuredTaskBean getTask()
                        throws GranException
Throws:
GranException

getWorkflow

public SecuredWorkflowBean getWorkflow()
                                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

isHandlerRequired

public boolean isHandlerRequired()

getHandlerRequired

public boolean getHandlerRequired()

getSOAP

public CategoryBean getSOAP()
                     throws GranException
Throws:
GranException

getWorkflowId

public java.lang.String getWorkflowId()

getTaskId

public java.lang.String getTaskId()

getCreateBefore

public java.lang.String getCreateBefore()

getCreateInsteadOf

public java.lang.String getCreateInsteadOf()

hasCreateInsteadOfTrigger

public boolean hasCreateInsteadOfTrigger()

hasUpdateInsteadOfTrigger

public boolean hasUpdateInsteadOfTrigger()

hasCreateBeforeTrigger

public boolean hasCreateBeforeTrigger()

getCreateAfter

public java.lang.String getCreateAfter()

hasCreateAfterTrigger

public boolean hasCreateAfterTrigger()

hasUpdateBeforeTrigger

public boolean hasUpdateBeforeTrigger()

getUpdateBefore

public java.lang.String getUpdateBefore()

getUpdateInsteadOf

public java.lang.String getUpdateInsteadOf()

getUpdateAfter

public java.lang.String getUpdateAfter()

hasUpdateAfterTrigger

public boolean hasUpdateAfterTrigger()

isGroupHandlerAllowed

public boolean isGroupHandlerAllowed()

getAction

public java.lang.String getAction()

getDescription

public java.lang.String getDescription()

getBudget

public java.lang.String getBudget()

getPreferences

public java.lang.String getPreferences()

getIcon

public java.lang.String getIcon()

isValidParentCategory

public java.lang.Boolean isValidParentCategory()
                                        throws GranException
Throws:
GranException

getIsValidParentCategory

public java.lang.Boolean getIsValidParentCategory()
                                           throws GranException
Throws:
GranException

isValid

public boolean isValid()
                throws GranException
Throws:
GranException

getIsValid

public boolean getIsValid()
                   throws GranException
Throws:
GranException

getSortOrderInTree

public java.lang.String getSortOrderInTree()

setSortOrderInTree

public void setSortOrderInTree(java.lang.String sortOrderInTree)


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