|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.console.models.ConfigurationPropertiedObjectEditor com.metamatrix.console.models.ResourcePropertiedObjectEditor
public class ResourcePropertiedObjectEditor
Created on Jun 11, 2002 This propertied object editor is for internal resources. The internal resources is not designed like the configuration framework to used propertied objects. So this editor is used to present to the client the look of using propertied objects. Also, internal resources do not have the concept of operational and next startup configurations.
Field Summary |
---|
Fields inherited from interface com.metamatrix.common.object.PropertiedObjectEditor |
---|
NO_VALUE |
Fields inherited from interface com.metamatrix.common.object.PropertyAccessPolicy |
---|
DEFAULT_READ_ONLY_PRIVILEGE |
Fields inherited from interface com.metamatrix.core.util.StringUtil.Constants |
---|
CARRIAGE_RETURN, CARRIAGE_RETURN_CHAR, DBL_SPACE, DOT, DOT_CHAR, EMPTY_STRING, EMPTY_STRING_ARRAY, LINE_FEED, LINE_FEED_CHAR, NEW_LINE, NEW_LINE_CHAR, PATTERN_BACK_SLASH, PATTERN_QUESTION, PATTERN_STAR, SPACE, SPACE_CHAR, TAB, TAB_CHAR |
Method Summary | |
---|---|
void |
apply()
Implmented for the purpose of the console to control the commit via the apply button. |
void |
begin()
Create a new transaction and associate it with this object. |
void |
commit()
Complete the transaction associated with this object. |
java.util.List |
getAllowedValues(PropertiedObject obj,
PropertyDefinition def)
Get the allowed values for the property on the specified object. |
protected ConfigurationObjectEditor |
getEditor()
|
java.util.List |
getPropertyDefinitions(PropertiedObject obj)
Obtain the list of PropertyDefinitions that apply to the specified object's type. |
void |
rollback()
Roll back the transaction associated with this object. |
void |
setValue(PropertiedObject obj,
PropertyDefinition def,
java.lang.Object value)
Set on the specified PropertiedObject the value defined by the specified PropertyDefinition. |
Methods inherited from class com.metamatrix.console.models.ConfigurationPropertiedObjectEditor |
---|
assertComponentObject, createReadTransaction, createWriteTransaction, createWriteTransaction, getConfigurationAPI, getConfigurationManager, getPolicy, getSource, getStatus, getValue, isAutomaticTransaction, isReadOnly, isReadOnly, isValidValue, reset, setIsModifiable, setPolicy, setReadOnly, setReadOnly, setRollbackOnly, setTransactionTimeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected ConfigurationObjectEditor getEditor()
getEditor
in class ConfigurationPropertiedObjectEditor
public void begin() throws TransactionException
ConfigurationPropertiedObjectEditor
begin
in interface UserTransaction
begin
in class ConfigurationPropertiedObjectEditor
TransactionNotSupportedException
- if the current thread is already
associated with a transaction and the manager does not support
nested system transactions.
TransactionException
public void rollback() throws TransactionException
ConfigurationPropertiedObjectEditor
rollback
in interface UserTransaction
rollback
in class ConfigurationPropertiedObjectEditor
TransactionException
public java.util.List getAllowedValues(PropertiedObject obj, PropertyDefinition def)
getAllowedValues
in interface PropertiedObjectEditor
getAllowedValues
in class ConfigurationPropertiedObjectEditor
obj
- the propertied object whose property value is to be obtained;
may not be nulldef
- the reference to the PropertyDefinition describing the
property whose value is to be returned; may not be null
#hasAllowedValues
public java.util.List getPropertyDefinitions(PropertiedObject obj)
getPropertyDefinitions
in interface PropertiedObjectEditor
getPropertyDefinitions
in class ConfigurationPropertiedObjectEditor
obj
- the propertied object for which the PropertyDefinitions are
to be obtained; may not be null
java.lang.AssertionError
- if obj
is nullpublic void setValue(PropertiedObject obj, PropertyDefinition def, java.lang.Object value)
null
is passed in as
the value parameter, this implementation will take that to mean that
the value is reverting to its default value. In this case, the default
value will be stored as the value; the value entry in the config
database will NOT be deleted, but will be assigned the default value.
setValue
in interface PropertiedObjectEditor
setValue
in class ConfigurationPropertiedObjectEditor
obj
- the propertied object whose property value is to be set;
may not be nulldef
- the reference to the PropertyDefinition describing the
property whose value is to be changed; may not be nullvalue
- the new value for the property; the cardinality and type
must conform PropertyDefinition. If null, this will be interpreted
as reverting to the default value.
java.lang.IllegalArgumentException
- if the value does not correspond
to the PropertyDefinition requirements.
java.lang.AssertionError
- if either of obj
or def
is nullpublic void commit() throws TransactionException
commit
in interface UserTransaction
commit
in class ConfigurationPropertiedObjectEditor
java.lang.IllegalStateException
- Thrown if this object is not
associated with a transaction.
TransactionException
public void apply() throws TransactionException
TransactionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |