org.myurc.uch
Interface IProfile


public interface IProfile

Provide interface to save and retrieve profile properties.

Version:
Revision: 1.0
Author:
Parikshit Thakur & Team, Trace R&D Center

Method Summary
 List<String> getCoreKeys()
          Get an Array or core keys.
 String getValue(String key, String password)
          Get the value for specified key and password.
 boolean removeValue(String key, String password)
          Remove the specified value.
 boolean setValue(String key, String value, String password)
          Store the value of Key, Value and Password.
 

Method Detail

getValue

String getValue(String key,
                String password)
Get the value for specified key and password. Key must not be null. password may be null.

Parameters:
key - a String value of key
password - a String value of password
Returns:
a String value

setValue

boolean setValue(String key,
                 String value,
                 String password)
Store the value of Key, Value and Password. If the value store successfully then returns true else returns false. Key and Value must not be null. Password may be null. If the key has not existed yet, the password is stored for future access to the key-value pair. If the key has already existed, the password must match the password for the stored key-value pair.

Parameters:
key - a String value of key
value - a String value of value
password - a String value of password
Returns:
a boolean value indicates that the value stored successfully or not.

removeValue

boolean removeValue(String key,
                    String password)
Remove the specified value. Key must not be null. Password may be null.

Parameters:
key - a String value of key
password - a String value of password
Returns:
a boolean value indicates that the value removed successfully or not.

getCoreKeys

List<String> getCoreKeys()
Get an Array or core keys.

Returns:
an Object of List<String>


Copyright © 2006-2008 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.