Skip to content

Commit 6980593

Browse files
committed
Javadoc fixes
1 parent 459bbb0 commit 6980593

26 files changed

Lines changed: 54 additions & 7 deletions

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11

22
## [5.0.15] - 2025-06-15
3+
## Added
4+
- Javadoc comments
5+
36
### Changed
47
- Inlined nginx and Varnish config templates into `docker-compose.yml`
58
- SaxonJS 3 bump to 3.0.0-beta-2

src/main/java/com/atomgraph/linkeddatahub/client/util/RejectTooLargeResponseInputStream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.io.InputStream;
2323

2424
/**
25+
* Input stream that rejects HTTP responses that exceed the maximum size limit.
2526
*
2627
* @author Martynas Jusevičius {@literal <martynas@atomgraph.com>}
2728
*/

src/main/java/com/atomgraph/linkeddatahub/client/util/RetryAfterHelper.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
* RetryAfterHelper helper = new RetryAfterHelper(5000L, 3);
4040
* Response response = helper.invokeWithRetry(() -&gt; client.target(url).request().get());
4141
* </pre>
42-
* </p>
4342
*
4443
* @author Martynas Jusevičius {@literal <martynas@atomgraph.com>}
4544
*/
@@ -50,6 +49,12 @@ public class RetryAfterHelper
5049
private final long defaultDelayMillis;
5150
private final int maxRetryCount;
5251

52+
/**
53+
* Constructs retry helper.
54+
*
55+
* @param defaultDelayMillis default delay in milliseconds
56+
* @param maxRetryCount maximum retry count
57+
*/
5358
public RetryAfterHelper(long defaultDelayMillis, int maxRetryCount)
5459
{
5560
this.defaultDelayMillis = defaultDelayMillis;

src/main/java/com/atomgraph/linkeddatahub/imports/stream/csv/CSVGraphStoreRowProcessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import org.slf4j.LoggerFactory;
4242

4343
/**
44+
* CSV row processor that transforms CSV data to RDF and stores it in a graph store.
4445
*
4546
* @author {@literal Martynas Jusevičius <martynas@atomgraph.com>}
4647
*/

src/main/java/com/atomgraph/linkeddatahub/model/auth/Authorization.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.apache.jena.rdf.model.Resource;
2222

2323
/**
24+
* Authorization interface for access control.
2425
*
2526
* @author {@literal Martynas Jusevičius <martynas@atomgraph.com>}
2627
*/

src/main/java/com/atomgraph/linkeddatahub/model/auth/impl/AuthorizationImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.slf4j.LoggerFactory;
3535

3636
/**
37+
* Implementation of authorization model.
3738
*
3839
* @author {@literal Martynas Jusevičius <martynas@atomgraph.com>}
3940
*/

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public Response patch(UpdateRequest updateRequest, @QueryParam("graph") URI grap
369369
*
370370
* @param beforeUpdateModel model before the update
371371
* @param afterUpdateModel model after the update
372-
* @return
372+
* @return set of changed resources
373373
*/
374374
public Set<Resource> getChangedResources(Model beforeUpdateModel, Model afterUpdateModel)
375375
{
@@ -708,6 +708,11 @@ public File writeFile(Resource resource, FormDataBodyPart bodyPart)
708708
}
709709
}
710710

711+
/**
712+
* Submits imports for the given model.
713+
*
714+
* @param model the RDF model
715+
*/
711716
public void submitImports(Model model)
712717
{
713718
if (model == null) throw new IllegalArgumentException("Model cannot be null");

src/main/java/com/atomgraph/linkeddatahub/resource/acl/Access.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
import org.slf4j.LoggerFactory;
5858

5959
/**
60+
* ACL access control endpoint for querying authorization data.
6061
*
6162
* @author Martynas Jusevičius {@literal <martynas@atomgraph.com>}
6263
*/

src/main/java/com/atomgraph/linkeddatahub/resource/acl/AccessRequest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
import org.slf4j.LoggerFactory;
6464

6565
/**
66+
* Resource for handling ACL access requests.
6667
*
6768
* @author Martynas Jusevičius {@literal <martynas@atomgraph.com>}
6869
*/
@@ -181,6 +182,12 @@ public Response post(Model model, @QueryParam("default") @DefaultValue("false")
181182
}
182183
}
183184

185+
/**
186+
* Returns a human-readable name for the agent.
187+
*
188+
* @param agent the agent
189+
* @return human-readable name or null if not available
190+
*/
184191
public String getAgentsHumanReadableName(Agent agent)
185192
{
186193
if (agent.hasProperty(FOAF.givenName) && agent.hasProperty(FOAF.familyName))

src/main/java/com/atomgraph/linkeddatahub/server/factory/AuthorizationContextFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.glassfish.hk2.api.ServiceLocator;
2525

2626
/**
27+
* Factory for creating authorization context instances.
2728
*
2829
* @author {@literal Martynas Jusevičius <martynas@atomgraph.com>}
2930
*/

0 commit comments

Comments
 (0)