Skip to content

Commit c72cf96

Browse files
committed
Renamed DirectGraphStoreImpl to DocumentHierarchyGraphStoreImpl
1 parent 623fce6 commit c72cf96

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/main/java/com/atomgraph/linkeddatahub/resource/Generate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import com.atomgraph.core.MediaTypes;
2020
import com.atomgraph.linkeddatahub.apps.model.Application;
21-
import com.atomgraph.linkeddatahub.server.model.impl.DirectGraphStoreImpl;
21+
import com.atomgraph.linkeddatahub.server.model.impl.DocumentHierarchyGraphStoreImpl;
2222
import com.atomgraph.linkeddatahub.server.security.AgentContext;
2323
import com.atomgraph.linkeddatahub.server.util.Skolemizer;
2424
import com.atomgraph.linkeddatahub.vocabulary.LDH;
@@ -158,7 +158,7 @@ public Response post(Model model)
158158
new Skolemizer(containerGraphURI.toString()).apply(containerModel);
159159

160160
// append triples directly to the graph store without doing an HTTP request (and thus no ACL check)
161-
try (Response containerResponse = getResourceContext().getResource(DirectGraphStoreImpl.class).post(containerModel, false, containerGraphURI))
161+
try (Response containerResponse = getResourceContext().getResource(DocumentHierarchyGraphStoreImpl.class).post(containerModel, false, containerGraphURI))
162162
{
163163
if (!containerResponse.getStatusInfo().getFamily().equals(Status.Family.SUCCESSFUL))
164164
{

src/main/java/com/atomgraph/linkeddatahub/resource/Transform.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import com.atomgraph.linkeddatahub.client.GraphStoreClient;
2222
import com.atomgraph.linkeddatahub.imports.QueryLoader;
2323
import com.atomgraph.linkeddatahub.server.io.ValidatingModelProvider;
24-
import com.atomgraph.linkeddatahub.server.model.impl.DirectGraphStoreImpl;
24+
import com.atomgraph.linkeddatahub.server.model.impl.DocumentHierarchyGraphStoreImpl;
2525
import com.atomgraph.linkeddatahub.server.security.AgentContext;
2626
import com.atomgraph.linkeddatahub.vocabulary.NFO;
2727
import com.atomgraph.spinrdf.vocabulary.SPIN;
@@ -180,7 +180,7 @@ public Response postMultipart(FormDataMultiPart multiPart)
180180

181181
try
182182
{
183-
DirectGraphStoreImpl graphStore = getResourceContext().getResource(DirectGraphStoreImpl.class);
183+
DocumentHierarchyGraphStoreImpl graphStore = getResourceContext().getResource(DocumentHierarchyGraphStoreImpl.class);
184184

185185
Model model = graphStore.parseModel(multiPart); // do not skolemize because we don't know the graphUri yet
186186
MessageBodyReader<Model> reader = getProviders().getMessageBodyReader(Model.class, null, null, com.atomgraph.core.MediaType.APPLICATION_NTRIPLES_TYPE);

src/main/java/com/atomgraph/linkeddatahub/resource/admin/SignUp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import com.atomgraph.linkeddatahub.model.Service;
2727
import com.atomgraph.linkeddatahub.listener.EMailListener;
2828
import com.atomgraph.linkeddatahub.server.filter.response.CacheInvalidationFilter;
29-
import com.atomgraph.linkeddatahub.server.model.impl.DirectGraphStoreImpl;
29+
import com.atomgraph.linkeddatahub.server.model.impl.DocumentHierarchyGraphStoreImpl;
3030
import com.atomgraph.linkeddatahub.server.security.AgentContext;
3131
import com.atomgraph.linkeddatahub.server.util.MessageBuilder;
3232
import com.atomgraph.linkeddatahub.server.util.Skolemizer;
@@ -98,7 +98,7 @@
9898
*
9999
* @author Martynas Jusevičius {@literal <martynas@atomgraph.com>}
100100
*/
101-
public class SignUp extends DirectGraphStoreImpl
101+
public class SignUp extends DocumentHierarchyGraphStoreImpl
102102
{
103103

104104
private static final Logger log = LoggerFactory.getLogger(SignUp.class);

src/main/java/com/atomgraph/linkeddatahub/server/model/impl/Dispatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public Class getSettingsEndpoint()
267267
*/
268268
public Class getDocumentClass()
269269
{
270-
return DirectGraphStoreImpl.class;
270+
return DocumentHierarchyGraphStoreImpl.class;
271271
}
272272

273273
/**

src/main/java/com/atomgraph/linkeddatahub/server/model/impl/DirectGraphStoreImpl.java renamed to src/main/java/com/atomgraph/linkeddatahub/server/model/impl/DocumentHierarchyGraphStoreImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@
122122
*
123123
* @author Martynas Jusevičius {@literal <martynas@atomgraph.com>}
124124
*/
125-
public class DirectGraphStoreImpl extends com.atomgraph.core.model.impl.DirectGraphStoreImpl implements Patchable
125+
public class DocumentHierarchyGraphStoreImpl extends com.atomgraph.core.model.impl.DirectGraphStoreImpl implements Patchable
126126
{
127127

128-
private static final Logger log = LoggerFactory.getLogger(DirectGraphStoreImpl.class);
128+
private static final Logger log = LoggerFactory.getLogger(DocumentHierarchyGraphStoreImpl.class);
129129

130130
/**
131131
* The relative path of the content-addressed file container.
@@ -160,7 +160,7 @@ public class DirectGraphStoreImpl extends com.atomgraph.core.model.impl.DirectGr
160160
* @param system system application
161161
*/
162162
@Inject
163-
public DirectGraphStoreImpl(@Context Request request, @Context UriInfo uriInfo, MediaTypes mediaTypes,
163+
public DocumentHierarchyGraphStoreImpl(@Context Request request, @Context UriInfo uriInfo, MediaTypes mediaTypes,
164164
com.atomgraph.linkeddatahub.apps.model.Application application, Optional<Ontology> ontology, Optional<Service> service,
165165
@Context SecurityContext securityContext, Optional<AgentContext> agentContext,
166166
@Context Providers providers, com.atomgraph.linkeddatahub.Application system)

0 commit comments

Comments
 (0)