Class: DigitalObjectComponent
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- DigitalObjectComponent
- Includes:
- ASModel, Agents, AutoGenerator, ComponentsAddChildren, Dates, Events, Extents, ExternalDocuments, ExternalIDs, FileVersions, Notes, Publishable, RightsStatements, Subjects, TreeNodes
- Defined in:
- backend/app/model/digital_object_component.rb
Instance Method Summary (collapse)
Methods included from Publishable
Methods included from Events
Methods included from ComponentsAddChildren
Methods included from FileVersions
Methods included from ExternalIDs
Methods included from RightsStatements
Methods included from Notes
included, #persistent_id_context, #update_from_json
Methods included from AutoGenerator
Methods included from TreeNodes
#absolute_position, #children, #has_children?, included, #order_siblings, #set_position_in_list, #set_root, #siblings, #transfer_to_repository, #trigger_index_of_child_nodes, #update_from_json, #update_position_only
Methods included from Agents
Methods included from ExternalDocuments
Methods included from Dates
Methods included from Extents
Methods included from Subjects
Methods included from ASModel
all_models, included, update_publish_flag, update_suppressed_flag
Methods included from JSONModel
JSONModel, #JSONModel, add_error_handler, all, allow_unmapped_enum_value, backend_url, client_mode?, custom_validations, destroy_model, enum_default_value, enum_values, handle_error, init, load_schema, #models, models, parse_jsonmodel_ref, parse_reference, repository, repository_for, schema_src, set_repository, strict_mode, strict_mode?, with_repository
Instance Method Details
- (Object) validate
49 50 51 52 53 54 |
# File 'backend/app/model/digital_object_component.rb', line 49 def validate validates_unique([:root_record_id, :component_id], :message => "A Digital Object Component ID must be unique to its Digital Object") map_validation_to_json_property([:root_record_id, :component_id], :component_id) super end |