SRAMP-8x

advertisement
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 that are currently defined are
a start, but this feature needs to be tightened
up. The text of this needs clarification.
Issues
• File specification
– Tightly bound to ZIP
– Structure of the package
• Usecases to support
– Upload new documents
– Update documents
– Get package with documents
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
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
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
Metadescription (example)
Manifest-Version: 1.0
Created-By: 1.2 (Sun Microsystems Inc.)
Signature-Version:
S-RAMP-Version: 1.0
S-RAMP-Model: Policy Model
S-RAMP-Model: WsdlModel
Name: wsdl/a.wsdl
Content-Type: application/xml
S-RAMP-Document-Type: wsdlDocument
Name: data/b.xml
Content-Type: application/xml
S-RAMP-Document-Type: xmlDocument
Package Identification
• MimeType
– Application/zip
– Application/java-archive (not official)
– Application/x-sramp-archive
• File Suffix
– Zip? Jar? Sramp?
UC: Upload new documents
• Currently supported by the specification
– Artifacts are created as new
– The list of entries is returned back
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
UC: Get Package with Documents
• Do we want to support it?
•
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
Download