BuiltinOperation extends ActionEdgeSource, Operation

A builtin reusable block of functionality with respect to its container.

hide, show

The hide and show BuiltinOperations are defined for all VisibleThings. When executed, the Operation hides or shows its parent element respectively. The current visibility is stored within a Value contained within the field, and thus persists according to the containing Scope.

init, update

The init and update BuiltinOperations are defined for all DomainAttributeInstances and VisibleThings. The Operation accepts one ActivityParameter, value. When executed, the operation updates the fieldValue of the parent element to the provided value.

send

The send BuiltinOperation is defined for all Emails. When executed, the Operation attempts to send the current Email. If the e-mail can successfully be delivered, the onSuccess event is triggered; if the e-mail cannot be successfully received, the onFailure event is triggered.

next, previous

The next and previous BuiltinOperations are defined for all DomainIterators. When executed, the Operation attempts to increment or decrement the current instance pointer of the DomainIterator, and the current instance is reloaded from the DomainSource. If the resulting instance pointer is out-of-bounds for the DomainIterator, an exception is thrown, and any defined failure handlers are triggered.

skip, jump

The skip and jump BuiltinOperations are defined for all DomainIterators. The Operation accepts one ActivityParameter, value. When executed, the Operation attempts to increment or set the current instance pointer of the DomainIterator according to value, and the current instance is reloaded from the DomainSource. If the resulting instance pointer is out-of-bounds for the DomainIterator, an exception is thrown, and any defined failure handlers are triggered.

reset

The reset BuiltinOperation is defined for all DomainIterators. When executed, the Operation attempts to reset the current instance pointer of the DomainIterator to zero, and the current instance is reloaded from the DomainSource. If the resulting instance pointer is out-of-bounds for the DomainIterator, an exception is thrown, and any defined failure handlers are triggered.

save

The save BuiltinOperation is defined for all DomainIterators and DomainAttributeInstances. When executed, the Operation attempts to save the current DomainIterator or DomainAttributeInstance to the DomainSource from which the DomainIterator is connected to. If the save is unsuccessful, an exception is thrown, and any defined failure handlers are triggered.

new

The new BuiltinOperation is defined for all DomainIterators. When executed, the Operation clears the value of each contained DomainAttributeInstances according to the semantics defined by DomainIterator, and marks the current instance pointer as new.

add permission, remove permission

The addPermission and removePermission BuiltinOperations are defined for all DomainIterators. The Operation accepts one ActivityParameter of type Permission, permission. When executed, the Operation attempts to add or remove the given Permission to the current user instance as selected by the DomainIterator. If the current DomainIterator does not refer to a valid user instance, then an exception is thrown.

add role, remove role

The addRole and removeRole BuiltinOperations are defined for all DomainIterators. The Operation accepts one ActivityParameter of type Role, role. When executed, the Operation attempts to add or remove the given Role to the current user instance as selected by the DomainIterator. If the current DomainIterator does not refer to a valid user instance, then an exception is thrown.

When a Role is added to the current user instance, all Permissions provided by that Role through ProvidesEdges are also given to that user instance. If the user instance already possesses a given Permission, then there is no effect. Similarly, when a Role is removed from a user instance, all Permissions provided by that Role through ProvidesEdges are also removed from that user instance.

check permissions

The checkPermissions BuiltinOperation is defined for all AccessControlHandlers. When executed, the Operation validates the current user according to the requirements of the AccessControlHandler. If the user cannot be successfully validated, an exception is thrown.

[BuiltinOperation.html]

Direct subtypes:

All subtypes: Toggle

Examples

Implementation Notes

Inference Rules

Constraints

Attributes

(none)

Inherited Attributes

Children

(none)

Inherited Children

References

(none)

Inherited References

Extensions

Inherited Extensions