Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to new organization #141

Merged
merged 42 commits into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
45d607f
rename delivery module
Simply007 Sep 26, 2022
3c08e61
replace base namespace
Simply007 Sep 26, 2022
41cac52
replace base namespace for delivery generators
Simply007 Sep 26, 2022
eb7241d
rename delivery to delivery-sdk
Simply007 Sep 26, 2022
45c8549
rename generators to delivery-sdk-generators
Simply007 Sep 26, 2022
72822c3
first batch of non-functional renaming
Simply007 Sep 26, 2022
6175c7e
fix up application id for core packages
Simply007 Sep 27, 2022
c66b941
fix readme table
Simply007 Sep 27, 2022
f05a613
fix discord badge
Simply007 Sep 27, 2022
618c287
adjust puglic GPG key
Simply007 Sep 30, 2022
9315e7a
fix server and namesapces
Simply007 Oct 3, 2022
e53c4a8
finish springboot app migration
Simply007 Oct 3, 2022
04c35f1
migrate console app
Simply007 Oct 3, 2022
3187d6d
adjust android app
Simply007 Oct 3, 2022
e8d6dae
migrate kotlin sample app
Simply007 Oct 3, 2022
13dfec3
rest mantionf of Kentico
Simply007 Oct 3, 2022
285422b
refromat file
Simply007 Oct 3, 2022
3c362c8
migrate wiki
Simply007 Oct 4, 2022
be8d4c3
move adpoid plugin only for android apps
Simply007 Oct 6, 2022
813e81f
fix prerequisites
Simply007 Oct 7, 2022
eb67e47
fix links
Simply007 Oct 7, 2022
f6b3511
fix copyrights
Simply007 Oct 7, 2022
631f8e7
fix links to cross the wiki
Simply007 Oct 7, 2022
64edaab
Revert "move adpoid plugin only for android apps"
Simply007 Oct 7, 2022
fbb829d
remove unnecesary dependency (been included in parent project)
Simply007 Oct 7, 2022
ecce283
Update sample-app-android/src/main/res/values/strings.xml
Simply007 Oct 18, 2022
7b01a81
Update README.md
Simply007 Oct 18, 2022
0f3fe61
Update delivery-sdk/README.md
Simply007 Oct 18, 2022
632d9b1
Update delivery-sdk/README.md
Simply007 Oct 18, 2022
5a538dd
finish Kontent.ai rename
Simply007 Oct 20, 2022
752d9a8
rename docs.kontent.ai to learn URL
Simply007 Oct 20, 2022
16d5ad4
fix test
Simply007 Oct 20, 2022
5c073c0
fix some TODO comments
Simply007 Oct 20, 2022
ec4112d
remove extra empty line
Simply007 Oct 20, 2022
f7f19be
fix filename
Simply007 Oct 20, 2022
de73f64
replace font
Simply007 Oct 20, 2022
54c1e4d
remove forgottent folder
Simply007 Oct 20, 2022
820e886
add URL link resolution
Simply007 Oct 20, 2022
7c05b57
format date of article
Simply007 Oct 20, 2022
5204f05
Remove floating action button
Oct 24, 2022
ce5d99a
fix forgotten rebranding
Simply007 Oct 24, 2022
668a13f
use delombok for Asset.java
Simply007 Oct 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class CodeGenerator {

/**
* Constructs the CodeGenerator
* @param projectId the project id from your Kontent account
* @param projectId the project id from your Kontent.ai account
* @param packageName the package to place the generated models under
* @param outputDir the source root to place the generated models
* @throws UnsupportedOperationException when a there is a problem with the outputDir
Expand All @@ -49,30 +49,30 @@ public CodeGenerator(String projectId, String packageName, File outputDir) {
}

/**
* Returns a list of specifications of the sources representing the types in your Kontent account
* Returns a list of specifications of the sources representing the types in your Kontent.ai account
* @return A list of specifications
* @throws ExecutionException when a problem occurs communicating with the Kontent API
* @throws InterruptedException when a problem occurs communicating with the Kontent API
* @throws ExecutionException when a problem occurs communicating with the Kontent.ai API
* @throws InterruptedException when a problem occurs communicating with the Kontent.ai API
*/
public List<JavaFile> generateSources() throws ExecutionException, InterruptedException {
return generateSources(new DeliveryClient(projectId));
}

/**
* Returns a list of specifications of the sources representing the types in your Kontent account.
* Returns a list of specifications of the sources representing the types in your Kontent.ai account.
* The provided {@link DeliveryClient} param is useful for testing, however in most environments, the default
* {@link #generateSources()} method should suffice.
* @param client A DeliveryClient instance to use to generate the sources.
* @return A list of specifications
* @throws ExecutionException when a problem occurs communicating with the Kontent API
* @throws InterruptedException when a problem occurs communicating with the Kontent API
* @throws ExecutionException when a problem occurs communicating with the Kontent.ai API
* @throws InterruptedException when a problem occurs communicating with the Kontent.ai API
*/
public List<JavaFile> generateSources(DeliveryClient client) throws ExecutionException, InterruptedException {
return generateSources(client.getTypes().toCompletableFuture().get().getTypes());
}

/**
* Returns a list of specifications of the sources representing the types in your Kontent account.
* Returns a list of specifications of the sources representing the types in your Kontent.ai account.
* The provided List of {@link ContentType} param is useful for testing, however in most environments, the default
* {@link #generateSources()} method should generally be the only method invoking this.
* @param types A List of ContentType to generate the sources from
Expand All @@ -87,7 +87,7 @@ public List<JavaFile> generateSources(List<ContentType> types) {
}

/**
* Returns a specification of the source representing this type in your Kontent account.
* Returns a specification of the source representing this type in your Kontent.ai account.
* Invoking this directly may be useful for testing, however in most environments, the default
* {@link #generateSources()} method should suffice.
* @param type A ContentType to generate the source from
Expand Down
4 changes: 2 additions & 2 deletions delivery-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}

def packageSummary = 'Kontent Delivery SDK client.'
def packageDescription = 'Java client around Kontent Delivery REST API.'
def packageSummary = 'Kontent.ai Delivery SDK client.'
def packageDescription = 'Java client around Kontent.ai Delivery REST API.'
def repoArtifactId = 'delivery-sdk'

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
* Object model for Assets elements.
*
* @see Asset
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Asset-element">Kontent API reference - Asset</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Asset-element">Kontent.ai API reference - Asset</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
*/
@lombok.Getter
@lombok.Setter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
* @see RichTextElementConverter
* @see RichTextElement
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Linked-items-element">
* Kontent API reference - Link to a content item</a>
* Kontent.ai API reference - Link to a content item</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Rich-text-element/links-single-object">
* Kontent API reference - Rich text links</a>
* Kontent.ai API reference - Rich text links</a>
*/
@FunctionalInterface
public interface BrokenLinkUrlResolver {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@
*
* @see DeliveryClient#setCacheManager(CacheManager)
* @see <a href="https://docs.kontent.ai/tutorials/develop-apps/integrate/using-webhooks-for-automatic-updates">
* Kontent API reference - Webhooks and notifications</a>
* Kontent.ai API reference - Webhooks and notifications</a>
*/
public interface CacheManager {

/**
* Retrieve an earlier cached response from the KontentDelivery API.
Simply007 marked this conversation as resolved.
Show resolved Hide resolved
*
* @param url The url that would be used to retrieve the response from Kontent Delivery API.
* @param url The url that would be used to retrieve the response from Kontent.ai Delivery API.
* @return JsonNode response or null if no value is available in the cache for the given url.
*/
JsonNode get(final String url);

/**
* Cache a response from the KontentDelivery API.
Simply007 marked this conversation as resolved.
Show resolved Hide resolved
*
* @param url the URL that was used to retrieve the response from the KontentDelivery API.
* @param jsonNode the JsonNode created from the response from the Kontent Delivery API.
* @param url the URL that was used to retrieve the response from the Kontent.ai Delivery API.
* @param jsonNode the JsonNode created from the response from the Kontent.ai Deliver API.
Simply007 marked this conversation as resolved.
Show resolved Hide resolved
* @param containedContentItems (null allowed) can be used to inspect the original contents of the JsonNode and allow for precise cache invalidation (if implemented).
*/
void put(final String url, JsonNode jsonNode, List<ContentItem> containedContentItems);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* Object model description of a single content item object.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
*/
@lombok.Data
@lombok.NoArgsConstructor
Expand All @@ -57,7 +57,7 @@ public class ContentItem {
/**
* Content type elements in the content item. These are keyed by the codename of the element.
* <p>
* Note: The order of the {@link Element} objects might not match the order in the Kontent UI.
* Note: The order of the {@link Element} objects might not match the order in the Kontent.ai UI.
*
* @return Map of this ContentItem's {@link Element} objects.
*/
Expand All @@ -73,7 +73,7 @@ public class ContentItem {
/**
* Content type elements in the content item. These are keyed by the codename of the element.
* <p>
* Note: The order of the {@link Element} objects might not match the order in the Kontent UI.
* Note: The order of the {@link Element} objects might not match the order in the Kontent.ai UI.
*
* @param elements New value for this ContentItem's {@link Element} objects.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@
* @see LinkedItem
* @see StronglyTypedContentItemConverter
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Linked-items-element">
* Kontent API reference - Linked items</a>
* Kontent.ai API reference - Linked items</a>
*/
@Target({ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
* {@link DeliveryClient#getItem(String, List)}.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/retrieve-a-content-item">
* Kontent API reference - View a content item</a>
* Kontent.ai API reference - View a content item</a>
* @see ContentItem
* @see DeliveryClient#getItem(String)
* @see DeliveryClient#getItem(String, List)
Expand All @@ -54,9 +54,9 @@ public class ContentItemResponse implements LinkedItemProvider {
* The {@link ContentItem} returned by this ContentItemResponse.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/retrieve-a-content-item">
* Kontent API reference - View a content item</a>
* Kontent.ai API reference - View a content item</a>
* @return The {@link ContentItem} of this ContentItemResponse.
*/
@JsonProperty("item")
Expand All @@ -66,11 +66,11 @@ public class ContentItemResponse implements LinkedItemProvider {
* A map of content items used in linked item and Rich text elements.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Linked-items-element">
* Kontent API reference - Linked items</a>
* Kontent.ai API reference - Linked items</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/retrieve-a-content-item">
* Kontent API reference - View a content item</a>
* Kontent.ai API reference - View a content item</a>
* @return The linked {@link ContentItem}s referenced in this response.
*/
@JsonProperty("modular_content")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
* Content item listing response from an invocation of {@link DeliveryClient#getItems()}, or
* {@link DeliveryClient#getItems(List)}.
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/list-content-items">
* Kontent API reference - List content items</a>
* Kontent.ai API reference - List content items</a>
* @see ContentItem
* @see DeliveryClient#getItem(String)
* @see DeliveryClient#getItem(String, List)
Expand All @@ -54,9 +54,9 @@ public class ContentItemsListingResponse implements LinkedItemProvider {
* The {@link ContentItem}s returned by this ContentItemsListingResponse.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/list-content-items">
* Kontent API reference - List content items</a>
* Kontent.ai API reference - List content items</a>
* @return The {@link ContentItem}s of this ContentItemsListingResponse.
*/
@JsonProperty("items")
Expand All @@ -66,11 +66,11 @@ public class ContentItemsListingResponse implements LinkedItemProvider {
* A map of content items used in linked item and Rich text elements.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Linked-items-element">
* Kontent API reference - Linked items</a>
* Kontent.ai API reference - Linked items</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/list-content-items">
* Kontent API reference - List content items</a>
* Kontent.ai API reference - List content items</a>
* @return The linked {@link ContentItem}s referenced in this response.
*/
@JsonProperty("modular_content")
Expand All @@ -80,9 +80,9 @@ public class ContentItemsListingResponse implements LinkedItemProvider {
* Information about the retrieved page. Used for iterating a large result set if using limit query parameters.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/list-content-items">
* Kontent API reference - Listing response paging</a>
* Kontent.ai API reference - Listing response paging</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/list-content-items">
* Kontent API reference - Pagination object</a>
* Kontent.ai API reference - Pagination object</a>
* @return The {@link Pagination} for this ContentItemsListingResponse identifying the current page.
*/
@JsonProperty("pagination")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
* }</pre>
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Linked-items-element">
* Kontent API reference - Link to a content item</a>
* Kontent.ai API reference - Link to a content item</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Rich-text-element/links-single-object">
* Kontent API reference - Rich text links</a>
* Kontent.ai API reference - Rich text links</a>
* @see Link
* @see RichTextElementConverter
* @see RichTextElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* Also serves as the response from an invocation of {@link DeliveryClient#getType(String)}.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-type-object">
* Kontent API reference - Content type object</a>
* Kontent.ai API reference - Content type object</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/retrieve-a-content-type">
* Kontent API reference - View a content type</a>
* Kontent.ai API reference - View a content type</a>
*/
@lombok.Data
@lombok.NoArgsConstructor
Expand All @@ -56,7 +56,7 @@ public class ContentType {
/**
* Content type elements in the content type. These are keyed by the codename of the element.
* <p>
* Note: The order of the {@link Element} objects might not match the order in the Kontent UI.
* Note: The order of the {@link Element} objects might not match the order in the Kontent.ai UI.
*
* @param elements New value of this ContentType's {@link Element} objects.
* @return Map of this ContentType's {@link Element} objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
* {@link DeliveryClient#getTypes(List)}.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/list-content-types">
* Kontent API reference - List content types</a>
* Kontent.ai API reference - List content types</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-type-object">
* Kontent API reference - Content type object</a>
* Kontent.ai API reference - Content type object</a>
* @see ContentType
* @see DeliveryClient#getTypes()
* @see DeliveryClient#getTypes(List)
Expand All @@ -50,9 +50,9 @@ public class ContentTypesListingResponse {
* The {@link ContentType}s returned by this ContentTypesListingResponse.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/list-content-types">
* Kontent API reference - List content types</a>
* Kontent.ai API reference - List content types</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-type-object">
* Kontent API reference - Content type object</a>
* Kontent.ai API reference - Content type object</a>
* @see ContentType
* @param types New value for the {@link ContentType}s of this ContentTypesListingResponse.
* @return The {@link ContentType}s of this ContentTypesListingResponse.
Expand All @@ -64,9 +64,9 @@ public class ContentTypesListingResponse {
* Information about the retrieved page. Used for iterating a large result set if using limit query parameters.
*
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/list-content-items">
* Kontent API reference - Listing response paging</a>
* Kontent.ai API reference - Listing response paging</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#operation/list-content-items">
* Kontent API reference - Pagination object</a>
* Kontent.ai API reference - Pagination object</a>
* @param pagination New value for the {@link Pagination} of this ContentTypesListingResponse
* @return The {@link Pagination} for this ContentTypesListingResponse identifying the current page.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
*
* @see Asset
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Date-and-time-element">
* Kontent API reference - Date time</a>
* Kontent.ai API reference - Date time</a>
* @see <a href="https://docs.kontent.ai/reference/delivery-api#section/Content-item-object">
* Kontent API reference - Content item object</a>
* Kontent.ai API reference - Content item object</a>
*/
@lombok.Getter
@lombok.Setter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public DeliveryClient(DeliveryOptions deliveryOptions, TemplateEngineConfig temp
throw new IllegalArgumentException("The Delivery options object is not specified.");
}
if (deliveryOptions.getProjectId() == null || deliveryOptions.getProjectId().isEmpty()) {
throw new IllegalArgumentException("Kontent project identifier is not specified.");
throw new IllegalArgumentException("Kontent.ai project identifier is not specified.");
}
try {
UUID.fromString(deliveryOptions.getProjectId());
Expand Down
Loading