org.hackystat.dailyprojectdata.resource.codeissue
Class CodeIssueResource

java.lang.Object
  extended by org.restlet.Handler
      extended by org.restlet.resource.Resource
          extended by org.hackystat.dailyprojectdata.resource.dailyprojectdata.DailyProjectDataResource
              extended by org.hackystat.dailyprojectdata.resource.codeissue.CodeIssueResource

public class CodeIssueResource
extends DailyProjectDataResource

Implements the Resource for processing GET {host}/codeissue/{user}/{project}/{timestamp} requests. Authenticated user must be the uriUser, or Admin, or project member.

Author:
Philip Johnson, Julie Sakuda.

Field Summary
 
Fields inherited from class org.hackystat.dailyprojectdata.resource.dailyprojectdata.DailyProjectDataResource
authUser, badAuth, project, requestStartTime, server, timestamp, uriString, uriUser
 
Constructor Summary
CodeIssueResource(org.restlet.Context context, org.restlet.data.Request request, org.restlet.data.Response response)
          The standard constructor.
 
Method Summary
 org.restlet.resource.Representation represent(org.restlet.resource.Variant variant)
          Returns a CodeIssueDailyProjectData instance representing the CodeIssues associated with the Project data, or null if not authorized.
 
Methods inherited from class org.hackystat.dailyprojectdata.resource.dailyprojectdata.DailyProjectDataResource
getSensorBaseClient, getStringRepresentation, logRequest, logRequest, setStatusError, setStatusError
 
Methods inherited from class org.restlet.resource.Resource
acceptRepresentation, allowDelete, allowGet, allowPost, allowPut, delete, getPreferredRepresentation, getPreferredVariant, getRepresentation, getVariants, handleDelete, handleGet, handlePost, handlePut, init, isAvailable, isModifiable, isNegotiateContent, isReadable, post, put, removeRepresentations, represent, setAvailable, setModifiable, setNegotiateContent, setReadable, setVariants, storeRepresentation
 
Methods inherited from class org.restlet.Handler
allowHead, allowOptions, generateRef, getAllowedMethods, getApplication, getContext, getLogger, getMatrix, getQuery, getRequest, getResponse, handleHead, handleOptions, setContext, setRequest, setResponse, updateAllowedMethods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeIssueResource

public CodeIssueResource(org.restlet.Context context,
                         org.restlet.data.Request request,
                         org.restlet.data.Response response)
The standard constructor.

Parameters:
context - The context.
request - The request object.
response - The response object.
Method Detail

represent

public org.restlet.resource.Representation represent(org.restlet.resource.Variant variant)
Returns a CodeIssueDailyProjectData instance representing the CodeIssues associated with the Project data, or null if not authorized.

Specified by:
represent in class DailyProjectDataResource
Parameters:
variant - The representational variant requested.
Returns:
The representation.