Class BatchControlMatrixAuthorizationStrategy.ConverterImpl
java.lang.Object
io.jenkins.plugins.batchcontrol.security.BatchControlMatrixAuthorizationStrategy.ConverterImpl
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter,com.thoughtworks.xstream.converters.ConverterMatcher
- Enclosing class:
BatchControlMatrixAuthorizationStrategy
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public static final class BatchControlMatrixAuthorizationStrategy.ConverterImpl
extends Object
implements com.thoughtworks.xstream.converters.Converter
Found by XStream through the
$ConverterImpl naming convention. Same on-disk format as
matrix-auth: <permission>USER:hudson.model.Item.Read:alice</permission>, sorted by
permission id. Lines without a type prefix (matrix-auth before 3.0) load as EITHER,
as matrix-auth itself loads them.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Class type) voidmarshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
Constructor Details
-
ConverterImpl
public ConverterImpl()
-
-
Method Details
-
canConvert
- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher
-
marshal
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) - Specified by:
marshalin interfacecom.thoughtworks.xstream.converters.Converter
-
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) - Specified by:
unmarshalin interfacecom.thoughtworks.xstream.converters.Converter
-