[
https://issues.jboss.org/browse/SRAMP-112?page=com.atlassian.jira.plugin....
]
Eric Wittmann commented on SRAMP-112:
-------------------------------------
I started looking into this and realized that I actually can't create hrefs for
generic relationships because I don't know the *type* of the target. When creating
custom relationships, the user is not required to indicate the type of the target. Thus
we are unable to store it in the persistence store. Thus when we get it back out again we
don't have the type and can therefore not create an href to it. I'm not sure how
to get around this.
If the above problem were solved, the approach to implementing this might be something
like:
1) Update the JCRNodeToArtifactVisitor to set a preliminary "href" on *every*
instance of Target created. It can use information in the relationship JCR node to
determine the type. It will set a value of something like:
"/s-ramp/core/Document/UUID". It should have the model and type and UUID at
this point. But it will *not* have the baseUrl at this point.
2) Update the ArtifactToFullAtomEntryVisitor to prepend the baseUrl (which it has) to
every 'href' property of every Target in the artifact being visited.
Note: alternatively a new visitor is needed that will *just* do the baseUrl prepending.
This might be better but requires that the new visitor is run appropriately everywhere
that the current ArtifactToFullAtomEntryVisitor is run.
Set href on all relationships in Atom layer
-------------------------------------------
Key: SRAMP-112
URL:
https://issues.jboss.org/browse/SRAMP-112
Project: S-RAMP
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: Atom Binding
Reporter: Eric Wittmann
Assignee: Eric Wittmann
Fix For: 0.3.0 - JBPM6 Integration
The persistence layer only sets the UUID of the relationship targets (for all
relationships). The Atom layer needs to visit the artifact and add the full HREF on the
targets.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira