Skip to content

Commit

Permalink
Update the client modules structure and artifact naming
Browse files Browse the repository at this point in the history
  • Loading branch information
yma96 committed May 8, 2023
1 parent 0f858a8 commit 4dbb6e1
Show file tree
Hide file tree
Showing 69 changed files with 476 additions and 199 deletions.
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# indy-client-modules
# indy-client

Provide the client modules to Indy functionalities access and resources management on contents, stores, promotion, folo tracking, koji, etc.
Provide the client modules for Indy functionalities access and resources management on the contents, stores, promotion, folo track, koji, etc.

## Client Modules:
IndyContentClientModule

IndyContentBrowseClientModule

IndyStoreQueryClientModule

IndyStoresClientModule

IndyPromoteAdminClientModule

IndyPromoteClientModule

IndyFoloAdminClientModule

IndyFoloContentClientModule

IndyKojiClientModule

IndyRawHttpModule

IndySslValidationClientModule
39 changes: 39 additions & 0 deletions client-addons/content-browse/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2011-2022 Red Hat, Inc. (https://github.com/Commonjava/indy)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.commonjava.indy</groupId>
<artifactId>indy-client-addons</artifactId>
<version>3.2.0-SNAPSHOT</version>
</parent>

<artifactId>indy-content-browse-client-java</artifactId>
<name>Indy :: Add-Ons :: Directory Content Browse :: Java Client</name>

<dependencies>
<dependency>
<groupId>org.commonjava.indy</groupId>
<artifactId>indy-client-core-java</artifactId>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.modules;
package org.commonjava.indy.content.browse.client;

import org.commonjava.indy.client.core.IndyClientException;
import org.commonjava.indy.client.core.IndyClientModule;
import org.commonjava.indy.client.util.UrlUtils;
import org.commonjava.indy.client.model.browse.ContentBrowseResult;
import org.commonjava.indy.client.model.StoreKey;
import org.commonjava.indy.client.model.StoreType;
import org.commonjava.indy.client.core.util.UrlUtils;
import org.commonjava.indy.client.core.model.StoreKey;
import org.commonjava.indy.client.core.model.StoreType;
import org.commonjava.indy.content.browse.client.model.ContentBrowseResult;
import java.util.Map;

public class IndyContentBrowseClientModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.model.browse;
package org.commonjava.indy.content.browse.client.model;

import org.commonjava.indy.client.model.StoreKey;
import org.commonjava.indy.client.core.model.StoreKey;
import java.util.List;
import java.util.Set;

Expand Down
43 changes: 43 additions & 0 deletions client-addons/folo/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2011-2022 Red Hat, Inc. (https://github.com/Commonjava/indy)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.commonjava.indy</groupId>
<artifactId>indy-client-addons</artifactId>
<version>3.2.0-SNAPSHOT</version>
</parent>

<artifactId>indy-folo-client-java</artifactId>
<name>Indy :: Add-Ons :: Folo Usage Tracker :: Java Client</name>

<dependencies>
<dependency>
<groupId>org.commonjava.indy</groupId>
<artifactId>indy-client-core-java</artifactId>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.modules;
package org.commonjava.indy.folo.client;

import org.apache.commons.io.IOUtils;
import org.apache.http.HttpResponse;
Expand All @@ -23,11 +23,11 @@
import org.commonjava.indy.client.core.IndyClientException;
import org.commonjava.indy.client.core.IndyClientModule;
import org.commonjava.indy.client.core.IndyResponseErrorDetails;
import org.commonjava.indy.client.helper.HttpResources;
import org.commonjava.indy.client.util.UrlUtils;
import org.commonjava.indy.client.model.folo.TrackedContentDTO;
import org.commonjava.indy.client.model.folo.TrackingIdsDTO;
import org.commonjava.indy.client.model.BatchDeleteRequest;
import org.commonjava.indy.client.core.helper.HttpResources;
import org.commonjava.indy.client.core.model.BatchDeleteRequest;
import org.commonjava.indy.client.core.util.UrlUtils;
import org.commonjava.indy.folo.client.model.TrackedContentDTO;
import org.commonjava.indy.folo.client.model.TrackingIdsDTO;
import java.io.IOException;
import java.io.InputStream;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.modules;
package org.commonjava.indy.folo.client;

import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import org.commonjava.indy.client.core.IndyClientException;
import org.commonjava.indy.client.core.IndyClientModule;
import org.commonjava.indy.client.helper.HttpResources;
import org.commonjava.indy.client.helper.PathInfo;
import org.commonjava.indy.client.util.UrlUtils;
import org.commonjava.indy.client.model.StoreKey;
import org.commonjava.indy.client.core.helper.HttpResources;
import org.commonjava.indy.client.core.helper.PathInfo;
import org.commonjava.indy.client.core.model.StoreKey;
import org.commonjava.indy.client.core.util.UrlUtils;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;

public class IndyFoloContentClientModule
extends IndyClientModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.model.folo;
package org.commonjava.indy.folo.client.model;

import io.swagger.annotations.ApiModelProperty;

import java.util.Set;

public class TrackedContentDTO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.model.folo;
package org.commonjava.indy.folo.client.model;

import io.swagger.annotations.ApiModelProperty;
import org.commonjava.indy.client.model.AccessChannel;
import org.commonjava.indy.client.model.StoreKey;
import org.commonjava.indy.client.core.model.AccessChannel;
import org.commonjava.indy.client.core.model.StoreKey;

import java.util.Set;

public class TrackedContentEntryDTO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.model.folo;
package org.commonjava.indy.folo.client.model;

import java.util.Set;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.model.folo;
package org.commonjava.indy.folo.client.model;

import java.io.Externalizable;
import java.io.IOException;
Expand Down
43 changes: 43 additions & 0 deletions client-addons/koji/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2011-2022 Red Hat, Inc. (https://github.com/Commonjava/indy)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.commonjava.indy</groupId>
<artifactId>indy-client-addons</artifactId>
<version>3.2.0-SNAPSHOT</version>
</parent>

<artifactId>indy-koji-client-java</artifactId>
<name>Indy :: Add-Ons :: Koji Integration :: Java Client</name>

<dependencies>
<dependency>
<groupId>org.commonjava.indy</groupId>
<artifactId>indy-client-core-java</artifactId>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.modules;
package org.commonjava.indy.koji.client;

import org.apache.http.HttpStatus;
import org.commonjava.indy.client.core.IndyClientException;
import org.commonjava.indy.client.core.IndyClientModule;
import org.commonjava.indy.client.model.koji.KojiRepairRequest;
import org.commonjava.indy.client.model.koji.KojiRepairResult;
import org.commonjava.indy.client.model.StoreKey;
import org.commonjava.indy.client.model.StoreType;
import org.commonjava.indy.client.core.model.StoreKey;
import org.commonjava.indy.client.core.model.StoreType;
import org.commonjava.indy.koji.client.model.KojiRepairRequest;
import org.commonjava.indy.koji.client.model.KojiRepairResult;

public class IndyKojiClientModule
extends IndyClientModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.model.koji;
package org.commonjava.indy.koji.client.model;

import io.swagger.annotations.ApiModelProperty;
import org.commonjava.indy.client.model.StoreKey;
import org.commonjava.indy.client.core.model.StoreKey;

/**
* Request to repair Koji remote stores. If source is a group, all repositories in the group are to be repaired.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.commonjava.indy.client.model.koji;
package org.commonjava.indy.koji.client.model;

import io.swagger.annotations.ApiModelProperty;
import org.commonjava.indy.client.model.StoreKey;
import org.commonjava.indy.client.core.model.StoreKey;
import java.util.ArrayList;
import java.util.List;

Expand Down
39 changes: 39 additions & 0 deletions client-addons/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2011-2022 Red Hat, Inc. (https://github.com/Commonjava/indy)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.commonjava.indy</groupId>
<artifactId>indy-clients-parent</artifactId>
<version>3.2.0-SNAPSHOT</version>
</parent>

<artifactId>indy-client-addons</artifactId>
<packaging>pom</packaging>
<name>Indy :: Client Add-Ons :: Parent</name>
<modules>
<module>content-browse</module>
<module>folo</module>
<module>promote</module>
<module>koji</module>
</modules>

</project>
Loading

0 comments on commit 4dbb6e1

Please sign in to comment.