Package com.basis.api.admin.internal
Class BBjAdminSimpleCommitPropWriter
java.lang.Object
com.basis.api.admin.internal.BBjAdminSimpleCommitPropWriter
- All Implemented Interfaces:
BBjAdminCommitPropertyWriter,BBjAdminCommitWriter,BBjAdminPropertyReader,BBjAdminPropertyWriter,Remote
- Direct Known Subclasses:
BBjAdminSimpleDatabase
-
Constructor Summary
ConstructorsConstructorDescriptionBBjAdminSimpleCommitPropWriter(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?protected booleancheckPermission(boolean p_write) booleancheckValueEqual(String p_property, Object p_value) Is the provided value equal to the current value (if any)?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.voidcommit()Commit all property changes.booleanDoes a given property exist?booleanDo any of a set of properties exist?booleangetBoolean(String p_property) Get a boolean value for a property.Get the changed properties.Get the set of cleared properties.doubleGet a double value for a property.intGet an integer value for a property.Get a BBjAdminList value for a property.longGet a long value for a property.Get the original properties list.Get a copy of all properties.Set the complete set of read-only properties.Get a String value for a property.Get the value type of a property.getTypes()Get a copy of all of the type information.Get a object value for a property.booleanHave properties been changed?booleanisReadOnly(String p_property) Is a given property read-only.voidvoidrollback()Roll back all property changes.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.
-
Constructor Details
-
BBjAdminSimpleCommitPropWriter
-
BBjAdminSimpleCommitPropWriter
public BBjAdminSimpleCommitPropWriter(BBjAdminCommitPropertyWriter p_commit) throws BBjAdminException - Throws:
BBjAdminException
-
-
Method Details
-
refresh
-
commit
Description copied from interface:BBjAdminCommitWriterCommit all property changes.- Specified by:
commitin interfaceBBjAdminCommitWriter- Throws:
BBjAdminException
-
rollback
Description copied from interface:BBjAdminCommitWriterRoll back all property changes. This will discard any changes that have been made in the properties and not committed.- Specified by:
rollbackin interfaceBBjAdminCommitWriter- 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
-
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
-
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
-
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
-
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
-
contains
Description copied from interface:BBjAdminPropertyReaderDoes a given property exist?- Specified by:
containsin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
contains
Description copied from interface:BBjAdminPropertyReaderDo any of a set of properties exist?- Specified by:
containsin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
getBoolean
Description copied from interface:BBjAdminPropertyReaderGet a boolean value for a property.- Specified by:
getBooleanin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Boolean value for a property, some properties do not have an boolean value.
- Throws:
BBjAdminException
-
getDouble
Description copied from interface:BBjAdminPropertyReaderGet a double value for a property.- Specified by:
getDoublein interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Double value for a property, some properties do not have a double value.
- Throws:
BBjAdminException
-
getInt
Description copied from interface:BBjAdminPropertyReaderGet an integer value for a property.- Specified by:
getIntin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Integer value for a property, some properties do not have an integer value.
- Throws:
BBjAdminException
-
getLong
Description copied from interface:BBjAdminPropertyReaderGet a long value for a property.- Specified by:
getLongin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Long value for a property, some properties do not have an long value.
- Throws:
BBjAdminException
-
getProperties
Description copied from interface:BBjAdminPropertyReaderGet a copy of all properties.- Specified by:
getPropertiesin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
getString
Description copied from interface:BBjAdminPropertyReaderGet a String value for a property.- Specified by:
getStringin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- String value for a property, all property values can be retrieved as Strings.
- Throws:
BBjAdminException
-
getList
Description copied from interface:BBjAdminPropertyReaderGet a BBjAdminList value for a property.- Specified by:
getListin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- BBjAdminList value for a property.
- Throws:
BBjAdminException
-
getType
Description copied from interface:BBjAdminPropertyReaderGet the value type of a property. The value type can be unknown.- Specified by:
getTypein interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
getTypes
Description copied from interface:BBjAdminPropertyReaderGet a copy of all of the type information.- Specified by:
getTypesin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
getValue
Description copied from interface:BBjAdminPropertyReaderGet a object value for a property.- Specified by:
getValuein interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Boolean value for a property, some properties do not have an boolean value.
- Throws:
BBjAdminException
-
clear
Description copied from interface:BBjAdminPropertyWriterClear all properties that are not read only.- Specified by:
clearin interfaceBBjAdminPropertyWriter- 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
-
checkValueEqual
Description copied from interface:BBjAdminPropertyReaderIs the provided value equal to the current value (if any)?- Specified by:
checkValueEqualin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
getReadOnly
Description copied from interface:BBjAdminPropertyWriterSet the complete set of read-only properties.- Specified by:
getReadOnlyin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException- TODO
-
getClearedProperties
Description copied from interface:BBjAdminCommitPropertyWriterGet the set of cleared properties.- Specified by:
getClearedPropertiesin interfaceBBjAdminCommitPropertyWriter- Throws:
BBjAdminException- TODO
-
getChangedProperties
Description copied from interface:BBjAdminCommitPropertyWriterGet the changed properties.- Specified by:
getChangedPropertiesin interfaceBBjAdminCommitPropertyWriter- Throws:
BBjAdminException- TODO
-
getOriginalProperties
Description copied from interface:BBjAdminCommitPropertyWriterGet the original properties list.- Specified by:
getOriginalPropertiesin interfaceBBjAdminCommitPropertyWriter- 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
-
checkPermission
protected boolean checkPermission(boolean p_write)
-