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

[Feature] Api tile enhancement #12161

Merged
merged 6 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -3925,6 +3925,11 @@
api.setContextTemplate(publiserAPI.getContext());
api.setStatus(publiserAPI.getStatus());
api.setBusinessOwner(publiserAPI.getBusinessOwner());
api.setBusinessOwnerEmail(publiserAPI.getBusinessOwnerEmail());
api.setTechnicalOwner(publiserAPI.getTechnicalOwner());
api.setTechnicalOwnerEmail(publiserAPI.getTechnicalOwnerEmail());
api.setMonetizationEnabled(publiserAPI.getMonetizationStatus());
api.setAdvertiseOnly(publiserAPI.getAdvertiseOnly());

Check warning on line 3932 in components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIConsumerImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIConsumerImpl.java#L3928-L3932

Added lines #L3928 - L3932 were not covered by tests
api.setRating(0);// need to retrieve from db
apiSet.add(api);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5186,6 +5186,12 @@
api.setContextTemplate(publiserAPI.getContext());
api.setStatus(publiserAPI.getStatus());
api.setThumbnailUrl(publiserAPI.getThumbnailUri());
api.setBusinessOwner(publiserAPI.getBusinessOwner());
api.setBusinessOwnerEmail(publiserAPI.getBusinessOwnerEmail());
api.setTechnicalOwner(publiserAPI.getTechnicalOwner());
api.setTechnicalOwnerEmail(publiserAPI.getTechnicalOwnerEmail());
api.setMonetizationEnabled(publiserAPI.getMonetizationStatus());
api.setAdvertiseOnly(publiserAPI.getAdvertiseOnly());

Check warning on line 5194 in components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java#L5189-L5194

Added lines #L5189 - L5194 were not covered by tests
apiSet.add(api);
} else if ("APIProduct".equals(item.getType())) {

Expand All @@ -5196,6 +5202,11 @@
api.setContextTemplate(publiserAPI.getContext());
api.setState(publiserAPI.getStatus());
api.setThumbnailUrl(publiserAPI.getThumbnailUri());
api.setBusinessOwner(publiserAPI.getBusinessOwner());
api.setBusinessOwnerEmail(publiserAPI.getBusinessOwnerEmail());
api.setTechnicalOwner(publiserAPI.getTechnicalOwner());
api.setTechnicalOwnerEmail(publiserAPI.getTechnicalOwnerEmail());
api.setMonetizationEnabled(publiserAPI.getMonetizationStatus());

Check warning on line 5209 in components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java#L5205-L5209

Added lines #L5205 - L5209 were not covered by tests
apiProductSet.add(api);
} else if (item instanceof DocumentSearchContent) {
// doc item
Expand Down Expand Up @@ -5344,6 +5355,11 @@
mappedAPI.setContext(publisherAPIInfo.getContext());
mappedAPI.setApiSecurity(publisherAPIInfo.getApiSecurity());
mappedAPI.setThumbnailUrl(publisherAPIInfo.getThumbnail());
mappedAPI.setBusinessOwner(publisherAPIInfo.getBusinessOwner());
mappedAPI.setBusinessOwnerEmail(publisherAPIInfo.getBusinessOwnerEmail());
mappedAPI.setTechnicalOwner(publisherAPIInfo.getTechnicalOwner());
mappedAPI.setTechnicalOwnerEmail(publisherAPIInfo.getTechnicalOwnerEmail());
mappedAPI.setMonetizationEnabled(publisherAPIInfo.getMonetizationStatus());

Check warning on line 5362 in components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java#L5358-L5362

Added lines #L5358 - L5362 were not covered by tests
populateAPIStatus(mappedAPI);
productList.add(mappedAPI);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,12 @@
apiInfo.setGatewayVendor(String.valueOf(artifact.getAttribute(APIConstants.API_OVERVIEW_GATEWAY_VENDOR)));
apiInfo.setAdvertiseOnly(Boolean.parseBoolean(artifact
.getAttribute(APIConstants.API_OVERVIEW_ADVERTISE_ONLY)));
apiInfo.setBusinessOwner(artifact.getAttribute(APIConstants.API_OVERVIEW_BUSS_OWNER));
apiInfo.setBusinessOwnerEmail(artifact.getAttribute(APIConstants.API_OVERVIEW_BUSS_OWNER_EMAIL));
apiInfo.setTechnicalOwner(artifact.getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER));
apiInfo.setTechnicalOwnerEmail(artifact.getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER_EMAIL));
apiInfo.setMonetizationStatus(Boolean.parseBoolean(artifact.
getAttribute(APIConstants.Monetization.API_MONETIZATION_STATUS)));

