Package org.sonatype.nexus.rest.model

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


    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);
    xstream.registerLocalConverter(LdapConnectionInfoDTO.class, "systemUsername", converter);
    xstream.registerLocalConverter(LdapConnectionInfoDTO.class, "systemPassword", converter);
    xstream.registerLocalConverter(LdapConnectionInfoDTO.class, "searchBase", converter);
View Full Code Here


    }
  }

  @Override
  public void configureXStream(final XStream xstream) {
    xstream.registerLocalConverter(SmtpSettings.class, "username", new HtmlUnescapeStringConverter(true));
    xstream.registerLocalConverter(SmtpSettings.class, "password", new HtmlUnescapeStringConverter(true));
  }
View Full Code Here

  @Override
  public void configureXStream(final XStream xstream) {
    super.configureXStream(xstream);
    xstream.registerLocalConverter(UserChangePasswordResource.class, "oldPassword",
        new HtmlUnescapeStringConverter(true));
    xstream
        .registerLocalConverter(UserChangePasswordResource.class, "newPassword", new HtmlUnescapeStringConverter(true));
    xstream.registerLocalConverter(RoleResource.class, "id", new HtmlUnescapeStringConverter(true));
    xstream.registerLocalConverter(UserResource.class, "userId", new HtmlUnescapeStringConverter(true));
    xstream.registerLocalConverter(UserResource.class, "password", new HtmlUnescapeStringConverter(true));
    xstream.registerLocalConverter(RoleAndPrivilegeListResource.class, "id", new HtmlUnescapeStringConverter(true));

    xstream.registerLocalConverter(UserResource.class, "roles", new HtmlUnescapeStringCollectionConverter("role"));
    xstream.registerLocalConverter(RoleResource.class, "roles", new HtmlUnescapeStringCollectionConverter("role"));
    xstream.registerLocalConverter(RoleResource.class, "privileges",
        new HtmlUnescapeStringCollectionConverter("privilege"));
View Full Code Here

TOP

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

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.