/**
  * Upload staff picture
  *
  * @param context
  * @param staff
  * @param fullPicture
  * @param thumb
  */
 public static void uploadStaffPicture(
     final Context context,
     final CompanyStaffDTO staff,
     final File fullPicture,
     final File thumb,
     Location location) {
   final PhotoUploadDTO dto = getObject(context, fullPicture, thumb, location);
   dto.setCompanyStaffID(staff.getCompanyStaffID());
   dto.setPictureType(PhotoUploadDTO.STAFF_IMAGE);
   addPhotoToCache(context, dto);
 }
  public static void uploadProjectPicture(
      final Context context,
      final ProjectDTO project,
      final File fullPicture,
      final File thumb,
      Location location) {
    final PhotoUploadDTO dto = getObject(context, fullPicture, thumb, location);
    dto.setProjectID(project.getProjectID());
    dto.setPictureType(PhotoUploadDTO.PROJECT_IMAGE);

    addPhotoToCache(context, dto);
  }
 public static void uploadSiteTaskPicture(
     final Context context,
     final ProjectSiteTaskDTO siteTask,
     final File fullPicture,
     final File thumb,
     Location location) {
   final PhotoUploadDTO dto = getObject(context, fullPicture, thumb, location);
   dto.setProjectID(siteTask.getProjectID());
   dto.setProjectSiteID(siteTask.getProjectSiteID());
   dto.setProjectSiteTaskID(siteTask.getProjectSiteTaskID());
   dto.setPictureType(PhotoUploadDTO.TASK_IMAGE);
   dto.setAccuracy(location.getAccuracy());
   addPhotoToCache(context, dto);
 }
 /**
  * Upload site picture
  *
  * @param context
  * @param site
  * @param fullPicture
  * @param thumb
  */
 public static void uploadSitePicture(
     final Context context,
     final ProjectSiteDTO site,
     final File fullPicture,
     final File thumb,
     Location location) {
   Log.w(LOG, "**** uploadSitePicture .........");
   final PhotoUploadDTO dto = getObject(context, fullPicture, thumb, location);
   dto.setProjectID(site.getProjectID());
   dto.setProjectSiteID(site.getProjectSiteID());
   dto.setPictureType(PhotoUploadDTO.SITE_IMAGE);
   dto.setAccuracy(location.getAccuracy());
   addPhotoToCache(context, dto);
 }