/** * Returns the user and groups mapping that are currently in-effect. */ @Override @GET @ResourceMethodSignature(output = LdapUserAndGroupConfigurationResponse.class) public Object get(Context context, Request request, Response response, Variant variant) throws ResourceException { // this could be null, if so do we want to return defaults? I would guess no... CUserAndGroupAuthConfiguration userGroupConf = this.getConfiguration().readUserAndGroupConfiguration(); LdapUserAndGroupConfigurationResponse result = new LdapUserAndGroupConfigurationResponse(); // convert and set the info in the result if (userGroupConf != null) { result.setData(this.ldapToRestModel(userGroupConf)); } return result; }
/** * Returns the user and groups mapping that are currently in-effect. */ @Override @GET @ResourceMethodSignature( output = LdapUserAndGroupConfigurationResponse.class ) public Object get( Context context, Request request, Response response, Variant variant ) throws ResourceException { // this could be null, if so do we want to return defaults? I would guess no... CUserAndGroupAuthConfiguration userGroupConf = this.getConfiguration().readUserAndGroupConfiguration(); LdapUserAndGroupConfigurationResponse result = new LdapUserAndGroupConfigurationResponse(); // convert and set the info in the result if ( userGroupConf != null ) { result.setData( this.ldapToRestModel( userGroupConf ) ); } return result; }
.getLdapConfiguration().readUserAndGroupConfiguration().getUserPasswordAttribute() ) )
.getLdapConfiguration().readUserAndGroupConfiguration().getUserPasswordAttribute())) {