public class ActivityRecordService
extends java.lang.Object
| Constructor and Description |
|---|
ActivityRecordService(ActivityRecordStorage activityRecordstorage)
Constructor for ActivityRecordService.
|
| Modifier and Type | Method and Description |
|---|---|
long |
countActivityRecords(java.lang.String search,
java.lang.Long activity,
java.lang.Long type,
java.lang.Long subType,
java.lang.Long activityCode,
java.lang.Long subActivityCode,
java.lang.Long client,
java.lang.Long project,
java.lang.Long feature,
java.lang.String fromDate,
java.lang.String toDate,
java.lang.String userName,
java.lang.String location,
java.lang.String office)
Retrieves the list of ActivityRecordsListAccess with offset, limit and a keyword that can be
empty
|
ActivityRecord |
createActivityRecord(ActivityRecord activityRecord)
Create new ActivityRecord
|
void |
deleteActivityRecord(java.lang.Long activityRecordId,
java.lang.String username)
Delete ActivityRecord identified by its id and check if username has permission to
delete it.
|
java.util.List<ActivityRecord> |
getActivityRecords()
Retrieves the list of ActivityRecords with offset, limit and a keyword that can be
empty
|
RecordsAccessList |
getActivityRecordsList(java.lang.String search,
java.lang.Long activity,
java.lang.Long type,
java.lang.Long subType,
java.lang.Long activityCode,
java.lang.Long subActivityCode,
java.lang.Long client,
java.lang.Long project,
java.lang.Long feature,
java.lang.String fromDate,
java.lang.String toDate,
java.lang.String userName,
java.lang.String location,
java.lang.String office,
int offset,
int limit,
java.lang.String sortBy,
boolean sortDesc)
Retrieves the list of ActivityRecordsListAccess with offset, limit and a keyword that can be
empty
|
java.util.List<ActivityRecord> |
getUserActivityRecordsList(java.lang.String day,
java.lang.String userName)
Retrieves the list of ActivityRecords wby day
|
ActivityRecord |
updateActivityRecord(ActivityRecord activityRecord,
java.lang.String username)
Update an existing ActivityRecord on datasource.
|
public ActivityRecordService(ActivityRecordStorage activityRecordstorage)
Constructor for ActivityRecordService.
activityRecordstorage - a ActivityRecordStorage object.public ActivityRecord createActivityRecord(ActivityRecord activityRecord) throws java.lang.Exception
activityRecord - ActivityRecord to createActivityRecord in datasourcejava.lang.Exception - when ActivityRecord already exists or an error occurs while
creating ActivityRecord or its attached imagepublic ActivityRecord updateActivityRecord(ActivityRecord activityRecord, java.lang.String username) throws java.lang.Exception
EntityNotFoundException will be thrown.activityRecord - dto to update on storeusername - username storing ActivityRecordActivityRecord in datasourcejava.lang.Exception - when Exception is thrown or an error
occurs while saving ActivityRecordpublic void deleteActivityRecord(java.lang.Long activityRecordId,
java.lang.String username)
throws javax.persistence.EntityNotFoundException,
java.lang.IllegalAccessException
activityRecordId - technical identifier of ActivityRecordusername - user currently deleting ActivityRecordjavax.persistence.EntityNotFoundException - if ActivityRecord wasn't foundjava.lang.IllegalAccessException - if user is not allowed to delete ActivityRecordpublic java.util.List<ActivityRecord> getActivityRecords()
ActivityRecord that contains the list of ActivityRecordspublic RecordsAccessList getActivityRecordsList(java.lang.String search, java.lang.Long activity, java.lang.Long type, java.lang.Long subType, java.lang.Long activityCode, java.lang.Long subActivityCode, java.lang.Long client, java.lang.Long project, java.lang.Long feature, java.lang.String fromDate, java.lang.String toDate, java.lang.String userName, java.lang.String location, java.lang.String office, int offset, int limit, java.lang.String sortBy, boolean sortDesc)
search - a String object.activity - a Long object.type - a Long object.subType - a Long object.activityCode - a Long object.subActivityCode - a Long object.client - a Long object.project - a Long object.feature - a Long object.fromDate - a String object.toDate - a String object.userName - a String object.location - a String object.office - a String object.offset - a int.limit - a int.sortBy - a String object.sortDesc - a boolean.ActivityRecord that contains the list of ActivityRecordspublic long countActivityRecords(java.lang.String search,
java.lang.Long activity,
java.lang.Long type,
java.lang.Long subType,
java.lang.Long activityCode,
java.lang.Long subActivityCode,
java.lang.Long client,
java.lang.Long project,
java.lang.Long feature,
java.lang.String fromDate,
java.lang.String toDate,
java.lang.String userName,
java.lang.String location,
java.lang.String office)
search - a String object.activity - a Long object.type - a Long object.subType - a Long object.activityCode - a Long object.subActivityCode - a Long object.client - a Long object.project - a Long object.feature - a Long object.fromDate - a String object.toDate - a String object.userName - a String object.location - a String object.office - a String object.ActivityRecord that contains the list of ActivityRecordspublic java.util.List<ActivityRecord> getUserActivityRecordsList(java.lang.String day, java.lang.String userName)
day - day of activityuserName - a String object.ActivityRecord that contains the list of ActivityRecordsCopyright © 2003–2020 eXo Platform SAS. All rights reserved.