Module: Dor
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/dor/rest_resource_factory.rb,
lib/dor/config.rb,
lib/dor/version.rb,
lib/dor-services.rb,
lib/dor/exceptions.rb,
lib/dor/models/etd.rb,
lib/dor/models/set.rb,
lib/dor/models/item.rb,
lib/dor/models/part.rb,
lib/dor/release_tags.rb,
lib/dor/static_config.rb,
lib/dor/models/abstract.rb,
lib/dor/utils/pid_utils.rb,
lib/dor/models/agreement.rb,
lib/dor/workflow/process.rb,
lib/dor/models/collection.rb,
lib/dor/release_tags/purl.rb,
lib/dor/services/ontology.rb,
lib/dor/workflow/document.rb,
lib/dor/services/tag_service.rb,
lib/dor/datastreams/events_ds.rb,
lib/dor/indexers/data_indexer.rb,
lib/dor/services/suri_service.rb,
lib/dor/models/workflow_object.rb,
lib/dor/services/state_service.rb,
lib/dor/datastreams/workflow_ds.rb,
lib/dor/services/search_service.rb,
lib/dor/services/status_service.rb,
lib/dor/indexers/process_indexer.rb,
lib/dor/release_tags/purl_client.rb,
lib/dor/services/embargo_service.rb,
lib/dor/static_config/ssl_config.rb,
lib/dor/indexers/editable_indexer.rb,
lib/dor/indexers/workflow_indexer.rb,
lib/dor/static_config/solr_config.rb,
lib/dor/static_config/suri_config.rb,
lib/dor/indexers/composite_indexer.rb,
lib/dor/indexers/workflows_indexer.rb,
lib/dor/models/admin_policy_object.rb,
lib/dor/datastreams/geo_metadata_ds.rb,
lib/dor/indexers/releasable_indexer.rb,
lib/dor/models/concerns/embargoable.rb,
lib/dor/services/collection_service.rb,
lib/dor/static_config/fedora_config.rb,
lib/dor/static_config/stacks_config.rb,
lib/dor/datastreams/desc_metadata_ds.rb,
lib/dor/datastreams/role_metadata_ds.rb,
lib/dor/indexers/describable_indexer.rb,
lib/dor/indexers/processable_indexer.rb,
lib/dor/services/release_tag_service.rb,
lib/dor/indexers/identifiable_indexer.rb,
lib/dor/models/workflow_solr_document.rb,
lib/dor/static_config/workflow_config.rb,
lib/dor/datastreams/rights_metadata_ds.rb,
lib/dor/release_tags/identity_metadata.rb,
lib/dor/datastreams/content_metadata_ds.rb,
lib/dor/datastreams/embargo_metadata_ds.rb,
lib/dor/datastreams/version_metadata_ds.rb,
lib/dor/datastreams/identity_metadata_ds.rb,
lib/dor/datastreams/simple_dublin_core_ds.rb,
lib/dor/datastreams/technical_metadata_ds.rb,
lib/dor/datastreams/provenance_metadata_ds.rb,
lib/dor/datastreams/workflow_definition_ds.rb,
lib/dor/services/open_data_license_service.rb,
lib/dor/datastreams/default_object_rights_ds.rb,
lib/dor/datastreams/administrative_metadata_ds.rb,
lib/dor/services/creative_commons_license_service.rb,
lib/dor/certificate_authenticated_rest_resource_factory.rb
Overview
Creates RestClient::Resources with client ssl keys for various connections
Defined Under Namespace
Modules: Embargoable, ReleaseTags, Workflow Classes: Abstract, AdminPolicyObject, AdministrativeMetadataDS, Agreement, BadResponseFromCatalog, CertificateAuthenticatedRestResourceFactory, Collection, CollectionService, CompositeIndexer, ContentMetadataDS, CreativeCommonsLicenseService, DataError, DataIndexer, DefaultObjectRightsDS, DescMetadataDS, DescribableIndexer, DuplicateIdError, EditableIndexer, EmbargoMetadataDS, EmbargoService, Etd, EventsDS, Exception, GeoMetadataDS, IdentifiableIndexer, IdentityMetadataDS, Item, Ontology, OpenDataLicenseService, ParameterError, Part, PidUtils, ProcessIndexer, ProcessableIndexer, ProvenanceMetadataDS, ReleasableIndexer, ReleaseTagService, RestResourceFactory, RightsMetadataDS, RoleMetadataDS, SearchService, Set, SimpleDublinCoreDs, StateService, StaticConfig, StatusService, SuriService, TagService, TechnicalMetadataDS, VersionAlreadyOpenError, VersionMetadataDS, VersionTag, WorkflowDefinitionDs, WorkflowDs, WorkflowIndexer, WorkflowObject, WorkflowSolrDocument, WorkflowsIndexer
Constant Summary collapse
- Config =
StaticConfig.new(defaults)
- VERSION =
'8.4.0'
- @@registered_classes =
{}
Class Method Summary collapse
- .configure(*args, &block) ⇒ Object
-
.find(pid, _opts = {}) ⇒ Object
Load an object and inspect its identityMetadata to figure out what class to adapt it to.
- .logger ⇒ Object
Class Method Details
.configure(*args, &block) ⇒ Object
16 17 18 |
# File 'lib/dor-services.rb', line 16 def configure(*args, &block) Dor::Config.configure *args, &block end |
.find(pid, _opts = {}) ⇒ Object
Load an object and inspect its identityMetadata to figure out what class to adapt it to.
24 25 26 |
# File 'lib/dor-services.rb', line 24 def find(pid, _opts = {}) Dor::Abstract.find pid, cast: true end |
.logger ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/dor-services.rb', line 28 def logger require 'logger' @logger ||= if defined?(::Rails) && ::Rails.respond_to?(:logger) Rails.logger else Logger.new(STDOUT) end end |