public ScreenModel checkSecurity ( ScreenModel screen , ScreenModel parentScreen ) { int iErrorCode = DBConstants . NORMAL_RETURN ; if ( screen != null ) iErrorCode = ( ( BaseScreen ) screen ) . checkSecurity ( ) ; if ( iErrorCode == Constants . READ_ACCESS ) { ( ( BaseScreen ) screen ) . setEditing ( false ) ; ( ( BaseScreen ) screen ) . setAppending ( false ) ; iErrorCode = DBConstants . NORMAL_RETURN ; } if ( iErrorCode == DBConstants . NORMAL_RETURN ) return screen ; // Good, access allowed else { if ( screen != null ) screen . free ( ) ; return this . getSecurityScreen ( iErrorCode , ( BasePanel ) parentScreen ) ; // Create and return the login or error screen } }
Make sure I am allowed access to this screen .