Package com.basis.api.admin.internal
Class BBjAdminSimplePropWriter
java.lang.Object
com.basis.api.admin.internal.BBjAdminSimplePropReader
com.basis.api.admin.internal.BBjAdminSimplePropWriter
- All Implemented Interfaces:
BBjAdminPropertyReader,BBjAdminPropertyWriter,Serializable,Remote
- Direct Known Subclasses:
BBjAdminClientBBjTask,BBjAdminClientPauseTask,BBjAdminClientResumeTask,BBjAdminClientSCALLTask,BBjAdminClientTaskGroup,BBjAdminSimpleDatabase.BBjAdminSimpleDateHandler,BBjAdminWebServiceMethodParameter
public class BBjAdminSimplePropWriter
extends BBjAdminSimplePropReader
implements BBjAdminPropertyWriter
- See Also:
-
Field Summary
FieldsFields inherited from class com.basis.api.admin.internal.BBjAdminSimplePropReader
m_properties, m_types -
Constructor Summary
ConstructorsConstructorDescriptionBBjAdminSimplePropWriter(Map<String, Object> p_properties, Map<String, BBjAdminType> p_types, Set<String> p_readOnly, boolean p_canClear, boolean p_canAddNewProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddType(String p_property, BBjAdminType p_type) Adds a type for the specified property if this object was created with the ability to add new properties.booleanIs the user allowed to add new properties?booleancanClear()Is the user allowed to clear properties?voidclear()Clear all properties that are not read only.booleanclearProperties(Set<String> p_properties) Clear a set of properties.booleanclearProperty(String p_property) Clear out the value of a property.Set the complete set of read-only properties.booleanHave properties been changed?booleanisReadOnly(String p_property) Is a given property read-only.voidsetBoolean(String p_property, boolean p_value) Set the boolean value of a property.voidSet the double value of a property.voidSet the integer value of a property.voidsetList(String p_property, BBjAdminList p_value) Set the BBjAdminList value of a property.voidSet the long value of a property.voidsetProperties(Map<String, Object> p_properties) Set properties as a group from a Map.voidSet the String value of a property.voidSet the object value of a property.Methods inherited from class com.basis.api.admin.internal.BBjAdminSimplePropReader
checkValueEqual, compareProperties, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.basis.api.admin.BBjAdminPropertyReader
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
-
Field Details
-
m_hasChanged
protected boolean m_hasChanged
-
-
Constructor Details
-
BBjAdminSimplePropWriter
-
BBjAdminSimplePropWriter
- Throws:
BBjAdminException
-
-
Method Details
-
clear
Description copied from interface:BBjAdminPropertyWriterClear all properties that are not read only.- Specified by:
clearin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException
-
clearProperty
Description copied from interface:BBjAdminPropertyWriterClear out the value of a property.- Specified by:
clearPropertyin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.- Returns:
- Whether the property existed.
- Throws:
BBjAdminException
-
isReadOnly
Description copied from interface:BBjAdminPropertyWriterIs a given property read-only. By default they are _not_ read only.- Specified by:
isReadOnlyin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.- Throws:
BBjAdminException- TODO
-
setBoolean
Description copied from interface:BBjAdminPropertyWriterSet the boolean value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setBooleanin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setInt
Description copied from interface:BBjAdminPropertyWriterSet the integer value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setIntin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setLong
Description copied from interface:BBjAdminPropertyWriterSet the long value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setLongin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setDouble
Description copied from interface:BBjAdminPropertyWriterSet the double value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setDoublein interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setString
Description copied from interface:BBjAdminPropertyWriterSet the String value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setStringin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setList
Description copied from interface:BBjAdminPropertyWriterSet the BBjAdminList value of a property. This can fail if the property is read-only.- Specified by:
setListin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setValue
Description copied from interface:BBjAdminPropertyWriterSet the object value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setValuein interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setProperties
Description copied from interface:BBjAdminPropertyWriterSet properties as a group from a Map.- Specified by:
setPropertiesin interfaceBBjAdminPropertyWriter- Parameters:
p_properties- Properties to set.- Throws:
BBjAdminException
-
clearProperties
Description copied from interface:BBjAdminPropertyWriterClear a set of properties.- Specified by:
clearPropertiesin interfaceBBjAdminPropertyWriter- Parameters:
p_properties- Property names.- Returns:
- Whether any of the properties has a non-null value.
- Throws:
BBjAdminException
-
canAddNewProperties
Description copied from interface:BBjAdminPropertyWriterIs the user allowed to add new properties?- Specified by:
canAddNewPropertiesin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException- TODO
-
canClear
Description copied from interface:BBjAdminPropertyWriterIs the user allowed to clear properties?- Specified by:
canClearin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException- TODO
-
hasChanged
Description copied from interface:BBjAdminPropertyWriterHave properties been changed?- Specified by:
hasChangedin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException- TODO
-
getReadOnly
Description copied from interface:BBjAdminPropertyWriterSet the complete set of read-only properties.- Specified by:
getReadOnlyin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException- TODO
-
addType
Description copied from interface:BBjAdminPropertyWriterAdds a type for the specified property if this object was created with the ability to add new properties.- Specified by:
addTypein interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException
-