public class DataObjectUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DataObjectUtils.DataObjectInfo
Wraps the information about a data object
|
| Modifier and Type | Method and Description |
|---|---|
static void |
add(java.lang.String dataObject)
Adds a new data object for the current user.
|
static void |
add(java.lang.String dataObject,
java.lang.String value)
Adds a new data object for the current user with the specified value set
as the initial value.
|
static void |
add(java.lang.String dataObject,
java.lang.String user,
java.lang.String value)
Adds a new data object for the specified user with the specified value
set as the initial value.
|
static void |
delete(java.lang.String dataObject)
Deletes a new data object owned by the current user.
|
static void |
delete(java.lang.String dataObject,
java.lang.String user)
Deletes a new data object owned by the specified user.
|
static boolean |
exists(java.lang.String dataObject)
Returns true if the specified dataobject exists for the current user
|
static boolean |
exists(java.lang.String dataObject,
java.lang.String user)
Returns true if the specified dataobject exists for the specified user
|
static DataObjectUtils.DataObjectInfo |
getDataObjectInfo(java.lang.String name)
Returns a
DataObjectUtils.DataObjectInfo instance, holding the information about
a data object, from the current user. |
static DataObjectUtils.DataObjectInfo |
getDataObjectInfo(java.lang.String name,
java.lang.String user)
Returns a
DataObjectUtils.DataObjectInfo instance, holding the information about
a data object, from the specified user. |
static DataObjectUtils.DataObjectInfo[] |
getDataObjectInfos()
Returns an array of
DataObjectUtils.DataObjectInfo instances, holding the
information about a data object, from the current user. |
static DataObjectUtils.DataObjectInfo[] |
getDataObjectInfos(java.lang.String user)
Returns an array of
DataObjectUtils.DataObjectInfo instances, holding the
information about a data object, from the specified user. |
static java.lang.String[] |
getDataObjectNames()
Returns the dataobject names owned by the current user.
|
static java.lang.String[] |
getDataObjectNames(java.lang.String user)
Returns the dataobject names owned by the specified user.
|
static java.util.Iterator<DataObjectUtils.DataObjectInfo> |
getDataObjectsOfType(java.lang.String type)
Returns an iterator of the data object that has a certain type.
|
static java.util.Iterator<DataObjectUtils.DataObjectInfo> |
getDataObjectsOfType(java.lang.String type,
java.lang.String user)
Returns an iterator of the data object that has a certain type.
|
static java.util.Date |
getModified(java.lang.String dataObject,
java.lang.String user)
Returns the modified timestamp for a dataobject
|
static java.lang.String |
getValue(java.lang.String dataObject)
Returns the value of the specified data object owned by the current user.
|
static java.lang.String |
getValue(java.lang.String dataObject,
java.lang.String user)
Returns the value of the specified data object owned by the current user.
|
static boolean |
isAvailable()
Returns whether or not data objects could be used in the current
environment
|
static void |
modify(java.lang.String dataObject,
java.lang.String value)
Modifies the data object for the specified user with the specified value
|
static void |
modify(java.lang.String dataObject,
java.lang.String user,
java.lang.String value)
Modifies the data object for the specified user with the specified value
|
static boolean |
update(DataObjectUtils.DataObjectInfo d)
Modifies or adds a data object according to the properties set through
the
DataObjectUtils.DataObjectInfo instance. |
public static boolean isAvailable()
public static java.lang.String[] getDataObjectNames()
throws TVCException
TVCException - If unable to perform the operationpublic static java.lang.String[] getDataObjectNames(java.lang.String user)
throws TVCException
user - The name of the user who owns the dataobject(s)TVCException - If unable to perform the operationpublic static boolean exists(java.lang.String dataObject)
throws TVCException
dataObject - Then name of the data object to be addedTVCException - If unable to perform the operationpublic static boolean exists(java.lang.String dataObject,
java.lang.String user)
throws TVCException
dataObject - Then name of the data object to be addeduser - The name of the user who is owning the dataobjectTVCException - If unable to perform the operationpublic static void add(java.lang.String dataObject)
throws TVCException
Please note that you need to check if the dataobject exists or not prior calling this method.
dataObject - Then name of the data object to be addedTVCException - If unable to perform the operationpublic static void add(java.lang.String dataObject,
java.lang.String value)
throws TVCException
Please note that you need to check if the dataobject exists or not prior calling this method.
dataObject - Then name of the data object to be addedvalue - The value of the data objectTVCException - If unable to perform the operationpublic static void add(java.lang.String dataObject,
java.lang.String user,
java.lang.String value)
throws TVCException
Please note that you need to check if the dataobject exists or not prior calling this method.
dataObject - Then name of the data object to be addeduser - The name of the user who should own the dataobjectvalue - The value of the data objectTVCException - If unable to perform the operationpublic static void modify(java.lang.String dataObject,
java.lang.String value)
throws TVCException
Please note that you need to check if the dataobject exists or not prior calling this method.
dataObject - Then name of the data object to be addedvalue - The value of the data objectTVCException - If unable to perform the operationpublic static void modify(java.lang.String dataObject,
java.lang.String user,
java.lang.String value)
throws TVCException
Please note that you need to check if the dataobject exists or not prior calling this method.
dataObject - Then name of the data object to be modifieduser - The name of the user who owns the dataobjectvalue - The value of the data objectTVCException - If unable to perform the operationpublic static void delete(java.lang.String dataObject)
throws TVCException
Please note that you need to check if the dataobject exists or not prior calling this method.
dataObject - Then name of the data object to be deletedTVCException - If unable to perform the operationpublic static void delete(java.lang.String dataObject,
java.lang.String user)
throws TVCException
Please note that you need to check if the dataobject exists or not prior calling this method.
dataObject - Then name of the data object to be deleteduser - The name of the user who owns the dataobjectTVCException - If unable to perform the operationpublic static java.lang.String getValue(java.lang.String dataObject)
throws TVCException
Please note that you need to check if the dataobject exists or not prior calling this method.
dataObject - Then name of the data objectTVCException - If unable to perform the operationpublic static java.lang.String getValue(java.lang.String dataObject,
java.lang.String user)
throws TVCException
Please note that you need to check if the dataobject exists or not prior calling this method.
dataObject - Then name of the data objectuser - The name of the user who owns the dataobjectTVCException - If unable to perform the operationpublic static java.util.Date getModified(java.lang.String dataObject,
java.lang.String user)
throws TVCException
dataObject - Then name of the data objectuser - The name of the user who owns the dataobjectTVCException - If unable to perform the operation.public static java.util.Iterator<DataObjectUtils.DataObjectInfo> getDataObjectsOfType(java.lang.String type) throws TVCException
type - The type of the data objectsDataObjectUtils.DataObjectInfoTVCExceptionpublic static java.util.Iterator<DataObjectUtils.DataObjectInfo> getDataObjectsOfType(java.lang.String type, java.lang.String user) throws TVCException
type - The type of the data objectsuser - The name of the user owning the data objectsDataObjectUtils.DataObjectInfoTVCExceptionpublic static DataObjectUtils.DataObjectInfo getDataObjectInfo(java.lang.String name) throws TVCException
DataObjectUtils.DataObjectInfo instance, holding the information about
a data object, from the current user.name - The name of the dataobjectDataObjectUtils.DataObjectInfo instanceTVCException - If unable to perform the operationpublic static DataObjectUtils.DataObjectInfo getDataObjectInfo(java.lang.String name, java.lang.String user) throws TVCException
DataObjectUtils.DataObjectInfo instance, holding the information about
a data object, from the specified user.name - The name of the dataobjectuser - The name of the userDataObjectUtils.DataObjectInfo instanceTVCException - If unable to perform the operationpublic static DataObjectUtils.DataObjectInfo[] getDataObjectInfos() throws TVCException
DataObjectUtils.DataObjectInfo instances, holding the
information about a data object, from the current user.DataObjectUtils.DataObjectInfo instance (sorted according to
their names)TVCException - If unable to perform the operationpublic static DataObjectUtils.DataObjectInfo[] getDataObjectInfos(java.lang.String user) throws TVCException
DataObjectUtils.DataObjectInfo instances, holding the
information about a data object, from the specified user.user - The name of the userDataObjectUtils.DataObjectInfo instance (sorted according to
their names)TVCException - If unable to perform the operationpublic static boolean update(DataObjectUtils.DataObjectInfo d) throws TVCException
DataObjectUtils.DataObjectInfo instance.d - The DataObjectUtils.DataObjectInfo instanceTVCException - If unable to perform the operationCopyright ? Technia AB. All Rights Reserved.