Check warning on line 987 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java#L982-L987

Added lines #L982 - L987 were not covered by tests
publisherAPIInfoList.add(apiInfo);

// Ensure the APIs returned matches the length, there could be an additional API
Expand Down Expand Up @@ -1094,6 +1100,9 @@
apiInfo.setStatus(artifact.getAttribute(APIConstants.API_OVERVIEW_STATUS));
apiInfo.setThumbnail(artifact.getAttribute(APIConstants.API_OVERVIEW_THUMBNAIL_URL));
apiInfo.setBusinessOwner(artifact.getAttribute(APIConstants.API_OVERVIEW_BUSS_OWNER));
apiInfo.setBusinessOwnerEmail(artifact.getAttribute(APIConstants.API_OVERVIEW_BUSS_OWNER_EMAIL));
apiInfo.setTechnicalOwner(artifact.getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER));
apiInfo.setTechnicalOwnerEmail(artifact.getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER_EMAIL));

Check warning on line 1105 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java#L1103-L1105

Added lines #L1103 - L1105 were not covered by tests
apiInfo.setVersion(artifact.getAttribute(APIConstants.API_OVERVIEW_VERSION));
String tiers = artifact.getAttribute(APIConstants.API_OVERVIEW_TIER);
Set<String> availableTiers = new HashSet<String>();
Expand All @@ -1109,6 +1118,10 @@
apiInfo.setSubscriptionAvailableOrgs(
artifact.getAttribute(APIConstants.API_OVERVIEW_SUBSCRIPTION_AVAILABLE_TENANTS));
apiInfo.setGatewayVendor(artifact.getAttribute(APIConstants.API_OVERVIEW_GATEWAY_VENDOR));
apiInfo.setMonetizationStatus(Boolean.parseBoolean(artifact.
getAttribute(APIConstants.Monetization.API_MONETIZATION_STATUS)));
apiInfo.setAdvertiseOnly(Boolean.parseBoolean(artifact
.getAttribute(APIConstants.API_OVERVIEW_ADVERTISE_ONLY)));

Check warning on line 1124 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java#L1121-L1124

Added lines #L1121 - L1124 were not covered by tests
devPortalAPIInfoList.add(apiInfo);

// Ensure the APIs returned matches the length, there could be an additional API
Expand Down Expand Up @@ -1223,6 +1236,15 @@
apiInfo.setSubscriptionAvailableOrgs(artifact
.getAttribute(APIConstants.API_OVERVIEW_SUBSCRIPTION_AVAILABLE_TENANTS));
apiInfo.setGatewayVendor(artifact.getAttribute(APIConstants.API_OVERVIEW_GATEWAY_VENDOR));
apiInfo.setAdvertiseOnly(Boolean.parseBoolean(artifact
.getAttribute(APIConstants.API_OVERVIEW_ADVERTISE_ONLY)));
apiInfo.setBusinessOwnerEmail(artifact.
getAttribute(APIConstants.API_OVERVIEW_BUSS_OWNER_EMAIL));
apiInfo.setTechnicalOwner(artifact.getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER));
apiInfo.setTechnicalOwnerEmail(artifact.
getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER_EMAIL));
apiInfo.setMonetizationStatus(Boolean.parseBoolean(artifact.
getAttribute(APIConstants.Monetization.API_MONETIZATION_STATUS)));

Check warning on line 1247 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java#L1239-L1247

Added lines #L1239 - L1247 were not covered by tests
devPortalAPIInfoList.add(apiInfo);
}

