Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On create resource and link diagram, id should be a generated unique identifier (uuid) #49

Closed
cgourdin opened this issue Mar 8, 2016 · 1 comment

Comments

@cgourdin
Copy link
Member

cgourdin commented Mar 8, 2016

Hello,

On OCCI specification document (GFD.185 - RESTful HTTP Rendering, section 3.1 - p6), the id representing a resource must be identified with a unique UUID.
For server usage and saving resource purpose, CloudDesigner should generate an uuid (v4?) on id to replace "r1", "r2", "rN".
The method is fairly simple like this :

public static String createUUID() {
        return UUID.randomUUID().toString();
}

The attribute "occi.core.id" must be set as given by the spec with urn.

@cgourdin
Copy link
Member Author

cgourdin commented Mar 8, 2016

resolved with commit 35e1d94 and commit a9005c9

@cgourdin cgourdin closed this as completed Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant