private boolean hasRoleMaster ( String userId , String domain ) { DomainRoleEntry domainRole = domainAccessStore . getDomainRole ( userId , Role . MASTER ) ; if ( domainRole == null || ! Arrays . asList ( domainRole . getDomains ( ) ) . contains ( domain ) ) { return false ; } return true ; }
Indicates if the given user has master role for the given domain