com.trackstudio.secured
Class SecuredUDFValueBean

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

public class SecuredUDFValueBean
extends Secured

Bean which represents custom field value


Field Summary
protected  Secured secured
           
protected  SecuredUDFBean udf
           
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredUDFValueBean(UdfValue udfValue_, Secured secured_)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 int compareTo(java.lang.Object o)
          Сравнивает два объекта текущего класса
 boolean equals(java.lang.Object o)
          Сравнивает два обхекта текущего класса
 java.lang.String getCaption()
           
 java.lang.String getCaptionEx()
           
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 Customizer getCustomizer(java.lang.String sort, boolean dis)
           
 java.lang.String getId()
           
 java.util.List getList()
           
 java.lang.Object getList(Secured o)
          Deprecated. Это legacy-метод, оставленный для совместимости с уже написанными для 3.5 скриптами
 boolean getLookupOnly()
           
 java.lang.String getReferencedByCaption()
           
 UdfValueBean getSOAP()
           
 java.lang.String getType()
           
 SecuredUDFBean getUdf()
           
 java.lang.String getUdfId()
           
 java.util.HashMap getUdflist()
           
 java.lang.Integer getUdfType()
           
 java.lang.String getValString()
           
 java.lang.Object getValue()
          Метод возвращает значение UDF Типы UDF/ возвращаемые типы 0 STRING 'string' String 1 FLOAT 'float' Double 2 DATE 'date' Calendar 3 LIST 'list' Pair ключ/значение.
 java.lang.Object getValue(Secured sec)
          Deprecated. Это legacy-метод, оставленный для совместимости с уже написанными для 3.5 скриптами
 boolean isAllowedByACL()
           
 boolean isCalculated()
           
 boolean isEmptyDefault()
           
 boolean isEmptyList()
           
 boolean isEmptyValue()
           
 boolean isHtmlview()
           
 boolean isLookup()
           
 boolean isLookupOnly()
           
 boolean isNewTaskUdfEditable(java.lang.String objectId, java.lang.String statusId, java.lang.String submiter, java.lang.String handler)
           
 boolean isRequired()
           
 boolean isScriptException()
           
 boolean isTaskUdfEditable(java.lang.String objectId)
           
 boolean isTaskUdfEditable(java.lang.String objectId, java.lang.String statusId)
           
 boolean isUserUdfEditable(java.lang.String objectId)
           
 void setScriptException(boolean scriptException)
           
 
Methods inherited from class com.trackstudio.secured.Secured
canUpdate, getCanManage, getCanUpdate, getSecure
 
Methods inherited from class com.trackstudio.tools.PropertyComparable
compareToIgnoreCase, compareToIgnoreCase, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

secured

protected Secured secured

udf

protected SecuredUDFBean udf
Constructor Detail

SecuredUDFValueBean

public SecuredUDFValueBean(UdfValue udfValue_,
                           Secured secured_)
Method Detail

isScriptException

public boolean isScriptException()

setScriptException

public void setScriptException(boolean scriptException)

isTaskUdfEditable

public boolean isTaskUdfEditable(java.lang.String objectId)
                          throws GranException
Throws:
GranException

isTaskUdfEditable

public boolean isTaskUdfEditable(java.lang.String objectId,
                                 java.lang.String statusId)
                          throws GranException
Throws:
GranException

isNewTaskUdfEditable

public boolean isNewTaskUdfEditable(java.lang.String objectId,
                                    java.lang.String statusId,
                                    java.lang.String submiter,
                                    java.lang.String handler)
                             throws GranException
Throws:
GranException

isUserUdfEditable

public boolean isUserUdfEditable(java.lang.String objectId)
                          throws GranException
Throws:
GranException

getUdfId

public java.lang.String getUdfId()

getUdfType

public java.lang.Integer getUdfType()

getValue

public java.lang.Object getValue()
                          throws GranException
Метод возвращает значение UDF Типы UDF/ возвращаемые типы 0 STRING 'string' String 1 FLOAT 'float' Double 2 DATE 'date' Calendar 3 LIST 'list' Pair ключ/значение. pair.key, pair.value 4 INTEGER 'integer' Integer 5 MEMO 'memo' String 6 MULTILIST 'multilist' List список пар ключ/значений 7 TASK 'task' List список SecuredTaskBean 8 USER 'user' List список SecuredUsetBean 9 URL 'url' Link

Returns:
значение поля
Throws:
GranException - при необходимости

getValString

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

getValue

public java.lang.Object getValue(Secured sec)
                          throws GranException
Deprecated. Это legacy-метод, оставленный для совместимости с уже написанными для 3.5 скриптами

Метод возвращает значение UDF Типы UDF/ возвращаемые типы 0 STRING 'string' String 1 FLOAT 'float' Double 2 DATE 'date' Calendar 3 LIST 'list' String значение, а не ключ. Ключ нужно дополнительно доставать 4 INTEGER 'integer' Integer 5 MEMO 'memo' String 6 MULTILIST 'multilist' Set список значений 7 TASK 'task' List список taskId 8 USER 'user' List список userId 9 URL 'url' String url\ndescription

Parameters:
sec - сессия пользователя
Returns:
значение поля
Throws:
GranException - при необходимости

getList

public java.util.List getList()
                       throws GranException
Throws:
GranException

getList

public java.lang.Object getList(Secured o)
                         throws GranException
Deprecated. Это legacy-метод, оставленный для совместимости с уже написанными для 3.5 скриптами

Возвращает список значений

Parameters:
o - сессия пользователя
Returns:
список значений
Throws:
GranException - при необходимости

getCaption

public java.lang.String getCaption()

getReferencedByCaption

public java.lang.String getReferencedByCaption()

getCaptionEx

public java.lang.String getCaptionEx()

isCalculated

public boolean isCalculated()

isLookup

public boolean isLookup()

isLookupOnly

public boolean isLookupOnly()

getLookupOnly

public boolean getLookupOnly()

getId

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

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

getCustomizer

public Customizer getCustomizer(java.lang.String sort,
                                boolean dis)
                         throws GranException
Throws:
GranException

getUdflist

public java.util.HashMap getUdflist()
                             throws GranException
Throws:
GranException

isRequired

public boolean isRequired()
                   throws GranException
Throws:
GranException

isEmptyDefault

public boolean isEmptyDefault()
                       throws GranException
Throws:
GranException

isEmptyValue

public boolean isEmptyValue()
                     throws GranException
Throws:
GranException

isEmptyList

public boolean isEmptyList()
                    throws GranException
Throws:
GranException

isHtmlview

public boolean isHtmlview()
                   throws GranException
Throws:
GranException

equals

public boolean equals(java.lang.Object o)
Description copied from class: PropertyComparable
Сравнивает два обхекта текущего класса

Overrides:
equals in class PropertyComparable
Parameters:
o - Скравниваемый обхект
Returns:
TREU если равны, FALSE если нет

compareTo

public int compareTo(java.lang.Object o)
Description copied from class: PropertyComparable
Сравнивает два объекта текущего класса

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class PropertyComparable
Parameters:
o - Сравниваемый обхект
Returns:
+1, 0 или -1

getContainer

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

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

getType

public java.lang.String getType()

getUdf

public SecuredUDFBean getUdf()
                      throws GranException
Throws:
GranException

getSOAP

public UdfValueBean getSOAP()
                     throws GranException
Throws:
GranException


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