Package org.olat.core.logging.activity

Examples of org.olat.core.logging.activity.ActionType


    SecurityGroup group = re.getOwnerGroup();
    for (Identity identity : addIdentities) {
      if (!securityManager.isIdentityInSecurityGroup(identity, re.getOwnerGroup())) {
        securityManager.addIdentityToSecurityGroup(identity, re.getOwnerGroup());
        reallyAddedId.add(identity);
        ActionType actionType = ThreadLocalUserActivityLogger.getStickyActionType();
        ThreadLocalUserActivityLogger.setStickyActionType(ActionType.admin);
        try{
          ThreadLocalUserActivityLogger.log(GroupLoggingAction.GROUP_OWNER_ADDED, getClass(),
              LoggingResourceable.wrap(re, OlatResourceableType.genRepoEntry), LoggingResourceable.wrap(identity));
        } finally {
View Full Code Here


  public void removeOwners(Identity ureqIdentity, List<Identity> removeIdentities, RepositoryEntry re){
    for (Identity identity : removeIdentities) {
      securityManager.removeIdentityFromSecurityGroup(identity, re.getOwnerGroup());
      String details = "Remove Owner from RepoEntry:"+re.getKey()+" USER:" + identity.getName();

      ActionType actionType = ThreadLocalUserActivityLogger.getStickyActionType();
      ThreadLocalUserActivityLogger.setStickyActionType(ActionType.admin);
      try{
        ThreadLocalUserActivityLogger.log(GroupLoggingAction.GROUP_OWNER_REMOVED, getClass(),
            LoggingResourceable.wrap(re, OlatResourceableType.genRepoEntry), LoggingResourceable.wrap(identity));
      } finally {
View Full Code Here

          group = (BusinessGroup)DBFactory.getInstance().loadObject(group, true);
          // Check if firstWaitingListIdentity is not allready in participant-group
          if (!securityManager.isIdentityInSecurityGroup(firstWaitingListIdentity,group.getPartipiciantGroup())) {
            // move the identity from the waitinglist to the participant group
           
            ActionType formerStickyActionType = ThreadLocalUserActivityLogger.getStickyActionType();
            try{
              // OLAT-4955: force add-participant and remove-from-waitinglist logging actions
              //            that get triggered in the next two methods to be of ActionType admin
              //            This is needed to make sure the targetIdentity ends up in the o_loggingtable
              ThreadLocalUserActivityLogger.setStickyActionType(ActionType.admin);
View Full Code Here

TOP

Related Classes of org.olat.core.logging.activity.ActionType

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.