Class ReferenceServiceImpl

  • All Implemented Interfaces:
    org.fcrepo.kernel.api.services.ReferenceService

    @Component("referenceServiceImpl")
    public class ReferenceServiceImpl
    extends Object
    implements org.fcrepo.kernel.api.services.ReferenceService
    Implementation of reference service.
    Since:
    6.0.0
    Author:
    whikloj
    • Method Detail

      • setUp

        @PostConstruct
        public void setUp()
      • getInboundReferences

        public org.fcrepo.kernel.api.RdfStream getInboundReferences​(String txId,
                                                                    org.fcrepo.kernel.api.models.FedoraResource resource)
        Specified by:
        getInboundReferences in interface org.fcrepo.kernel.api.services.ReferenceService
      • deleteAllReferences

        public void deleteAllReferences​(@Nonnull
                                        String txId,
                                        org.fcrepo.kernel.api.identifiers.FedoraId resourceId)
        Specified by:
        deleteAllReferences in interface org.fcrepo.kernel.api.services.ReferenceService
      • updateReferences

        public void updateReferences​(@Nonnull
                                     String txId,
                                     org.fcrepo.kernel.api.identifiers.FedoraId resourceId,
                                     String userPrincipal,
                                     org.fcrepo.kernel.api.RdfStream rdfStream)
        Specified by:
        updateReferences in interface org.fcrepo.kernel.api.services.ReferenceService
      • commitTransaction

        public void commitTransaction​(String txId)
        Specified by:
        commitTransaction in interface org.fcrepo.kernel.api.services.ReferenceService
      • rollbackTransaction

        public void rollbackTransaction​(String txId)
        Specified by:
        rollbackTransaction in interface org.fcrepo.kernel.api.services.ReferenceService
      • reset

        public void reset()
        Specified by:
        reset in interface org.fcrepo.kernel.api.services.ReferenceService
      • setDataSource

        public void setDataSource​(DataSource dataSource)
        Set the JDBC datastore.
        Parameters:
        dataSource - the dataStore.