@ Override public List < Identity > getApprovers ( AuthzTrans trans , String user ) throws OrganizationException { Identity orgIdentity = getIdentity ( trans , user ) ; List < Identity > orgIdentitys = new ArrayList < Identity > ( ) ; if ( orgIdentity != null ) { String supervisorID = orgIdentity . responsibleTo ( ) ; if ( supervisorID . indexOf ( ' ' ) < 0 ) { supervisorID += getDomain ( ) ; } Identity supervisor = getIdentity ( trans , supervisorID ) ; orgIdentitys . add ( supervisor ) ; } return orgIdentitys ; }
Assume the Supervisor is the Approver .