OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

oslc-ccm message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (OSLCCCM-35) Resource shape for creating streams


    [ https://issues.oasis-open.org/browse/OSLCCCM-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=65019#comment-65019 ] 

Nick Crossley edited comment on OSLCCCM-35 at 3/6/17 9:16 PM:
--------------------------------------------------------------

I see nothing wrong with approach 2, since those LDPCs are really creation factories, and should have the oslc:creationShape property. If a user does not want to get the members, we could recommend that OSLC CCM support selective properties, or we could recommend use of the  prefer header to exclude the members.


was (Author: ndjc):
I see nothing wrong with approach 2, since those LDPCs are really creation factories, and should have the oslc:resourceShape property. If a user does not want to get the members, we could recommend that OSLC CCM support selective properties, or we could recommend use of the  prefer header to exclude the members.

> Resource shape for creating streams
> -----------------------------------
>
>                 Key: OSLCCCM-35
>                 URL: https://issues.oasis-open.org/browse/OSLCCCM-35
>             Project: OASIS OSLC Lifecycle Integration for Change and Configuration Management (OSLC CCM) TC
>          Issue Type: Improvement
>          Components: Configuration Management
>            Reporter: David Honey
>              Labels: ready-for-vote
>
> The two recommended approach in the OSLC Configuration Management spec to create a new stream of a component are:
> a) perform a GET on an existing baseline of the component to get  its streams LDPC.
> b) perform a GET on the component to get its configurations LDPC.
> A client can then POST content to the LDPC from (a) or (b).
> However, if the client wants to know what properties it can include in the POSTed RDF, how can it discover the resource shape?
> A similar issue relates to a GET on an LDPC. If it supports oslc.where, how does an OSLC client discover the query resource shape for that LDPC?
> For (a), a client might use the resource instance shape of the baseline. However, that resource shape might show that some properties are read-only because they are immutable on baselines. So is this the right way?
> For (b), there is no documented method.
> There are a number of approaches we might consider:
> 1) Declare a creation factory for every component, and each factory can declare a resource shape. A significant problem with this approach is that there could be a very large number of components, and the OSLC SPC could become very large.
> 2) Have the RDF returned by a GET on the streams LDPC include a reference to the resource shape for new streams of that component. A significant problem with this approach is that a GET on the LDPC would, by default, return all the streams of that component and all their properties. So this seems like a heavyweight means to get the resource shape.
> 3) Include an additional statement in a component's RDF to the resource shape for configurations of that component, and include an additional statement in a baseline's RDF to the resource shape of streams created from it. For example, include an oslc_config:configurationResourceShape statement in a component's RDF to a resource shape for creating new streams or configurations of that component, and include an oslc_config:streamResourceShape to a resource shape for creating a new stream from that baseline. This is lightweight and keeps the discovery of the streams LDPC and its resource shape in the same place.
> 4) Drop support for POST on a component's configurations LDPC and a baseline's streams LDPC, and instead declare a configuration creation factory for each project area specific service provider. A client would need to include oslc_config:component to specify the component for the new stream.
> There is a related issue about how to discover the resource shape when creating a baseline from a stream. However, there is potentially already a method for doing so - the user could use the resource instance shape of the stream.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]