bookmarkController = new AddAndEditBookmarkController(ureq, getWindowControl(), repositoryEntry.getDisplayname(), "",
repositoryEntry, repositoryEntry.getOlatResource().getResourceableTypeName());
doAddBookmark(bookmarkController);
return;
} else if (cmd.equals(ACTION_COPY)) { // copy
if (!isAuthor) throw new OLATSecurityException("Trying to copy, but user is not author: user = " + ureq.getIdentity());
doCopy(ureq);
return;
} else if (cmd.equals(ACTION_GROUPS)) { // edit authors group
if (!isOwner) throw new OLATSecurityException("Trying to access groupmanagement, but not allowed: user = " + ureq.getIdentity());
ownerGroup = repositoryEntry.getOwnerGroup();
if (groupEditController != null) groupEditController.dispose();
groupEditController = new GroupController(ureq, getWindowControl(), true, true, false, ownerGroup);
groupEditController.addControllerListener(this);
VelocityContainer groupContainer = createVelocityContainer("groups");
groupContainer.put("groupcomp", groupEditController.getInitialComponent());
CloseableModalController cmc = new CloseableModalController(getWindowControl(), translate("close"), groupContainer);
cmc.activate();
return;
} else if (cmd.equals(ACTION_CLOSE_RESSOURCE)) {
doCloseResource(ureq);
return;
} else if (cmd.equals(ACTION_DELETE)) { // delete
if (!isOwner) throw new OLATSecurityException("Trying to delete, but not allowed: user = " + ureq.getIdentity());
// show how many users are currently using this resource
OLATResourceable ores = repositoryEntry.getOlatResource();
String dialogTitle = translate("del.header", repositoryEntry.getDisplayname());
OLATResourceable courseRunOres = OresHelper.createOLATResourceableInstance(RunMainController.ORES_TYPE_COURSE_RUN, repositoryEntry.getOlatResource().getResourceableId());