com.trackstudio.secured
Class SecuredPriorityBean

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

public class SecuredPriorityBean
extends Secured

Bean which represents task priority


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredPriorityBean(Priority priority, SessionContext secure)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 int compareTo(java.lang.Object o)
          Сравнивает два объекта текущего класса
 int compareToForTaskList(java.lang.Object o)
           
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 java.lang.String getDescription()
           
 java.lang.String getEncodeDescription()
           
 java.lang.String getEncodeOrder()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.lang.Integer getOrder()
           
 PriorityBean getSOAP()
           
 SecuredWorkflowBean getWorkflow()
           
 java.lang.String getWorkflowId()
           
 boolean isAllowedByACL()
           
 boolean isDefault()
           
 
Methods inherited from class com.trackstudio.secured.Secured
canUpdate, getCanManage, getCanUpdate, getSecure
 
Methods inherited from class com.trackstudio.tools.PropertyComparable
compareToIgnoreCase, compareToIgnoreCase, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecuredPriorityBean

public SecuredPriorityBean(Priority priority,
                           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()

getOrder

public java.lang.Integer getOrder()

getEncodeOrder

public java.lang.String getEncodeOrder()

getDescription

public java.lang.String getDescription()

getEncodeDescription

public java.lang.String getEncodeDescription()

isDefault

public boolean isDefault()

getWorkflow

public SecuredWorkflowBean getWorkflow()
                                throws GranException
Throws:
GranException

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:
контейнер свойств

compareToForTaskList

public int compareToForTaskList(java.lang.Object o)

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 PriorityBean getSOAP()
                     throws GranException
Throws:
GranException

getWorkflowId

public java.lang.String getWorkflowId()


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