Examples of CommandWrapper


Examples of org.glassfish.api.admin.CommandWrapper

        };

        // look for other CommandWrapper annotations
        Annotation annotations[] = command.getClass().getAnnotations();
        for (Annotation a : annotations) {
            CommandWrapper cw = a.annotationType().getAnnotation(CommandWrapper.class);
            if (cw != null) {
                CommandWrapperImpl cwi = habitat.getService(cw.value());
                wrappedCommand = cwi.createWrapper(a, model, wrappedCommand, report);
            }
        }
       
        try {
View Full Code Here

Examples of org.glassfish.api.admin.CommandWrapper

        };

        // look for other CommandWrapper annotations
        Annotation annotations[] = command.getClass().getAnnotations();
        for (Annotation a : annotations) {
            CommandWrapper cw = a.annotationType().getAnnotation(CommandWrapper.class);
            if (cw != null) {
                CommandWrapperImpl cwi = habitat.getService(cw.value());
                wrappedCommand = cwi.createWrapper(a, model, wrappedCommand, report);
            }
        }
       
        try {
View Full Code Here

Examples of org.glassfish.api.admin.CommandWrapper

        };

        // look for other CommandWrapper annotations
        Annotation annotations[] = command.getClass().getAnnotations();
        for (Annotation a : annotations) {
            CommandWrapper cw = a.annotationType().getAnnotation(CommandWrapper.class);
            if (cw != null) {
                CommandWrapperImpl cwi = habitat.getService(cw.value());
                wrappedCommand = cwi.createWrapper(a, model, wrappedCommand, report);
            }
        }
       
        try {
View Full Code Here

Examples of org.mifosplatform.commands.domain.CommandWrapper

    public CommandProcessingResult approveEntry(final Long makerCheckerId) {

        final CommandSource commandSourceInput = validateMakerCheckerTransaction(makerCheckerId);
        validateIsUpdateAllowed();

        final CommandWrapper wrapper = CommandWrapper.fromExistingCommand(makerCheckerId, commandSourceInput.getActionName(),
                commandSourceInput.getEntityName(), commandSourceInput.resourceId(), commandSourceInput.subresourceId(),
                commandSourceInput.getResourceGetUrl(), commandSourceInput.getProductId(), commandSourceInput.getOfficeId(),
                commandSourceInput.getGroupId(), commandSourceInput.getClientId(), commandSourceInput.getLoanId(),
                commandSourceInput.getSavingsId(), commandSourceInput.getTransactionId());
        final JsonElement parsedCommand = this.fromApiJsonHelper.parse(commandSourceInput.json());
View Full Code Here

Examples of org.mifosplatform.commands.domain.CommandWrapper

    @POST
    @Consumes({ MediaType.APPLICATION_JSON })
    @Produces({ MediaType.APPLICATION_JSON })
    public String executePeriodicAccrualAccounting(final String jsonRequestBody) {

        final CommandWrapper commandRequest = new CommandWrapperBuilder().excuteAccrualAccounting().withJson(jsonRequestBody).build();

        final CommandProcessingResult result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);

        return this.apiJsonSerializerService.serialize(result);
    }
View Full Code Here

Examples of org.mifosplatform.commands.domain.CommandWrapper

    private String transactionId;
    private Long productId;
    private Long templateId;

    public CommandWrapper build() {
        return new CommandWrapper(this.officeId, this.groupId, this.clientId, this.loanId, this.savingsId, this.actionName,
                this.entityName, this.entityId, this.subentityId, this.href, this.json, this.transactionId, this.productId, this.templateId);
    }
View Full Code Here

Examples of org.mifosplatform.commands.domain.CommandWrapper

    @POST
    @Consumes({ MediaType.APPLICATION_JSON })
    @Produces({ MediaType.APPLICATION_JSON })
    public String createProductMix(@PathParam("productId") final Long productId, final String apiRequestBodyAsJson) {

        final CommandWrapper commandRequest = new CommandWrapperBuilder().createProductMix(productId).withJson(apiRequestBodyAsJson)
                .build();

        final CommandProcessingResult result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);

        return this.toApiJsonSerializer.serialize(result);
View Full Code Here

Examples of org.mifosplatform.commands.domain.CommandWrapper

    @PUT
    @Consumes({ MediaType.APPLICATION_JSON })
    @Produces({ MediaType.APPLICATION_JSON })
    public String updateProductMix(@PathParam("productId") final Long productId, final String apiRequestBodyAsJson) {

        final CommandWrapper commandRequest = new CommandWrapperBuilder().updateProductMix(productId).withJson(apiRequestBodyAsJson)
                .build();

        final CommandProcessingResult result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);

        return this.toApiJsonSerializer.serialize(result);
View Full Code Here

Examples of org.mifosplatform.commands.domain.CommandWrapper

    @DELETE
    @Consumes({ MediaType.APPLICATION_JSON })
    @Produces({ MediaType.APPLICATION_JSON })
    public String deleteProductMix(@PathParam("productId") final Long productId) {

        final CommandWrapper commandRequest = new CommandWrapperBuilder().deleteProductMix(productId).build();

        final CommandProcessingResult result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);

        return this.toApiJsonSerializer.serialize(result);
    }
View Full Code Here

Examples of org.mifosplatform.commands.domain.CommandWrapper

    @POST
    @Consumes({ MediaType.APPLICATION_JSON })
    @Produces({ MediaType.APPLICATION_JSON })
    public String create(@PathParam("chartId") final Long chartId, final String apiRequestBodyAsJson) {

        final CommandWrapper commandRequest = new CommandWrapperBuilder().createInterestRateChartSlab(chartId)
                .withJson(apiRequestBodyAsJson).build();

        final CommandProcessingResult result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);

        return this.toApiJsonSerializer.serialize(result);
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.