Expand Down Expand Up @@ -1338,6 +1360,14 @@
apiInfo.setVersion(artifact.getAttribute(APIConstants.API_OVERVIEW_VERSION));
apiInfo.setAdvertiseOnly(Boolean.parseBoolean(artifact
.getAttribute(APIConstants.API_OVERVIEW_ADVERTISE_ONLY)));
apiInfo.setBusinessOwner(artifact.getAttribute(APIConstants.API_OVERVIEW_BUSS_OWNER));
apiInfo.setBusinessOwnerEmail(artifact.
getAttribute(APIConstants.API_OVERVIEW_BUSS_OWNER_EMAIL));
apiInfo.setTechnicalOwner(artifact.getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER));
apiInfo.setTechnicalOwnerEmail(artifact.
getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER_EMAIL));
apiInfo.setMonetizationStatus(Boolean.parseBoolean(artifact.
getAttribute(APIConstants.Monetization.API_MONETIZATION_STATUS)));

Check warning on line 1370 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java#L1363-L1370

Added lines #L1363 - L1370 were not covered by tests
publisherAPIInfoList.add(apiInfo);
}

Expand Down Expand Up @@ -1508,6 +1538,11 @@
content.setStatus(pubAPI.getStatus());
content.setAdvertiseOnly(pubAPI.isAdvertiseOnly());
content.setThumbnailUri(pubAPI.getThumbnail());
content.setBusinessOwner(pubAPI.getBusinessOwner());
content.setBusinessOwnerEmail(pubAPI.getBusinessOwnerEmail());
content.setTechnicalOwner(pubAPI.getTechnicalOwner());
content.setTechnicalOwnerEmail(pubAPI.getTechnicalOwnerEmail());
content.setMonetizationStatus(pubAPI.getMonetizationStatus());

Check warning on line 1545 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java#L1541-L1545

Added lines #L1541 - L1545 were not covered by tests
contentData.add(content);
} else {
throw new GovernanceException("artifact id is null for " + resourcePath);
Expand Down Expand Up @@ -1646,6 +1681,11 @@
content.setStatus(devAPI.getStatus());
content.setBusinessOwner(devAPI.getBusinessOwner());
content.setBusinessOwnerEmail(devAPI.getBusinessOwnerEmail());
content.setBusinessOwnerEmail(devAPI.getBusinessOwnerEmail());
content.setTechnicalOwner(devAPI.getTechnicalOwner());
content.setTechnicalOwnerEmail(devAPI.getTechnicalOwnerEmail());
content.setMonetizationStatus(devAPI.getMonetizationStatus());
content.setAdvertiseOnly(devAPI.isAdvertiseOnly());

Check warning on line 1688 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java#L1684-L1688

Added lines #L1684 - L1688 were not covered by tests

contentData.add(content);
} else {
Expand Down Expand Up @@ -3303,6 +3343,12 @@
info.setVersion(artifact.getAttribute(APIConstants.API_OVERVIEW_VERSION));
info.setApiSecurity(artifact.getAttribute(APIConstants.API_OVERVIEW_API_SECURITY));
info.setThumbnail(artifact.getAttribute(APIConstants.API_OVERVIEW_THUMBNAIL_URL));
info.setBusinessOwner(artifact.getAttribute(APIConstants.API_OVERVIEW_BUSS_OWNER));
info.setBusinessOwnerEmail(artifact.getAttribute(APIConstants.API_OVERVIEW_BUSS_OWNER_EMAIL));
info.setTechnicalOwner(artifact.getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER));
info.setTechnicalOwnerEmail(artifact.getAttribute(APIConstants.API_OVERVIEW_TEC_OWNER_EMAIL));
info.setMonetizationStatus(Boolean.parseBoolean(artifact.
getAttribute(APIConstants.Monetization.API_MONETIZATION_STATUS)));

Check warning on line 3351 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/RegistryPersistenceImpl.java#L3346-L3351

Added lines #L3346 - L3351 were not covered by tests

publisherAPIProductInfoList.add(info);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
private String description;
private String gatewayVendor;
private Map<String, String> additionalProperties;
private String businessOwnerEmail;
private String technicalOwner;
private String technicalOwnerEmail;
private Boolean isMonetizationEnabled;
private boolean advertiseOnly;

public void setGatewayVendor(String gatewayVendor) {
this.gatewayVendor = gatewayVendor;
Expand Down Expand Up @@ -145,13 +150,56 @@
this.additionalProperties = additionalProperties;
}

public String getBusinessOwnerEmail() {
return businessOwnerEmail;
}

public void setBusinessOwnerEmail(String businessOwnerEmail) {
this.businessOwnerEmail = businessOwnerEmail;
}

