Package org.sonatype.nexus.rest.model

Examples of org.sonatype.nexus.rest.model.AliasingListConverter


    xstream.processAnnotations(LdapServerRequest.class);
    xstream.processAnnotations(LdapSchemaTemplateListResponse.class);
    xstream.processAnnotations(LdapServerListResponse.class);
    xstream.processAnnotations(LdapServerLoginTestRequest.class);

    xstream.registerLocalConverter(LdapSchemaTemplateListResponse.class, "data", new AliasingListConverter(
        LdapSchemaTemplateDTO.class, "template"));

    HtmlUnescapeStringConverter converter = new HtmlUnescapeStringConverter(true);
    xstream.registerLocalConverter(LdapServerLoginTestRequest.class, "username", converter);
    xstream.registerLocalConverter(LdapServerLoginTestRequest.class, "password", converter);
View Full Code Here


    super.setUp();

    getJsonXStream().processAnnotations(SearchResponse.class);
    getXmlXStream().processAnnotations(SearchResponse.class);

    getJsonXStream().registerLocalConverter(SearchResponse.class, "data", new AliasingListConverter(NexusArtifact.class,
        "artifact"));

    getXmlXStream().registerLocalConverter(SearchResponse.class, "data", new AliasingListConverter(NexusArtifact.class,
        "artifact"));
  }
View Full Code Here

*/
public class MIndexerXStreamConfiguratorLightweight
{
  public static XStream configureXStream(final XStream xstream) {
    xstream.processAnnotations(SearchResponse.class);
    xstream.registerLocalConverter(SearchResponse.class, "data", new AliasingListConverter(NexusArtifact.class,
        "artifact"));

    // NG
    xstream.processAnnotations(SearchNGResponse.class);
    xstream.processAnnotations(NexusNGArtifact.class);
    xstream.processAnnotations(NexusNGArtifactHit.class);
    xstream.processAnnotations(NexusNGArtifactLink.class);
    xstream.registerLocalConverter(SearchNGResponse.class, "data", new AliasingListConverter(
        NexusNGArtifact.class, "artifact"));
    xstream.registerLocalConverter(NexusNGArtifact.class, "artifactHits", new AliasingListConverter(
        NexusNGArtifactHit.class, "artifactHit"));
    xstream.registerLocalConverter(NexusNGArtifactHit.class, "artifactLinks", new AliasingListConverter(
        NexusNGArtifactLink.class, "artifactLink"));

    // Tree (DTO classes extends classes from Maven Indexer, it is hence needed on classpath)
    xstream.processAnnotations(IndexBrowserTreeViewResponseDTO.class);
    xstream.processAnnotations(IndexBrowserTreeNodeDTO.class);
    xstream.registerLocalConverter(IndexBrowserTreeNodeDTO.class, "children", new AliasingListConverter(
        IndexBrowserTreeNodeDTO.class, "child"));

    return xstream;
  }
View Full Code Here

    super.configureXStream(xstream);

    xstream.processAnnotations(PluginInfoDTO.class);
    xstream.processAnnotations(PluginInfoListResponseDTO.class);

    xstream.registerLocalConverter(PluginInfoListResponseDTO.class, "data", new AliasingListConverter(
        PluginInfoDTO.class, "pluginInfo"));
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.rest.model.AliasingListConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.