Examples of GovernanceArtifact


Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

        try {
            Association[] associations =
                    registry.getAssociations(path, GovernanceConstants.DEPENDS);
            for (Association association : associations) {
                String destinationPath = association.getDestinationPath();
                GovernanceArtifact governanceArtifact =
                        GovernanceUtils.retrieveGovernanceArtifactByPath(registry, destinationPath);
                if (governanceArtifact instanceof Policy) {
                    policies.add((Policy) governanceArtifact);
                }
            }
View Full Code Here

Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

        try {
            Association[] associations =
                    registry.getAssociations(path, GovernanceConstants.DEPENDS);
            for (Association association : associations) {
                String destinationPath = association.getDestinationPath();
                GovernanceArtifact governanceArtifact =
                        GovernanceUtils.retrieveGovernanceArtifactByPath(registry, destinationPath);
                if (governanceArtifact instanceof Schema) {
                    schemas.add((Schema) governanceArtifact);
                }
            }
View Full Code Here

Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

        try {
            Association[] associations =
                    registry.getAssociations(path, GovernanceConstants.DEPENDS);
            for (Association association : associations) {
                String destinationPath = association.getDestinationPath();
                GovernanceArtifact governanceArtifact =
                        GovernanceUtils.retrieveGovernanceArtifactByPath(registry, destinationPath);
                if (governanceArtifact instanceof Wsdl) {
                    wsdls.add((Wsdl) governanceArtifact);
                }
            }
View Full Code Here

Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

        try {
            Association[] associations =
                    registry.getAssociations(path, GovernanceConstants.DEPENDS);
            for (Association association : associations) {
                String destinationPath = association.getDestinationPath();
                GovernanceArtifact governanceArtifact =
                        GovernanceUtils.retrieveGovernanceArtifactByPath(registry, destinationPath);
                if (governanceArtifact instanceof Endpoint) {
                    endpoints.add((Endpoint) governanceArtifact);
                }
            }
View Full Code Here

Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

     *
     * @return the endpoint artifact.
     * @throws GovernanceException if the operation failed.
     */
    public Endpoint getEndpoint(String endpointId) throws GovernanceException {
        GovernanceArtifact artifact =
                GovernanceUtils.retrieveGovernanceArtifactById(registry, endpointId);
        if (artifact != null && !(artifact instanceof Endpoint)) {
            String msg = "The artifact request is not an endpoint. id: " + endpointId + ".";
            log.error(msg);
            throw new GovernanceException(msg);
View Full Code Here

Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

     *
     * @return the policy artifact.
     * @throws GovernanceException if the operation failed.
     */
    public Policy getPolicy(String policyId) throws GovernanceException {
        GovernanceArtifact artifact =
                GovernanceUtils.retrieveGovernanceArtifactById(registry, policyId);
        if (artifact != null && !(artifact instanceof Policy)) {
            String msg = "The artifact request is not a policy. id: " + policyId + ".";
            log.error(msg);
            throw new GovernanceException(msg);
View Full Code Here

Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

                        RegistryUtils.getResourceName(o2));
            }
        });
        List<Policy> policies = new ArrayList<Policy>();
        for (String policyPath : policyPaths) {
            GovernanceArtifact artifact =
                    GovernanceUtils.retrieveGovernanceArtifactByPath(registry, policyPath);
            policies.add((Policy) artifact);
        }
        return policies.toArray(new Policy[policies.size()]);
    }
View Full Code Here

Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

     *
     * @return the sla artifact.
     * @throws GovernanceException if the operation failed.
     */
    public SLA getSLA(String slaId) throws GovernanceException {
        GovernanceArtifact artifact =
                GovernanceUtils.retrieveGovernanceArtifactById(registry, slaId);
        if (artifact != null && !(artifact instanceof SLA)) {
            String msg = "The artifact request is not an SLA. id: " + slaId + ".";
            log.error(msg);
            throw new GovernanceException(msg);
View Full Code Here

Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

                return (l1 > l2) ? -1 : 1;
            }
        });
        List<SLA> sla = new ArrayList<SLA>();
        for (String slaPath : slaPaths) {
            GovernanceArtifact artifact =
                    GovernanceUtils.retrieveGovernanceArtifactByPath(registry, slaPath);
            sla.add((SLA) artifact);
        }
        return sla.toArray(new SLA[sla.size()]);
    }
View Full Code Here

Examples of org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact

     *
     * @return the WSDL artifact.
     * @throws GovernanceException if the operation failed.
     */
    public Wsdl getWsdl(String wsdlId) throws GovernanceException {
        GovernanceArtifact artifact =
                GovernanceUtils.retrieveGovernanceArtifactById(registry, wsdlId);
        if (artifact != null && !(artifact instanceof Wsdl)) {
            String msg = "The artifact request is not a Wsdl. id: " + wsdlId + ".";
            log.error(msg);
            throw new GovernanceException(msg);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.