}
private void setUserSetPermission(AccessControlledEntry object, UserSet userSet, Long permission) {
if (null == getUserSetPermission(object, userSet, permission)) {
Permission p = (Permission)session.get(Permission.class, permission);
UserSetAccessRule entry = new UserSetAccessRule();
entry.setAccessControlEntry(object);
entry.setUserSet(userSet);
entry.setPermission(p);
session.save(entry);
}
}