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 Details

    • ConverterImpl

      public ConverterImpl()
  • Method Details

    • canConvert

      public boolean canConvert(Class type)
      Specified by:
      canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
    • marshal

      public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
      Specified by:
      marshal in interface com.thoughtworks.xstream.converters.Converter
    • unmarshal

      public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
      Specified by:
      unmarshal in interface com.thoughtworks.xstream.converters.Converter