Examples of ActionType


Examples of org.mokai.type.ActionType

    TypeLoader typeLoader = new PluginTypeLoader(mockPluginMechanism());

    Set<ActionType> actionTypes = typeLoader.loadActionTypes();
    Assert.assertEquals(1,actionTypes.size());

    ActionType actionType = actionTypes.iterator().next();
    Assert.assertNotNull(actionType);
    Assert.assertEquals(actionType.getName(), "");
    Assert.assertEquals(actionType.getDescription(), "");
    Assert.assertEquals(actionType.getActionClass(), MockAction.class);
  }
View Full Code Here

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

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

  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

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

          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

Examples of org.opensaml.xacml.ctx.ActionType

                    null,
                    Collections.singletonList(actionAttributeValue)
            );
        attributes.clear();
        attributes.add(actionAttribute);
        ActionType action = RequestComponentBuilder.createActionType(attributes);
       
        // Request
        RequestType request =
            RequestComponentBuilder.createRequestType(
                    Collections.singletonList(subject),
View Full Code Here

Examples of org.opensaml.xacml.ctx.ActionType

                    null,
                    Collections.singletonList(actionAttributeValue)
            );
        attributes.clear();
        attributes.add(actionAttribute);
        ActionType action = RequestComponentBuilder.createActionType(attributes);
       
        // Environment
        DateTime dateTime = new DateTime();
        AttributeValueType environmentAttributeValue =
            RequestComponentBuilder.createAttributeValueType(dateTime.toString());
View Full Code Here

Examples of org.opensaml.xacml.ctx.ActionType

                    null,
                    Collections.singletonList(actionAttributeValue)
            );
        attributes.clear();
        attributes.add(actionAttribute);
        ActionType actionType = RequestComponentBuilder.createActionType(attributes);
       
        // Environment
        attributes.clear();
        if (sendDateTime) {
            DateTime dateTime = new DateTime();
View Full Code Here

Examples of org.opensaml.xacml.ctx.ActionType

                    null,
                    Collections.singletonList(actionAttributeValue)
            );
        attributes.clear();
        attributes.add(actionAttribute);
        ActionType action = RequestComponentBuilder.createActionType(attributes);
       
        // Request
        RequestType request =
            RequestComponentBuilder.createRequestType(
                    Collections.singletonList(subject),
View Full Code Here

Examples of org.opensaml.xacml.ctx.ActionType

                    null,
                    Collections.singletonList(actionAttributeValue)
            );
        attributes.clear();
        attributes.add(actionAttribute);
        ActionType action = RequestComponentBuilder.createActionType(attributes);
       
        // Request
        RequestType request =
            RequestComponentBuilder.createRequestType(
                    Collections.singletonList(subject),
View Full Code Here

Examples of org.opensaml.xacml.ctx.ActionType

                    null,
                    Collections.singletonList(actionAttributeValue)
            );
        attributes.clear();
        attributes.add(actionAttribute);
        ActionType action = RequestComponentBuilder.createActionType(attributes);
       
        // Environment
        DateTime dateTime = new DateTime();
        AttributeValueType environmentAttributeValue =
            RequestComponentBuilder.createAttributeValueType(dateTime.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.