com.trackstudio.secured
Class SecuredWorkflowBean

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

public class SecuredWorkflowBean
extends Secured

Bean which represents workflow


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredWorkflowBean(Workflow workflow, SessionContext secure)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 java.util.List<SecuredCategoryBean> getCategories()
           
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 boolean getHasStart()
           
 java.lang.String getId()
           
 boolean getIsValid()
           
 java.lang.String getName()
           
 WorkflowBean getSOAP()
           
 SecuredTaskBean getTask()
           
 java.lang.String getTaskId()
           
 java.util.List<SecuredWorkflowUDFBean> getWorkflowUDFs()
           
 boolean hasStart()
           
 boolean isAllowedByACL()
           
 boolean isValid()
           
 
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

SecuredWorkflowBean

public SecuredWorkflowBean(Workflow workflow,
                           SessionContext secure)
                    throws GranException
Throws:
GranException
Method Detail

getId

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

getName

public java.lang.String getName()

getTask

public SecuredTaskBean getTask()
                        throws GranException
Throws:
GranException

getWorkflowUDFs

public java.util.List<SecuredWorkflowUDFBean> getWorkflowUDFs()
                                                       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 WorkflowBean getSOAP()
                     throws GranException
Throws:
GranException

getTaskId

public java.lang.String getTaskId()

hasStart

public boolean hasStart()
                 throws GranException
Throws:
GranException

getHasStart

public boolean getHasStart()
                    throws GranException
Throws:
GranException

getIsValid

public boolean getIsValid()
                   throws GranException
Throws:
GranException

isValid

public boolean isValid()
                throws GranException
Throws:
GranException

getCategories

public java.util.List<SecuredCategoryBean> getCategories()
                                                  throws GranException
Throws:
GranException


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