Package org.mifosplatform.infrastructure.hooks.data

Examples of org.mifosplatform.infrastructure.hooks.data.HookData


        HOOK_RESOURCE_NAME);

    final ApiRequestJsonSerializationSettings settings = this.apiRequestParameterHelper
        .process(uriInfo.getQueryParameters());

    HookData hook = this.readPlatformService.retrieveHook(hookId);

    if (settings.isTemplate()) {
      final HookData hookData = this.readPlatformService
          .retrieveNewHookDetails(hook.getTemplateName());
      hook = HookData.templateExisting(hook, hookData.getTemplates(),
          hookData.getGroupings());
    }
    return this.toApiJsonSerializer.serialize(settings, hook,
        RESPONSE_DATA_PARAMETERS);
  }
View Full Code Here


  public String template(@Context final UriInfo uriInfo) {

    this.context.authenticatedUser().validateHasReadPermission(
        HOOK_RESOURCE_NAME);

    final HookData hook = this.readPlatformService
        .retrieveNewHookDetails(null);

    final ApiRequestJsonSerializationSettings settings = this.apiRequestParameterHelper
        .process(uriInfo.getQueryParameters());
    return this.toApiJsonSerializer.serialize(settings, hook,
View Full Code Here

TOP

Related Classes of org.mifosplatform.infrastructure.hooks.data.HookData

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.