Class ActivityRecordsManagementREST

  • All Implemented Interfaces:
    org.exoplatform.services.rest.resource.ResourceContainer

    @RolesAllowed("users")
    public class ActivityRecordsManagementREST
    extends java.lang.Object
    implements org.exoplatform.services.rest.resource.ResourceContainer

    ActivityRecordsManagementREST class.

    Version:
    $Id: $Id
    Author:
    medamine
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response createActivityRecord​(ActivityRecord activityRecord)
      createActivityRecord.
      javax.ws.rs.core.Response deleteActivityRecord​(java.lang.Long activityRecordId)
      deleteActivityRecord.
      javax.ws.rs.core.Response getActivityRecords()
      getActivityRecords.
      javax.ws.rs.core.Response getActivityRecords​(java.lang.String day)
      getActivityRecords.
      javax.ws.rs.core.Response getActivityRecordsList​(javax.ws.rs.core.UriInfo uriInfo, java.lang.String userName)
      get Last ActivityRecord.
      javax.ws.rs.core.Response getActivityRecordsList​(javax.ws.rs.core.UriInfo uriInfo, java.lang.String search, long activity, long type, long subType, long activityCode, long subActivityCode, long client, long project, long feature, java.lang.String fromDate, java.lang.String toDate, java.lang.String userName, java.lang.String location, java.lang.String office, java.lang.String sortBy, java.lang.Boolean sortDesc, java.lang.Boolean export)
      getActivityRecordsList.
      static java.util.List<java.time.LocalDate> getDatesBetween​(java.time.LocalDate startDate, java.time.LocalDate endDate)  
      javax.ws.rs.core.Response updateActivityRecord​(ActivityRecord activityRecord)
      updateActivityRecord.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActivityRecordsManagementREST

        public ActivityRecordsManagementREST​(ActivityRecordService activityRecordService,
                                             TimeTrackerSettingsService timeTrackerSettingsService,
                                             org.exoplatform.container.PortalContainer container)

        Constructor for ActivityRecordsManagementREST.

        Parameters:
        activityRecordService - a ActivityRecordService object.
        container - a PortalContainer object.
    • Method Detail

      • getActivityRecords

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getActivityRecords()

        getActivityRecords.

        Returns:
        a Response object.
      • getActivityRecordsList

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getActivityRecordsList​(@Context
                                                                javax.ws.rs.core.UriInfo uriInfo,
                                                                java.lang.String search,
                                                                long activity,
                                                                long type,
                                                                long subType,
                                                                long activityCode,
                                                                long subActivityCode,
                                                                long client,
                                                                long project,
                                                                long feature,
                                                                java.lang.String fromDate,
                                                                java.lang.String toDate,
                                                                java.lang.String userName,
                                                                java.lang.String location,
                                                                java.lang.String office,
                                                                java.lang.String sortBy,
                                                                java.lang.Boolean sortDesc,
                                                                java.lang.Boolean export)

        getActivityRecordsList.

        Parameters:
        uriInfo - a UriInfo object.
        search - a String object.
        activity - a long.
        type - a long.
        subType - a long.
        activityCode - a long.
        subActivityCode - a long.
        client - a long.
        project - a long.
        feature - a long.
        fromDate - a String object.
        toDate - a String object.
        userName - a String object.
        location - a String object.
        office - a String object.
        sortBy - a String object.
        sortDesc - a Boolean object.
        export - a Boolean object.
        Returns:
        a Response object.
      • getActivityRecordsList

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getActivityRecordsList​(@Context
                                                                javax.ws.rs.core.UriInfo uriInfo,
                                                                java.lang.String userName)

        get Last ActivityRecord.

        Parameters:
        uriInfo - a UriInfo object.
        userName - a String object.
        Returns:
        a Response object.
      • getDatesBetween

        public static java.util.List<java.time.LocalDate> getDatesBetween​(java.time.LocalDate startDate,
                                                                          java.time.LocalDate endDate)
      • getActivityRecords

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getActivityRecords​(java.lang.String day)

        getActivityRecords.

        Parameters:
        day - a String object.
        Returns:
        a Response object.
      • createActivityRecord

        @RolesAllowed("users")
        public javax.ws.rs.core.Response createActivityRecord​(ActivityRecord activityRecord)

        createActivityRecord.

        Parameters:
        activityRecord - a ActivityRecord object.
        Returns:
        a Response object.
      • updateActivityRecord

        @RolesAllowed("users")
        public javax.ws.rs.core.Response updateActivityRecord​(ActivityRecord activityRecord)

        updateActivityRecord.

        Parameters:
        activityRecord - a ActivityRecord object.
        Returns:
        a Response object.
      • deleteActivityRecord

        @RolesAllowed("users")
        public javax.ws.rs.core.Response deleteActivityRecord​(java.lang.Long activityRecordId)

        deleteActivityRecord.

        Parameters:
        activityRecordId - a Long object.
        Returns:
        a Response object.