Above artifacts treating as content artifacts. So proper way is , take the
resource from the governance artifact then check the media type from that
resource.

-Ajith

On Thu, Jan 1, 2015 at 5:05 AM, Sameera Kannangara <samee...@wso2.com>
wrote:

> Hi all,
>
> When retrieving governance artifacts of types,
>
> application/wsdl+xml
> application/x-xsd+xml
> application/policy+xml
> application/vnd.wso2.endpoint
>
> via governanceUtils.retrieveGovernanceArtifactByPath(),
> returned governance artifact does not contain the respective media type.
>
> All generic artifact types other than above four, contain their respective
> media types.
>
> Is this the expected behavior for artifacts of above four media types?
>
> Reason I'm asking this is, when retrieving governance artifacts for
> dependency graph generation of impact analysis feature,
> media type of the artifact is needed to determine the icon to be displayed
> for the artifact.
>
> Please note that respective media type is available for the registry
> resource relevant for the governance artifact.
>
> As we are retrieving governance artifacts to generate the dependency graph
> and
> graph generation process needs properties associated with the artifact to
> create the graph,
> process have to retrieve registry resource associated with the governance
> artifact to get necessary properties.
>
> Is there a better way to retrieve properties related to a governance
> artifact?
>
> Thank you,
> SameeraK
>
> --
> *Sameera Kannangara*
> Software Engineer
> Platform TG; WSO2 Inc. http://wso2.com
> Contact:
> phone: +94719541577
> Lean . Enterprise . Middleware
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +1-812-360-5335
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to