Package org.olat.admin.securitygroup.gui

Examples of org.olat.admin.securitygroup.gui.IdentitiesRemoveEvent


        //add to group and also adds identities really added to the event.
        //this is then later used by the GroupController to determine if the
        //model should be updated or not.
        rm.addOwners(ureq.getIdentity(),identitiesAddedEvent,repositoryEntry);
      } else if (event instanceof IdentitiesRemoveEvent) {
        IdentitiesRemoveEvent identitiesRemoveEvent = (IdentitiesRemoveEvent) event;
        RepositoryManager rm = RepositoryManager.getInstance();
        rm.removeOwners(ureq.getIdentity(),identitiesRemoveEvent.getRemovedIdentities(), repositoryEntry);
      }
      updateView(ureq);
    } else if (source == detailsToolC) {
      if (cmd.equals(ACTION_DOWNLOAD)) { // download
        doDownload(ureq);
View Full Code Here


        for (Identity identity : list) {
          ManagerFactory.getManager().addIdentityToSecurityGroup(identity, currentCatalogEntry.getOwnerGroup());
          identitiesAddedEvent.getAddedIdentities().add(identity);
        }
      } else if (event instanceof IdentitiesRemoveEvent) {
        IdentitiesRemoveEvent identitiesRemoveEvent = (IdentitiesRemoveEvent) event;
        List<Identity> list = identitiesRemoveEvent.getRemovedIdentities();
        for (Identity identity : list) {
          ManagerFactory.getManager().removeIdentityFromSecurityGroup(identity, currentCatalogEntry.getOwnerGroup());
        }   
      }
    }
View Full Code Here

TOP

Related Classes of org.olat.admin.securitygroup.gui.IdentitiesRemoveEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.