From 44aa60d2379af2239fd317e63fb2851f510b9c9b Mon Sep 17 00:00:00 2001 From: Sander van der Heyden Date: Wed, 20 Mar 2013 15:27:00 +0100 Subject: [PATCH] MIFOSX-230-2: Extended documents functionality to groups entity and added to documentation --- api-docs/apiLive.htm | 5 +++-- .../DocumentWritePlatformServiceJpaRepositoryImpl.java | 2 +- .../mifosplatform/portfolio/group/command/GroupCommand.java | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index 9697fd7bb..063433ffb 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -8150,7 +8150,7 @@ No Request Body:

Documents

Multiple Documents (a combination of a name, description and a file) may be attached to different Entities - like Clients, Staff, Loans, Savings and Client + like Clients, Groups, Staff, Loans, Savings and Client Identifiers in the system

Note: The currently allowed Entities are @@ -8160,6 +8160,7 @@ No Request Body:

  • Loans: URL Pattern as loans
  • Savings: URL Pattern as savings
  • Client Identifiers: URL Pattern as client_identifiers
  • +
  • Groups: URL Pattern as groups

  • @@ -11727,4 +11728,4 @@ Content-Type: application/json }); - \ No newline at end of file + diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/documentmanagement/service/DocumentWritePlatformServiceJpaRepositoryImpl.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/documentmanagement/service/DocumentWritePlatformServiceJpaRepositoryImpl.java index 7c5e6cb16..84a1ca41e 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/documentmanagement/service/DocumentWritePlatformServiceJpaRepositoryImpl.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/documentmanagement/service/DocumentWritePlatformServiceJpaRepositoryImpl.java @@ -168,7 +168,7 @@ public class DocumentWritePlatformServiceJpaRepositoryImpl implements DocumentWr /*** Entities for document Management **/ public static enum DOCUMENT_MANAGEMENT_ENTITY { - CLIENTS, CLIENT_IDENTIFIERS, STAFF, LOANS, SAVINGS; + CLIENTS, CLIENT_IDENTIFIERS, STAFF, LOANS, SAVINGS, GROUPS; @Override public String toString() { diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/command/GroupCommand.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/command/GroupCommand.java index 5903a1881..4dea872a8 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/command/GroupCommand.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/group/command/GroupCommand.java @@ -55,4 +55,4 @@ public class GroupCommand { return this.childGroups; } -} \ No newline at end of file +} \ No newline at end of file