Property | Type | Description | |
---|---|---|---|
_currentValue | object | ||
_invalidReason | string | ||
_isDirty | bool | ||
_isObjectNew | bool | ||
_isValid | bool | ||
_logger | IHabaneroLogger | ||
_origInvalidReason | string | ||
_origValueIsValid | bool | ||
_persistedValue | object | ||
_propDef | IPropDef | ||
_valueBeforeLastEdit | object |
Method | Description | |
---|---|---|
BOProp ( IPropDef propDef ) : System |
Constructor to initialise a new property
|
|
BOProp ( IPropDef propDef, object propValue ) : System |
Constructor to initialise a new property with a specific value
|
|
BackupPropValue ( ) : void |
Copies the current property value to PersistedValue. This is usually called when the object is persisted to the database.
|
|
CurrentValueEquals ( object value ) : bool |
Is the value equal to the current Value of the BOProp.
|
|
InitialiseProp ( object propValue ) : bool |
Initialises the property with the specified value
|
|
IsEditable ( string &message ) : bool |
Returns whether the BOProperty is Editable or not. The BOProp may not be editable based on a number of factors. 1) If its ReadWrite Rules are set to ReadOnly etc. 2) The user may not have permissions to edit this property Value.
|
|
IsReadable ( string &message ) : bool |
Returns whether the BOProperty is Readable or not. The BOProp may not be Readable if the user may not have permissions to read the property Value.
|
|
ParsePropValue ( object valueToParse, object &returnValue ) : void |
This method provides a the functionality to convert any object to the appropriate type for the particular BOProp Type. e.g it will convert a valid guid string to a valid Guid Object.
|
|
RestorePropValue ( ) : void |
Restores the property's original value as defined in PersistedValue
|
|
SetAuthorisationRules ( IBOPropAuthorisation boPropAuthorisation ) : void |
Set the authorisation rule strategy to be used
|
|
Validate ( ) : void |
Validates whether the property values set for the BOProp are valid as compared to the BOProp rules. This is used by the Business Object Validate Method.
|
Method | Description | |
---|---|---|
FireBOPropValueUpdated ( ) : void |
Fires an Updated event
|
|
InitialiseProp ( object propValue, bool isObjectNew ) : bool |
Initialises the property with the specified value, and indicates whether the object is new or not
|
|
IsReadable ( ) : bool |
Are there any authorisation rules preventing this property from being read.
|
|
RaiseIncorrectTypeException ( object value ) : void |
Raises an Erorr if the Incorrect type of property is being set to this BOProp.
|
Method | Description | |
---|---|---|
AreReadWriteRulesEditable ( string &message ) : bool | ||
CompareValues ( object compareToValue, object value ) : bool | ||
FormatForXML ( string text ) : string | ||
PersistedValueEquals ( object value ) : bool |
Is the value equal to the persisted Value of the BOProp.
|
public BOProp ( IPropDef propDef ) : System | ||
propDef | IPropDef | The property definition |
return | System |
public BOProp ( IPropDef propDef, object propValue ) : System | ||
propDef | IPropDef | The property definition |
propValue | object | The initial value |
return | System |
public CurrentValueEquals ( object value ) : bool | ||
value | object | |
return | bool |
public InitialiseProp ( object propValue ) : bool | ||
propValue | object | The value to assign |
return | bool |
protected InitialiseProp ( object propValue, bool isObjectNew ) : bool | ||
propValue | object | The value to assign |
isObjectNew | bool | Whether the object is new or not |
return | bool |
public IsReadable ( string &message ) : bool | ||
message | string | the reason why the user cannot read the property. |
return | bool |
public ParsePropValue ( object valueToParse, object &returnValue ) : void | ||
valueToParse | object | The value to be converted |
returnValue | object | The value that has been parsed |
return | void |
protected RaiseIncorrectTypeException ( object value ) : void | ||
value | object | |
return | void |
public SetAuthorisationRules ( IBOPropAuthorisation boPropAuthorisation ) : void | ||
boPropAuthorisation | IBOPropAuthorisation | |
return | void |
protected static IHabaneroLogger _logger | ||
return | IHabaneroLogger |