class DataStore implements DataCacheProvider, RolesProvider {

    void processSingleTrustedDomainRole(String roleName, String rolePrefix, String[] requestedRoleList,
            Set<MemberRole> memberRoles, Set<String> accessibleRoles, boolean keepFullName) {
        
        /* since our member role set can include wildcard domains we
         * need to match the role as oppose to a direct check if the
         * set contains the name */

        if (!roleMatchInSet(roleName, memberRoles)) {
            return;
        }
        
        /* now check if the role is in the resource list as well */

        addRoleToList(roleName, rolePrefix, requestedRoleList, accessibleRoles, keepFullName);
    }

    public  DataStore(ChangeLogStore clogStore, CloudStore cloudStore);

}