com.trackstudio.secured
Class SecuredTaskUDFBean

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

public class SecuredTaskUDFBean
extends SecuredUDFBean

Bean which represents task custom field


Field Summary
protected  java.lang.String taskid
           
 
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
 
Constructor Summary
SecuredTaskUDFBean(UDFCacheItem u, SessionContext sc)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 java.lang.Object getLookupscriptCalc(Secured o)
           
 SecuredTaskBean getTask()
           
 java.lang.String getTaskId()
           
 boolean isAllowedByACL()
           
 
Methods inherited from class com.trackstudio.secured.SecuredUDFBean
compareTo, getCaption, getCaptionEx, getDefault, 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, compare, equals, getCanManage, getCanUpdate, getSecure, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

taskid

protected java.lang.String taskid
Constructor Detail

SecuredTaskUDFBean

public SecuredTaskUDFBean(UDFCacheItem u,
                          SessionContext sc)
                   throws GranException
Throws:
GranException
Method Detail

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

getTask

public SecuredTaskBean getTask()
                        throws GranException
Throws:
GranException

getTaskId

public java.lang.String getTaskId()

getLookupscriptCalc

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


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