-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feature: added updated API calls * fix: fixed bugs * fix: fixed bugs * fix: fixed bugs * fix: fixed bugs * fix: fixed bugs
- Loading branch information
1 parent
b8417b1
commit ca19f0a
Showing
62 changed files
with
1,688 additions
and
507 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
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
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
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
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
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
24 changes: 0 additions & 24 deletions
24
cli/src/main/java/com/objectstorage/converter/ConfigExporterToContentExporterConverter.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
...src/main/java/com/objectstorage/converter/ConfigLocationsToContentLocationsConverter.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
30 changes: 30 additions & 0 deletions
30
...src/main/java/com/objectstorage/converter/SelectedProviderToContentProviderConverter.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,30 @@ | ||
package com.objectstorage.converter; | ||
|
||
import com.objectstorage.entity.ConfigEntity; | ||
import com.objectstorage.model.Provider; | ||
|
||
import java.util.Arrays; | ||
import java.util.Objects; | ||
|
||
/** | ||
* Represents selected provider to ObjectStorage API Server content provider converter. | ||
*/ | ||
public class SelectedProviderToContentProviderConverter { | ||
|
||
/** | ||
* Converts given config provider to content provider. | ||
* | ||
* @param selectedProvider given selected provider to be converted. | ||
* @return converted content provider. | ||
*/ | ||
public static Provider convert(String selectedProvider) { | ||
return Provider.valueOf( | ||
Arrays.stream(ConfigEntity.Service.Provider.values()) | ||
.toList() | ||
.stream() | ||
.filter(element -> Objects.equals(element.toString(), selectedProvider)) | ||
.map(Enum::name) | ||
.toList() | ||
.getFirst()); | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
cli/src/main/java/com/objectstorage/dto/ContentApplicationRequestDto.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,16 @@ | ||
package com.objectstorage.dto; | ||
|
||
import com.objectstorage.model.ContentApplication; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Represents content application request details. | ||
*/ | ||
@Getter | ||
@AllArgsConstructor(staticName = "of") | ||
public class ContentApplicationRequestDto { | ||
private String authorization; | ||
|
||
private ContentApplication contentApplication; | ||
} |
16 changes: 16 additions & 0 deletions
16
cli/src/main/java/com/objectstorage/dto/ContentCleanupRequestDto.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,16 @@ | ||
package com.objectstorage.dto; | ||
|
||
import com.objectstorage.model.ContentCleanup; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Represents content cleanup request details. | ||
*/ | ||
@Getter | ||
@AllArgsConstructor(staticName = "of") | ||
public class ContentCleanupRequestDto { | ||
private String authorization; | ||
|
||
private ContentCleanup contentCleanup; | ||
} |
17 changes: 17 additions & 0 deletions
17
cli/src/main/java/com/objectstorage/dto/ContentDownloadBackupRequestDto.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,17 @@ | ||
package com.objectstorage.dto; | ||
|
||
import com.objectstorage.model.ContentBackupDownload; | ||
import com.objectstorage.model.ContentObjectDownload; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Represents content download backup request details. | ||
*/ | ||
@Getter | ||
@AllArgsConstructor(staticName = "of") | ||
public class ContentDownloadBackupRequestDto { | ||
private String authorization; | ||
|
||
private ContentBackupDownload contentBackupDownload; | ||
} |
17 changes: 17 additions & 0 deletions
17
cli/src/main/java/com/objectstorage/dto/ContentDownloadObjectRequestDto.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,17 @@ | ||
package com.objectstorage.dto; | ||
|
||
import com.objectstorage.model.ContentCleanup; | ||
import com.objectstorage.model.ContentObjectDownload; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Represents content download object request details. | ||
*/ | ||
@Getter | ||
@AllArgsConstructor(staticName = "of") | ||
public class ContentDownloadObjectRequestDto { | ||
private String authorization; | ||
|
||
private ContentObjectDownload contentObjectDownload; | ||
} |
19 changes: 19 additions & 0 deletions
19
cli/src/main/java/com/objectstorage/dto/ContentUploadObjectRequestDto.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,19 @@ | ||
package com.objectstorage.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.io.File; | ||
|
||
/** | ||
* Represents content upload object request details. | ||
*/ | ||
@Getter | ||
@AllArgsConstructor(staticName = "of") | ||
public class ContentUploadObjectRequestDto { | ||
private String authorization; | ||
|
||
private String location; | ||
|
||
private File file; | ||
} |
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.