class DBService implements RolesProvider {

    boolean validResourceGroupObjectToDelete(String name, String prefix) {
        
        if (!name.startsWith(prefix)) {
            return false;
        }
        
        // the suffix must be the action which should only be
        // simple-name thus it cannot contain any more .'s
        // otherwise we don't want to make a mistake
        // and match substring resource groups - e.g:
        // system.engine and system.engine.test
        
        return (name.indexOf('.', prefix.length()) == -1);
    }

    public  DBService(ObjectStore store, AuditLogger auditLogger, ZMSConfig zmsConfig, AuditReferenceValidator auditReferenceValidator);

}