forked from wso2/carbon-apimgt
-
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.
feat: send operation policies in analytics event
- Loading branch information
Showing
12 changed files
with
467 additions
and
14 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
70 changes: 70 additions & 0 deletions
70
...src/main/java/org/wso2/carbon/apimgt/common/analytics/publishers/dto/OperationPolicy.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,70 @@ | ||
/* | ||
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 Inc. licenses this file to you 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. | ||
*/ | ||
|
||
package org.wso2.carbon.apimgt.common.analytics.publishers.dto; | ||
|
||
/** | ||
* OperationPolicy object in analytics event. | ||
*/ | ||
public class OperationPolicy { | ||
private String policyId; | ||
private String policyName; | ||
private String policyVersion; | ||
private String direction; | ||
private int order; | ||
|
||
public String getPolicyId() { | ||
return policyId; | ||
} | ||
|
||
public void setPolicyId(String policyId) { | ||
this.policyId = policyId; | ||
} | ||
|
||
public String getPolicyName() { | ||
return policyName; | ||
} | ||
|
||
public void setPolicyName(String policyName) { | ||
this.policyName = policyName; | ||
} | ||
|
||
public String getPolicyVersion() { | ||
return policyVersion; | ||
} | ||
|
||
public void setPolicyVersion(String policyVersion) { | ||
this.policyVersion = policyVersion; | ||
} | ||
|
||
public String getDirection() { | ||
return direction; | ||
} | ||
|
||
public void setDirection(String direction) { | ||
this.direction = direction; | ||
} | ||
|
||
public int getOrder() { | ||
return order; | ||
} | ||
|
||
public void setOrder(int order) { | ||
this.order = order; | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...ics/src/main/java/org/wso2/carbon/apimgt/common/analytics/publishers/dto/URITemplate.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,65 @@ | ||
package org.wso2.carbon.apimgt.common.analytics.publishers.dto; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* URITemplate attribute in analytics event. | ||
*/ | ||
public class URITemplate { | ||
private String uriTemplate; | ||
private String resourceURI; | ||
private String resourceSandboxURI; | ||
private String httpVerb; | ||
|
||
private String authScheme; | ||
private List<OperationPolicy> operationPolicies = new ArrayList<>(); | ||
|
||
public void setOperationPolicies(List<OperationPolicy> operationPolicies) { | ||
this.operationPolicies = operationPolicies; | ||
} | ||
|
||
public List<OperationPolicy> getOperationPolicies() { | ||
return operationPolicies; | ||
} | ||
|
||
public void setHttpVerb(String httpVerb) { | ||
this.httpVerb = httpVerb; | ||
} | ||
|
||
public String getHttpVerb() { | ||
return httpVerb; | ||
} | ||
|
||
public void setUriTemplate(String uriTemplate) { | ||
this.uriTemplate = uriTemplate; | ||
} | ||
|
||
public String getUriTemplate() { | ||
return uriTemplate; | ||
} | ||
|
||
public void setResourceURI(String resourceURI) { | ||
this.resourceURI = resourceURI; | ||
} | ||
|
||
public String getResourceURI() { | ||
return resourceURI; | ||
} | ||
|
||
public void setResourceSandboxURI(String resourceSandboxURI) { | ||
this.resourceSandboxURI = resourceSandboxURI; | ||
} | ||
|
||
public String getResourceSandboxURI() { | ||
return resourceSandboxURI; | ||
} | ||
|
||
public void setAuthScheme(String authScheme) { | ||
this.authScheme = authScheme; | ||
} | ||
|
||
public String getAuthScheme() { | ||
return authScheme; | ||
} | ||
} |
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
Oops, something went wrong.