com.trackstudio.secured
Class SecuredStatusBean

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

public class SecuredStatusBean
extends Secured
implements java.lang.Comparable

Bean which represents status


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Fields inherited from class com.trackstudio.tools.PropertyComparable
container
 
Constructor Summary
SecuredStatusBean(Status status, SessionContext secure)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 java.lang.String getColor()
           
protected  PropertyContainer getContainer()
          Возвращает контейнер свойств
 java.lang.String getEncodeColor()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 StatusBean getSOAP()
           
 SecuredWorkflowBean getWorkflow()
           
 java.lang.String getWorkflowId()
           
 boolean isAllowedByACL()
           
 boolean isFinish()
           
 boolean isSecondaryStart()
           
 boolean isStart()
           
 
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
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

SecuredStatusBean

public SecuredStatusBean(Status status,
                         SessionContext secure)
                  throws GranException
Throws:
GranException
Method Detail

isSecondaryStart

public boolean isSecondaryStart()

getColor

public java.lang.String getColor()

getEncodeColor

public java.lang.String getEncodeColor()

getId

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

getName

public java.lang.String getName()

isStart

public boolean isStart()

isFinish

public boolean isFinish()

getWorkflow

public SecuredWorkflowBean getWorkflow()
                                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 StatusBean getSOAP()
                   throws GranException
Throws:
GranException

getWorkflowId

public java.lang.String getWorkflowId()


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