public static class RoleBasedAuthorizationStrategy.ConverterImpl extends Object implements com.thoughtworks.xstream.converters.Converter
This converter is there to manually handle the marshalling/unmarshalling of this strategy: Doing so is a little bit dirty but allows to easily update the plugin when new access controlled object (for the moment: Job and Project) will be introduced. If it's the case, there's only the need to update the getRoleMaps() method.
Constructor and Description |
---|
ConverterImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type) |
protected RoleBasedAuthorizationStrategy |
create() |
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
public boolean canConvert(Class type)
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal
in interface com.thoughtworks.xstream.converters.Converter
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
protected RoleBasedAuthorizationStrategy create()
Copyright © 2016–2018. All rights reserved.