-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Merged two services into one for building writeSet and f…
…ew other refractor Signed-off-by: n0s09by <[email protected]>
- Loading branch information
1 parent
f0f3000
commit ee49783
Showing
12 changed files
with
125 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/main/java/hlf/java/rest/client/model/ChannelUpdateParamsDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package hlf.java.rest.client.model; | ||
|
||
import java.util.List; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class ChannelUpdateParamsDTO { | ||
private String organizationMspId; | ||
private List<AnchorPeerDTO> anchorPeerDTOs; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
package hlf.java.rest.client.model; | ||
|
||
import java.util.List; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class NewOrgParamsDTO { | ||
|
||
public class NewOrgParamsDTO extends ChannelUpdateParamsDTO { | ||
private String organizationName; | ||
private String organizationMspId; | ||
private MSPDTO mspDTO; | ||
private List<AnchorPeerDTO> anchorPeerDTOs; | ||
} |
11 changes: 0 additions & 11 deletions
11
src/main/java/hlf/java/rest/client/service/AddAnchorPeerToChannelWriteSetBuilder.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...rvice/AddOrgToChannelWriteSetBuilder.java → ...va/rest/client/service/UpdateChannel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package hlf.java.rest.client.service; | ||
|
||
import hlf.java.rest.client.exception.ServiceException; | ||
import hlf.java.rest.client.model.NewOrgParamsDTO; | ||
import hlf.java.rest.client.model.ChannelUpdateParamsDTO; | ||
import org.hyperledger.fabric.protos.common.Configtx.ConfigGroup; | ||
|
||
public interface AddOrgToChannelWriteSetBuilder { | ||
public interface UpdateChannel { | ||
|
||
ConfigGroup buildWriteset(ConfigGroup readset, NewOrgParamsDTO organizationDetails) | ||
ConfigGroup buildWriteset(ConfigGroup readset, ChannelUpdateParamsDTO organizationDetails) | ||
throws ServiceException; | ||
} |
91 changes: 0 additions & 91 deletions
91
...ain/java/hlf/java/rest/client/service/impl/AddAnchorPeerToChannelWriteSetBuilderImpl.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.