package com.mycompany.jerseyclient;

/** Class that handles all the communication with the RESTful web service
 * for manipulating remote system properties.
 */
public class DataProvider {
    /** Sets the property of a given name to a given value.
     *
     * @param propertyName Name of the property to set or create.
     * @param propertyValue A new value of the property.
     */
    public static void setPropertyValue(String propertyName, String propertyValue) {
        // TODO fill in the code
    }

    /** Retrieves the value of a given property.
     *
     * @param propertyName Name of the property to retrieve the value of.
     * @return value of the property.
     */
    public static String getPropertyValue(String propertyName) {
        // TODO fill in the code
        return "dummy";
    }

    /** Deletes the property of a given name.
     *
     * @param propertyName Name of the property to delete.
     */
    public static void deleteProperty(String propertyName) {
        // TODO fill in the code
    }

    /** Retrieves names of all properties.
     *
     * @return array of names of the properties.
     */
    public static String[] getPropertyNames() {
        // TODO fill in the code
        return new String[] {"property1", "property2", "property3"};
    }
}
