com.trackstudio.secured
Class SecuredWorkflowUDFBean

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

public class SecuredWorkflowUDFBean
extends SecuredUDFBean

Bean which represents workflow custom field


Field Summary
protected  java.lang.String taskId
           
protected  java.lang.String workflowId
           
 
Fields inherited from class com.trackstudio.secured.SecuredUDFBean
cachevalues, caption, captionEx, def, htmlview, initial, log, lookuponly, lookupscript, order, referencedbycaption, required, script, type, udfId, udfSourceId
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredWorkflowUDFBean(UDFCacheItem u, SessionContext sec)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 java.lang.Object getLookupscriptCalc(Secured o)
           
 java.lang.String getTaskId()
           
 SecuredWorkflowBean getWorkflow()
           
 java.lang.String getWorkflowId()
           
 boolean isAllowedByACL()
           
 
Methods inherited from class com.trackstudio.secured.SecuredUDFBean
getCaption, getCaptionEx, getContainer, getDefaultUDF, getId, getInitial, getLookuponly, getLookupscript, getOrder, getReferencedbycaption, getScript, getSOAP, getType, getUdfId, getUdflist, getUdfSourceId, getUL, getULString, init, isCachevalues, isHtmlview, isLookuponly, isRequired, setCachevalues, setInitial, setLookuponly, setReferencedbycaption
 
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
 

Field Detail

workflowId

protected java.lang.String workflowId

taskId

protected java.lang.String taskId
Constructor Detail

SecuredWorkflowUDFBean

public SecuredWorkflowUDFBean(UDFCacheItem u,
                              SessionContext sec)
                       throws GranException
Throws:
GranException
Method Detail

getLookupscriptCalc

public java.lang.Object getLookupscriptCalc(Secured o)
                                     throws GranException
Specified by:
getLookupscriptCalc in class SecuredUDFBean
Throws:
GranException

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

getWorkflow

public SecuredWorkflowBean getWorkflow()
                                throws GranException
Throws:
GranException

getWorkflowId

public java.lang.String getWorkflowId()

getTaskId

public java.lang.String getTaskId()


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