com.trackstudio.secured
Class SecuredTransitionBean

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

public class SecuredTransitionBean
extends Secured
implements java.lang.Comparable

Bean which represents transition


Field Summary
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Constructor Summary
SecuredTransitionBean(Transition transition, SessionContext secure)
           
 
Method Summary
 boolean canManage()
          Проверяет доступ к бину.
 boolean canView()
           
 int compareTo(java.lang.Object o)
           
 SecuredStatusBean getFinish()
           
 java.lang.String getFinishId()
           
 java.lang.String getId()
           
 SecuredMstatusBean getMstatus()
           
 java.lang.String getMstatusId()
           
 TransitionBean getSOAP()
           
 SecuredStatusBean getStart()
           
 java.lang.String getStartId()
           
 boolean isAllowedByACL()
           
 
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
 

Constructor Detail

SecuredTransitionBean

public SecuredTransitionBean(Transition transition,
                             SessionContext secure)
                      throws GranException
Throws:
GranException
Method Detail

getId

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

getStart

public SecuredStatusBean getStart()
                           throws GranException
Throws:
GranException

getFinish

public SecuredStatusBean getFinish()
                            throws GranException
Throws:
GranException

getMstatus

public SecuredMstatusBean getMstatus()
                              throws GranException
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

getSOAP

public TransitionBean getSOAP()
                       throws GranException
Throws:
GranException

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
Specified by:
compareTo in class Secured

getStartId

public java.lang.String getStartId()

getFinishId

public java.lang.String getFinishId()

getMstatusId

public java.lang.String getMstatusId()


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