> On Oct 20, 2016, at 2:37 AM, Patrick Brunmayr <[email protected]> wrote:
>
> So how can Fortress handle this if it does not know about the specific
> user instance ?
>
> How do you pass extra auxClasses and attributes in a REST way ?
>
> Just some thoughts
Fortress uses JAXB to marshall its entities back and forth into XML. We
discussed before that for user the extension point will be its entity.
package com.mycompany.whatever;
@XmlRootElement(name = “weMyUser")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = “myuser", propOrder =
{
“foo1",
“foo2",
“foo3",
...
})
public class MyUser extends org.apache.directory.fortress.core.model.User()
{}
Next that new object, myuser, will need to be registered with the fortress xml
registry for jaxb (in some way)
https://github.com/apache/directory-fortress-core/blob/master/src/main/java/org/apache/directory/fortress/core/model/ObjectFactory.java
After the new classes mods have been made, they’ll need to be made available to
the runtime by bundling this jar in with fortress-rest war.
Sha