Module: Sipity::Queries

Extended by:
ActiveSupport::Concern
Included in:
Repository
Defined in:
app/repositories/sipity/queries.rb,
app/repositories/sipity/queries/doi_queries.rb,
app/repositories/sipity/queries/sip_queries.rb,
app/repositories/sipity/queries/citation_queries.rb,
app/repositories/sipity/queries/event_log_queries.rb,
app/repositories/sipity/queries/permission_queries.rb,
app/repositories/sipity/queries/collaborator_queries.rb,
app/repositories/sipity/queries/account_placeholder_queries.rb,
app/repositories/sipity/queries/additional_attribute_queries.rb

Overview

These are the “read” methods for services. They are responsible for retrieving information.

In separating them, I hope to expose a Respository::ReadOnly. A longer term goal is to craft custom repository collaborators based on the context.

In keeping the queries separate and the concerns small, it would be feasible to enrich domain objects with methods from the Queries namespace.

Defined Under Namespace

Modules: AccountPlaceholderQueries, AdditionalAttributeQueries, CitationQueries, CollaboratorQueries, DoiQueries, EventLogQueries, PermissionQueries, SipQueries