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 TypeMethodDescriptionvoid
addType
(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.boolean
Is the user allowed to add new properties?boolean
canClear()
Is the user allowed to clear properties?void
clear()
Clear all properties that are not read only.boolean
clearProperties
(Set<String> p_properties) Clear a set of properties.boolean
clearProperty
(String p_property) Clear out the value of a property.Set the complete set of read-only properties.boolean
Have properties been changed?boolean
isReadOnly
(String p_property) Is a given property read-only.void
setBoolean
(String p_property, boolean p_value) Set the boolean value of a property.void
Set the double value of a property.void
Set the integer value of a property.void
setList
(String p_property, BBjAdminList p_value) Set the BBjAdminList value of a property.void
Set the long value of a property.void
setProperties
(Map<String, Object> p_properties) Set properties as a group from a Map.void
Set the String value of a property.void
Set 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, getValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:BBjAdminPropertyWriter
Clear all properties that are not read only.- Specified by:
clear
in interfaceBBjAdminPropertyWriter
- Throws:
BBjAdminException
-
clearProperty
Description copied from interface:BBjAdminPropertyWriter
Clear out the value of a property.- Specified by:
clearProperty
in interfaceBBjAdminPropertyWriter
- Parameters:
p_property
- Property name.- Returns:
- Whether the property existed.
- Throws:
BBjAdminException
-
isReadOnly
Description copied from interface:BBjAdminPropertyWriter
Is a given property read-only. By default they are _not_ read only.- Specified by:
isReadOnly
in interfaceBBjAdminPropertyWriter
- Parameters:
p_property
- Property name.- Throws:
BBjAdminException
- TODO
-
setBoolean
Description copied from interface:BBjAdminPropertyWriter
Set the boolean value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setBoolean
in interfaceBBjAdminPropertyWriter
- Parameters:
p_property
- Property name.p_value
- New value for the property.- Throws:
BBjAdminException
-
setInt
Description copied from interface:BBjAdminPropertyWriter
Set the integer value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setInt
in interfaceBBjAdminPropertyWriter
- Parameters:
p_property
- Property name.p_value
- New value for the property.- Throws:
BBjAdminException
-
setLong
Description copied from interface:BBjAdminPropertyWriter
Set the long value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setLong
in interfaceBBjAdminPropertyWriter
- Parameters:
p_property
- Property name.p_value
- New value for the property.- Throws:
BBjAdminException
-
setDouble
Description copied from interface:BBjAdminPropertyWriter
Set the double value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setDouble
in interfaceBBjAdminPropertyWriter
- Parameters:
p_property
- Property name.p_value
- New value for the property.- Throws:
BBjAdminException
-
setString
Description copied from interface:BBjAdminPropertyWriter
Set the String value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setString
in interfaceBBjAdminPropertyWriter
- Parameters:
p_property
- Property name.p_value
- New value for the property.- Throws:
BBjAdminException
-
setList
Description copied from interface:BBjAdminPropertyWriter
Set the BBjAdminList value of a property. This can fail if the property is read-only.- Specified by:
setList
in interfaceBBjAdminPropertyWriter
- Parameters:
p_property
- Property name.p_value
- New value for the property.- Throws:
BBjAdminException
-
setValue
Description copied from interface:BBjAdminPropertyWriter
Set the object value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setValue
in interfaceBBjAdminPropertyWriter
- Parameters:
p_property
- Property name.p_value
- New value for the property.- Throws:
BBjAdminException
-
setProperties
Description copied from interface:BBjAdminPropertyWriter
Set properties as a group from a Map.- Specified by:
setProperties
in interfaceBBjAdminPropertyWriter
- Parameters:
p_properties
- Properties to set.- Throws:
BBjAdminException
-
clearProperties
Description copied from interface:BBjAdminPropertyWriter
Clear a set of properties.- Specified by:
clearProperties
in interfaceBBjAdminPropertyWriter
- Parameters:
p_properties
- Property names.- Returns:
- Whether any of the properties has a non-null value.
- Throws:
BBjAdminException
-
canAddNewProperties
Description copied from interface:BBjAdminPropertyWriter
Is the user allowed to add new properties?- Specified by:
canAddNewProperties
in interfaceBBjAdminPropertyWriter
- Throws:
BBjAdminException
- TODO
-
canClear
Description copied from interface:BBjAdminPropertyWriter
Is the user allowed to clear properties?- Specified by:
canClear
in interfaceBBjAdminPropertyWriter
- Throws:
BBjAdminException
- TODO
-
hasChanged
Description copied from interface:BBjAdminPropertyWriter
Have properties been changed?- Specified by:
hasChanged
in interfaceBBjAdminPropertyWriter
- Throws:
BBjAdminException
- TODO
-
getReadOnly
Description copied from interface:BBjAdminPropertyWriter
Set the complete set of read-only properties.- Specified by:
getReadOnly
in interfaceBBjAdminPropertyWriter
- Throws:
BBjAdminException
- TODO
-
addType
Description copied from interface:BBjAdminPropertyWriter
Adds a type for the specified property if this object was created with the ability to add new properties.- Specified by:
addType
in interfaceBBjAdminPropertyWriter
- Throws:
BBjAdminException
-