Check warning on line 159 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalAPIInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalAPIInfo.java#L158-L159

Added lines #L158 - L159 were not covered by tests

public String getTechnicalOwner() {
return technicalOwner;
}

public void setTechnicalOwner(String technicalOwner) {
this.technicalOwner = technicalOwner;
}

Check warning on line 167 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalAPIInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalAPIInfo.java#L166-L167

Added lines #L166 - L167 were not covered by tests

public String getTechnicalOwnerEmail() {
return technicalOwnerEmail;
}

public void setTechnicalOwnerEmail(String technicalOwnerEmail) {
this.technicalOwnerEmail = technicalOwnerEmail;
}

Check warning on line 175 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalAPIInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalAPIInfo.java#L174-L175

Added lines #L174 - L175 were not covered by tests

public Boolean getMonetizationStatus() {
return isMonetizationEnabled;
}

public void setMonetizationStatus(Boolean isMonetizationEnabled) {
this.isMonetizationEnabled = isMonetizationEnabled;
}

public boolean isAdvertiseOnly() {
return advertiseOnly;
}

public void setAdvertiseOnly(boolean advertiseOnly) {
this.advertiseOnly = advertiseOnly;
}

Check warning on line 191 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalAPIInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalAPIInfo.java#L190-L191

Added lines #L190 - L191 were not covered by tests

@Override
public String toString() {
return "DevPortalAPIInfo [id=" + id + ", apiName=" + apiName + ", description=" + description + ", version="
+ version + ", providerName=" + providerName + ", context=" + context + ", type=" + type + ", " +
"thumbnail=" + thumbnail + ", businessOwner=" + businessOwner + ", status=" + status + ", " +
"availableTierNames=" + availableTierNames + ", subscriptionAvailability=" + subscriptionAvailability
+ ", subscriptionAvailableOrgs=" + subscriptionAvailableOrgs + "]";
"thumbnail=" + thumbnail + ", businessOwner=" + businessOwner + ", businessOwnerEmail="
+ businessOwnerEmail + ", technicalOwner=" + technicalOwner + ", technicalOwnerEmail="
+ technicalOwnerEmail + ", status=" + status + ", " + "availableTierNames=" + availableTierNames +
", subscriptionAvailability=" + subscriptionAvailability + ", subscriptionAvailableOrgs="
+ subscriptionAvailableOrgs + ", isMonetizationEnabled=" + isMonetizationEnabled + ", advertiseOnly="
+ advertiseOnly +"]";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
String technicalOwner;
String technicalOwnerEmail;
String avgRating;
Boolean isMonetizationEnabled;
Boolean advertiseOnly;

@Override
public String getId() {
Expand Down Expand Up @@ -155,4 +157,20 @@
this.avgRating = avgRating;
}

public Boolean getAdvertiseOnly() {
return advertiseOnly;

Check warning on line 161 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalSearchContent.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalSearchContent.java#L161

Added line #L161 was not covered by tests
}

public void setAdvertiseOnly(Boolean advertiseOnly) {
this.advertiseOnly = advertiseOnly;
}

Check warning on line 166 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalSearchContent.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalSearchContent.java#L165-L166

Added lines #L165 - L166 were not covered by tests

public Boolean getMonetizationStatus() {
return isMonetizationEnabled;

Check warning on line 169 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalSearchContent.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalSearchContent.java#L169

Added line #L169 was not covered by tests
}

public void setMonetizationStatus(Boolean isMonetizationEnabled) {
this.isMonetizationEnabled = isMonetizationEnabled;
}

Check warning on line 174 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalSearchContent.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/DevPortalSearchContent.java#L173-L174

Added lines #L173 - L174 were not covered by tests

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
private String gatewayVendor;
private boolean advertiseOnly;
private String updatedBy;
private String businessOwner;
private String businessOwnerEmail;
private String technicalOwner;
private String technicalOwnerEmail;
private Boolean isMonetizationEnabled;

public String getAudience() {
return audience;
Expand Down Expand Up @@ -156,11 +161,53 @@
this.advertiseOnly = advertiseOnly;
}

public String getBusinessOwner() {
return businessOwner;
}

public void setBusinessOwner(String businessOwner) {
this.businessOwner = businessOwner;
}

Check warning on line 170 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIInfo.java#L169-L170

Added lines #L169 - L170 were not covered by tests

public String getBusinessOwnerEmail() {
return businessOwnerEmail;
}

public void setBusinessOwnerEmail(String businessOwnerEmail) {
this.businessOwnerEmail = businessOwnerEmail;
}

Check warning on line 178 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIInfo.java#L177-L178

Added lines #L177 - L178 were not covered by tests

public String getTechnicalOwner() {
return technicalOwner;
}

public void setTechnicalOwner(String technicalOwner) {
this.technicalOwner = technicalOwner;
}

Check warning on line 186 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIInfo.java#L185-L186

Added lines #L185 - L186 were not covered by tests

public String getTechnicalOwnerEmail() {
return technicalOwnerEmail;
}

public void setTechnicalOwnerEmail(String technicalOwnerEmail) {
this.technicalOwnerEmail = technicalOwnerEmail;
}

Check warning on line 194 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIInfo.java#L193-L194

Added lines #L193 - L194 were not covered by tests

public Boolean getMonetizationStatus() {
return isMonetizationEnabled;
}

public void setMonetizationStatus(Boolean isMonetizationEnabled) {
this.isMonetizationEnabled = isMonetizationEnabled;
}

@Override
public String toString() {
return "PublisherAPIInfo [id=" + id + ", apiName=" + apiName + ", description=" + description + ", version=" +
version + ", providerName=" + providerName + ", context=" + context + ", status=" + status + ", type="
+ type + ", thumbnail=" + thumbnail + ", advertiseOnly=" + advertiseOnly + "]";
+ type + ", thumbnail=" + thumbnail + ", advertiseOnly=" + advertiseOnly + ", businessOwner=" +
businessOwner + ", businessOwnerEmail=" + businessOwnerEmail + ", technicalOwner=" + technicalOwner +
", technicalOwnerEmail=" + technicalOwnerEmail + ", isMonetizationEnabled=" + isMonetizationEnabled +"]";
}

public Map<String, String> getAdditionalProperties() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
private String type;
private String apiSecurity;
private String thumbnail;
private String businessOwner;
private String businessOwnerEmail;
private String technicalOwner;
private String technicalOwnerEmail;
private Boolean isMonetizationEnabled;
public String getThumbnail() {
return thumbnail;
}
Expand Down Expand Up @@ -88,5 +93,34 @@
this.apiSecurity = apiSecurity;
}
private String gatewayVendor;

