Interface IArcherContentEdit
Allows a content record's field values to be edited and thereafter persisted back to Archer via a call to IContentResolver.Update().
Assembly: Estrelica.Interfaces.dll
Syntax
[StayPublic]
[DoNotObfuscateType]
public interface IArcherContentEdit : IArcherRecord, IRecordAccess<int>, IRecordAccess, ISystemUpdateable, IEditable
Properties
Returns an IEnumerable of all of the fields that are configured as "Required"
Declaration
IEnumerable<IArcherField> RequiredFields { get; }
Property Value
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
int? SubformFieldId { get; }
Property Value
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Methods
Declaration
IDocumentSelectionEdit AttachmentField(Guid attachmentFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDocumentSelectionEdit AttachmentField(int attachmentFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDocumentSelectionEdit AttachmentField(string attachmentFieldNameOrAlias)
Parameters
|
string
attachmentFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ICrossReferencedRecordsSelectionEdit CrossReferenceField(Guid crossReferenceFieldGuid)
Parameters
|
Guid
crossReferenceFieldGuid
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ICrossReferencedRecordsSelectionEdit CrossReferenceField(int crossReferenceFieldId)
Parameters
|
int
crossReferenceFieldId
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ICrossReferencedRecordsSelectionEdit CrossReferenceField(string crossReferenceFieldNameOrAlias)
Parameters
|
string
crossReferenceFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDateValueEdit DateField(Guid dateFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDateValueEdit DateField(int dateFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDateValueEdit DateField(string datefieldNameOrAlias)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDocumentSelectionEdit DocumentField(Guid documentFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDocumentSelectionEdit DocumentField(int documentFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDocumentSelectionEdit DocumentField(string documentFieldNameOrAlias)
Parameters
|
string
documentFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IExternalLinksSelectionEdit ExternalLinksField(Guid externalLinksFieldNameGuid)
Parameters
|
Guid
externalLinksFieldNameGuid
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IExternalLinksSelectionEdit ExternalLinksField(int externalLinksFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IExternalLinksSelectionEdit ExternalLinksField(string externalLinksFieldNameOrAlias)
Parameters
|
string
externalLinksFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Returns an editor for the given field, if the field is editable, or the current value of the field if not.
Declaration
object Field(IArcherField field)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ICrossReferencedRecordsSelectionEdit Field(ICrossReferenceField referenceField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDateValueEdit Field(IDateField dateField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDocumentSelectionEdit Field(IDocumentField documentField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IExternalLinksSelectionEdit Field(IExternalLinksField externalLinksField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ITextValueEdit Field(IIPAddressField ipAddressField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
INumericValueEdit Field(INumericField numericField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IReferencedRecordsSelectionEdit Field(IRelatedRecordsField referenceField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IReferencedRecordsSelectionEdit Field(ISubformField referenceField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ITextValueEdit Field(ITextField textField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IUserGroupListSelectionEdit Field(IUserGroupListField userGroupField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Returns an IValuesListSelectionEdit editor for the provided IValuesListField of the current record if the field is editable, otherwise raises an exception
Declaration
IValuesListSelectionEdit Field(IValuesListField valueListField)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Returns an IEnumerable of Tuples indicating any errors that may exist in the edited record, and the fields on which they were found.
Declaration
IEnumerable<Tuple<IArcherField, IEnumerable<string>>> GetErrors()
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ITextValueEdit IPAddressField(Guid ipAddressFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ITextValueEdit IPAddressField(int ipAddressFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ITextValueEdit IPAddressField(string ipAddressFieldNameOrAlias)
Parameters
|
string
ipAddressFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDocumentSelectionEdit ImageField(Guid imageFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDocumentSelectionEdit ImageField(int imageFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IDocumentSelectionEdit ImageField(string imageFieldNameOrAlias)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
INumericValueEdit NumericField(Guid numericFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
INumericValueEdit NumericField(int numericFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
INumericValueEdit NumericField(string numericFieldNameOrAlias)
Parameters
|
string
numericFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IReferencedRecordsSelectionEdit RelatedRecordsField(Guid relatedRecordsFieldGuid)
Parameters
|
Guid
relatedRecordsFieldGuid
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IReferencedRecordsSelectionEdit RelatedRecordsField(int relatedRecordsFieldId)
Parameters
|
int
relatedRecordsFieldId
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IReferencedRecordsSelectionEdit RelatedRecordsField(string relatedRecordsFieldNameOrAlias)
Parameters
|
string
relatedRecordsFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Reloads the current record from Archer, returning it in a new IArcherContent result. This is intended to
be called after the current record has been persisted via a call to IContentResolver.Update(),
for purposes of reading back the persisted results for any followup validation/confirmation that may be needed.
Declaration
IArcherContentAccess Reload(ContentSource? contentSource = null)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Persists any changes made to the record (i.e. saves the changes to Archer).
Declaration
Returns
|
int
0 if no changes have been made to the record (and therefore nothing can be persisted), otherwise the content Id of the persisted record.
|
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IReferencedRecordsSelectionEdit SubformField(Guid subformFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IReferencedRecordsSelectionEdit SubformField(int subformFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IReferencedRecordsSelectionEdit SubformField(string subformFieldNameOrAlias)
Parameters
|
string
subformFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ITextValueEdit TextField(Guid textFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ITextValueEdit TextField(int textFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
ITextValueEdit TextField(string textFieldNameOrAlias)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IUserGroupListSelectionEdit UserGroupField(Guid userGroupFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IUserGroupListSelectionEdit UserGroupField(int userGroupFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IUserGroupListSelectionEdit UserGroupField(string userGroupFieldNameOrAlias)
Parameters
|
string
userGroupFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IValuesListSelectionEdit ValuesListField(Guid valuesListFieldGuid)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IValuesListSelectionEdit ValuesListField(int valuesListFieldId)
Parameters
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Declaration
IValuesListSelectionEdit ValuesListField(string valuesListFieldNameOrAlias)
Parameters
|
string
valuesListFieldNameOrAlias
|
Returns
Exceptions
|
InvalidOperationException
An InvalidOperationException will be raised if any edit method is called on a calculated field or a field that is otherwise configured as read-only.
|
Extension Methods