public int getUserID ( ) { int iUserID = - 1 ; String strUserID = DBConstants . BLANK ; if ( this . getRecord ( ) . getRecordOwner ( ) != null ) if ( this . getRecord ( ) . getRecordOwner ( ) . getTask ( ) != null ) if ( this . getRecord ( ) . getRecordOwner ( ) . getTask ( ) . getApplication ( ) != null ) strUserID = ( ( BaseApplication ) this . getRecord ( ) . getRecordOwner ( ) . getTask ( ) . getApplication ( ) ) . getUserID ( ) ; try { iUserID = Integer . parseInt ( strUserID ) ; if ( iUserID == 0 ) iUserID = - 1 ; } catch ( NumberFormatException e ) { iUserID = - 1 ; } return iUserID ; }
Get the current User s ID .