public String getBusinessOwner() {
return businessOwner;

Check warning on line 97 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java#L97

Added line #L97 was not covered by tests
}
public void setBusinessOwner(String businessOwner) {
this.businessOwner = businessOwner;
}

Check warning on line 101 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java#L100-L101

Added lines #L100 - L101 were not covered by tests
public String getBusinessOwnerEmail() {
return businessOwnerEmail;

Check warning on line 103 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java#L103

Added line #L103 was not covered by tests
}
public void setBusinessOwnerEmail(String businessOwnerEmail) {
this.businessOwnerEmail = businessOwnerEmail;
}

Check warning on line 107 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java#L106-L107

Added lines #L106 - L107 were not covered by tests
public String getTechnicalOwner() {
return technicalOwner;

Check warning on line 109 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java#L109

Added line #L109 was not covered by tests
}
public void setTechnicalOwner(String technicalOwner) {
this.technicalOwner = technicalOwner;
}

Check warning on line 113 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java#L112-L113

Added lines #L112 - L113 were not covered by tests
public String getTechnicalOwnerEmail() {
return technicalOwnerEmail;

Check warning on line 115 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java#L115

Added line #L115 was not covered by tests
}
public void setTechnicalOwnerEmail(String technicalOwnerEmail) {
this.technicalOwnerEmail = technicalOwnerEmail;
}

Check warning on line 119 in components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.persistence/src/main/java/org/wso2/carbon/apimgt/persistence/dto/PublisherAPIProductInfo.java#L118-L119

Added lines #L118 - L119 were not covered by tests
public Boolean getMonetizationStatus() {
return isMonetizationEnabled;
}
public void setMonetizationStatus(Boolean isMonetizationEnabled) {
this.isMonetizationEnabled = isMonetizationEnabled;
}
}
Loading
Loading