Package org.mifosplatform.infrastructure.hooks.domain

Examples of org.mifosplatform.infrastructure.hooks.domain.HookTemplate


    try {
      this.context.authenticatedUser();

      this.fromApiJsonDeserializer.validateForCreate(command.json());

      final HookTemplate template = retrieveHookTemplateBy(command
          .stringValueOfParameterNamed(nameParamName));
      final String configJson = command.jsonFragment(configParamName);
      final Set<HookConfiguration> config = assembleConfig(
          command.mapValueOfParameterNamed(configJson), template);
      final JsonArray events = command
View Full Code Here


      this.context.authenticatedUser();

      this.fromApiJsonDeserializer.validateForUpdate(command.json());

      final Hook hook = retrieveHookBy(hookId);
      final HookTemplate template = hook.getHookTemplate();
      final Map<String, Object> changes = hook.update(command);

      if (!changes.isEmpty()) {

        if (changes.containsKey(eventsParamName)) {
View Full Code Here

    }
    return hook;
  }

  private HookTemplate retrieveHookTemplateBy(final String templateName) {
    final HookTemplate template = this.hookTemplateRepository
        .findOne(templateName);
    if (template == null) {
      throw new HookTemplateNotFoundException(templateName);
    }
    return template;
View Full Code Here

TOP

Related Classes of org.mifosplatform.infrastructure.hooks.domain.HookTemplate

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.