fineract-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100126 <...@git.apache.org>
Subject [GitHub] fineract pull request #362: Initial Version of AdHocQuery
Date Fri, 09 Jun 2017 06:21:22 GMT
Github user nazeer1100126 commented on a diff in the pull request:

    https://github.com/apache/fineract/pull/362#discussion_r121055402
  
    --- Diff: fineract-provider/src/main/java/org/apache/fineract/commands/service/CommandWrapperBuilder.java
---
    @@ -2868,4 +2868,43 @@ public CommandWrapperBuilder deleteSmsCampaign(final Long resourceId)
{
             this.href = "/smscampaigns/"+resourceId;
             return this;
         }
    +    public CommandWrapperBuilder disableAdHoc(Long adHocId) {
    +        this.actionName = "DISABLE";
    +        this.entityName = "ADHOC";
    +        this.entityId = adHocId;
    +        this.href = "/adhoc/" + adHocId + "/disbales";
    +        this.json = "{}";
    +        return this;
    +    }
    +
    +    public CommandWrapperBuilder enableAdHoc(Long adHocId) {
    +        this.actionName = "ENABLE";
    +        this.entityName = "ADHOC";
    +        this.entityId = adHocId;
    +        this.href = "/adhoc/" + adHocId + "/enable";
    +        this.json = "{}";
    +        return this;
    +    }
    +    public CommandWrapperBuilder createAdHoc() {
    +        this.actionName = "CREATE";
    +        this.entityName = "ADHOC";
    +        this.href = "/adhoc/template";
    +        return this;
    +    }
    +    public CommandWrapperBuilder updateAdHoc(final Long adHocId) {
    +        this.actionName = "UPDATE";
    +        this.entityName = "ADHOC";
    +        this.entityId = adHocId;
    +        this.href = "/roles/" + adHocId;
    --- End diff --
    
    why roles here? it should be adhoc?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message