Skip to content

Commit 45e6116

Browse files
committed
Removed unused code
Updated Javadoc
1 parent 6ed78f4 commit 45e6116

7 files changed

Lines changed: 70 additions & 73 deletions

File tree

src/main/java/com/atomgraph/linkeddatahub/apps/model/AdminApplication.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ public interface AdminApplication extends Application
2828
/**
2929
* The relative path at which the request access endpoint is located.
3030
* TO-DO: extract from JAX-RS <code>@Path</code> annotation?
31-
*
32-
* @see com.atomgraph.linkeddatahub.resource.admin.RequestAccess
31+
*
32+
* @see com.atomgraph.linkeddatahub.resource.acl.AccessRequest
3333
*/
3434
public static final String REQUEST_ACCESS_PATH = "access/request";
35-
35+
3636
/**
3737
* The relative path of the authorization request container.
38-
*
39-
* @see com.atomgraph.linkeddatahub.resource.admin.RequestAccess
38+
*
39+
* @see com.atomgraph.linkeddatahub.resource.acl.AccessRequest
4040
*/
4141
public static final String AUTHORIZATION_REQUEST_PATH = "acl/authorization-requests/";
4242

src/main/java/com/atomgraph/linkeddatahub/client/filter/JSONGRDDLFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void filter(ClientRequestContext requestContext, ClientResponseContext re
145145
* @param requestURI original request URI for context
146146
* @return RDF/XML as string
147147
* @throws SaxonApiException if Saxon processing fails
148-
* @throws java.io.IOException
148+
* @throws java.io.IOException if I/O error occurs
149149
*/
150150
protected String transformJSONToRDF(String jsonContent, URI requestURI) throws SaxonApiException, IOException
151151
{

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

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,15 @@ public Access(@Context Request request, @Context UriInfo uriInfo, MediaTypes med
102102
aclQuery = new ParameterizedSparqlString(system.getACLQuery().toString());
103103
ownerAclQuery = new ParameterizedSparqlString(system.getOwnerACLQuery().toString());
104104
}
105-
105+
106+
/**
107+
* Implements the HTTP GET method for retrieving access control information.
108+
*
109+
* @param unused SPARQL query parameter (unused)
110+
* @param defaultGraphUris default graph URIs
111+
* @param namedGraphUris named graph URIs
112+
* @return response with access control data
113+
*/
106114
@GET
107115
public Response get(@QueryParam(QUERY) Query unused,
108116
@QueryParam(DEFAULT_GRAPH_URI) List<URI> defaultGraphUris, @QueryParam(NAMED_GRAPH_URI) List<URI> namedGraphUris)
@@ -240,7 +248,12 @@ public Response.ResponseBuilder getResponseBuilder(Model model)
240248
new HTMLMediaTypePredicate()).
241249
getResponseBuilder();
242250
}
243-
251+
252+
/**
253+
* Returns the current request.
254+
*
255+
* @return request object
256+
*/
244257
public Request getRequest()
245258
{
246259
return request;
@@ -265,7 +278,12 @@ public UriInfo getUriInfo()
265278
{
266279
return uriInfo;
267280
}
268-
281+
282+
/**
283+
* Returns media types registry.
284+
*
285+
* @return media types
286+
*/
269287
public MediaTypes getMediaTypes()
270288
{
271289
return mediaTypes;

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

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,28 @@ public AccessRequest(com.atomgraph.linkeddatahub.apps.model.Application applicat
9696
if (emailText == null) throw new InternalServerErrorException(new ConfigurationException(LDHC.requestAccessEMailText));
9797

9898
}
99-
99+
100+
/**
101+
* Implements the HTTP GET method.
102+
*
103+
* @param defaultGraph default graph flag
104+
* @param graphUri graph URI
105+
* @return response object
106+
*/
100107
@GET
101108
public Response get(@QueryParam("default") @DefaultValue("false") Boolean defaultGraph, @QueryParam("graph") URI graphUri)
102109
{
103110
throw new NotAllowedException("GET is not allowed on this endpoint");
104111
}
105-
112+
113+
/**
114+
* Implements the HTTP POST method for submitting access requests.
115+
*
116+
* @param model RDF model with access request data
117+
* @param defaultGraph default graph flag
118+
* @param graphUri graph URI
119+
* @return response object
120+
*/
106121
@POST
107122
public Response post(Model model, @QueryParam("default") @DefaultValue("false") Boolean defaultGraph, @QueryParam("graph") URI graphUri)
108123
{
@@ -191,7 +206,12 @@ public String getAgentsHumanReadableName(Agent agent)
191206

192207
return null;
193208
}
194-
209+
210+
/**
211+
* Returns the current application.
212+
*
213+
* @return end-user application
214+
*/
195215
public EndUserApplication getApplication()
196216
{
197217
return application;

src/main/java/com/atomgraph/linkeddatahub/resource/oauth2/LoginBase.java

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,17 +573,32 @@ public AdminApplication getAdminApplication()
573573
else
574574
return getApplication().as(EndUserApplication.class).getAdminApplication();
575575
}
576-
576+
577+
/**
578+
* Returns URI information for the current request.
579+
*
580+
* @return URI info
581+
*/
577582
public UriInfo getUriInfo()
578583
{
579584
return uriInfo;
580585
}
581-
586+
587+
/**
588+
* Returns the system application.
589+
*
590+
* @return JAX-RS application
591+
*/
582592
public com.atomgraph.linkeddatahub.Application getSystem()
583593
{
584594
return system;
585595
}
586-
596+
597+
/**
598+
* Returns the current application.
599+
*
600+
* @return application resource
601+
*/
587602
public Application getApplication()
588603
{
589604
return application;

src/main/java/com/atomgraph/linkeddatahub/vocabulary/LSMT.java

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/main/java/com/atomgraph/linkeddatahub/writer/function/URLDecode.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
*/
3535
public class URLDecode extends ExtensionFunctionDefinition
3636
{
37-
37+
38+
/** The local name of the XSLT function */
3839
public static final String LOCAL_NAME = "url-decode";
3940

4041
@Override

0 commit comments

Comments
 (0)