SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs...

12
SRAMP-8 ZIP Publishing

Transcript of SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs...

Page 1: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

SRAMP-8ZIP Publishing

Page 2: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

Issue 8 – ZIP Publishing

• ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing that are currently defined are a start, but this feature needs to be tightened up. The text of this needs clarification.

Page 3: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

Issues

• File specification– Tightly bound to ZIP– Structure of the package

• Usecases to support– Upload new documents– Update documents– Get package with documents

Page 4: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

File Specification

• Atom spec document was modified to be neutral to ZIP – S-RAMP package was used instead– s-ramp-atom-binding-v1.0-wd01-SRAMP-8.doc

• To resolve– Base it on ZIP or JAR?– MimeType of the S-RAMP package

Page 5: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

ZIP or JAR

• JAR is based on ZIP and adds – Meta description– Signature

• Meta usage in S-RAMP– Capture compatibility of• Specification• Model• Document type

Page 6: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

Metadescription

• Provide new attributes to JAR’s Manifest file– S-RAMP-Package-Version

• Global, Single• what package version is using

– S-RAMP-Model• Global, Multiple• Specifies what models it requires

– Issue: models has not Ids– Issue: UserDefinedModel is too generic to use here

– S-RAMP-Document-Type• File• Specifies the content of the document based on the type

radek
leave it out. Once we''ll come with next version, we can get this attribute back
radek
if it will be required for individual upload, then it also will be required in package upload
radek
Meta could be in HTTP Headers like for individual uploadthe document type can be in atom file
Page 7: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

Metadescription (example)Manifest-Version: 1.0Created-By: 1.2 (Sun Microsystems Inc.) Signature-Version:S-RAMP-Version: 1.0S-RAMP-Model: Policy ModelS-RAMP-Model: WsdlModel Name: wsdl/a.wsdlContent-Type: application/xmlS-RAMP-Document-Type: wsdlDocument Name: data/b.xmlContent-Type: application/xmlS-RAMP-Document-Type: xmlDocument

Page 8: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

Package Identification

• MimeType– Application/zip– Application/java-archive (not official)– Application/x-sramp-archive

• File Suffix– Zip? Jar? Sramp?

Page 9: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

UC: Upload new documents

• Currently supported by the specification– Artifacts are created as new– The list of entries is returned back

Page 10: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

UC: Update Documents

• Currently supported by the specification– Atom Meta files must be provided • E.g., based on the return from the ‘new’ package

upload

Page 11: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

UC: Get Package with Documents

• Do we want to support it?

radek
capture it as ISSUE.Do not support it now, spec does not support it now. Client can do it one-by-one
Page 12: SRAMP-8 ZIP Publishing. Issue 8 – ZIP Publishing ZIP Publishing in the contributed documents needs to be reviewed and revisited. The basics of zip publishing.

• A.wsdl– Impor xsd/b.xsd

• Xsd/b.xsd• ------- upload

– wsdlDocument • A.wsdl• Uuid1• Relationship – import? uuid2

– xsdDocument• B.xsd• Uuid2

• ----- get-package(uuid1)– A.wsdl

• Import xsd/b.xsd

– A.wsdl.atom– B.xsd– B.xsd.atom