// addedEntry.setAccess(RepositoryEntry.ACC_OWNERS);
addedEntry.setAccess(0);//Access for nobody
// Set the resource on the repository entry and save the entry.
RepositoryManager rm = RepositoryManager.getInstance();
OLATResource ores = OLATResourceManager.getInstance().findOrPersistResourceable(addCallback.getResourceable());
addedEntry.setOlatResource(ores);
// create security group
SecurityGroup newGroup = securityManager.createAndPersistSecurityGroup();
// member of this group may modify member's membership
securityManager.createAndPersistPolicy(newGroup, Constants.PERMISSION_ACCESS, newGroup);
// members of this group are always authors also
securityManager.createAndPersistPolicy(newGroup, Constants.PERMISSION_HASROLE, Constants.ORESOURCE_AUTHOR);
securityManager.addIdentityToSecurityGroup(ureq.getIdentity(), newGroup);
addedEntry.setOwnerGroup(newGroup);
rm.saveRepositoryEntry(addedEntry);
detailsController = new RepositoryEditDescriptionController(ureq, getWindowControl(), addedEntry, true);
detailsController.addControllerListener(this);
repositoryadd.put("details", detailsController.getInitialComponent());
// try to get type description based on handlertype
repositoryadd.contextPut("header",
translator.translate("add.header.specific", new String[] {translator.translate(ores.getResourceableTypeName())}));
repositoryadd.setPage(VELOCITY_ROOT + "/addDetails.html");
}