예제 #1
0
  @Deprecated
  public static EPerson[] search(Context context, String query, int offset, int limit) {
    EPersonDAO dao = EPersonDAOFactory.getInstance(context);
    List<EPerson> epeople = dao.search(query, offset, limit);

    return (EPerson[]) epeople.toArray(new EPerson[0]);
  }
예제 #2
0
  @Deprecated
  public static EPerson[] findAll(Context context, int sortField) {
    EPersonDAO dao = EPersonDAOFactory.getInstance(context);
    List<EPerson> epeople = dao.getEPeople(sortField);

    return (EPerson[]) epeople.toArray(new EPerson[0]);
  }
예제 #3
0
  @Deprecated
  public void update() throws AuthorizeException {
    dao.update(this);

    if (modified) {
      context.addEvent(new Event(Event.MODIFY, Constants.EPERSON, getID(), null));
      modified = false;
    }
    if (modifiedMetadata) {
      context.addEvent(new Event(Event.MODIFY_METADATA, Constants.EPERSON, getID(), getDetails()));
      modifiedMetadata = false;
      clearDetails();
    }
  }
예제 #4
0
 @Deprecated
 public void delete() throws AuthorizeException, EPersonDeletionException {
   dao.delete(getID());
   context.addEvent(new Event(Event.DELETE, Constants.EPERSON, getID(), getEmail()));
 }
예제 #5
0
  @Deprecated
  public static EPerson create(Context context) throws AuthorizeException {
    EPersonDAO dao = EPersonDAOFactory.getInstance(context);

    return dao.create();
  }
예제 #6
0
  @Deprecated
  public static EPerson findByNetid(Context context, String netid) {
    EPersonDAO dao = EPersonDAOFactory.getInstance(context);

    return dao.retrieve(EPersonMetadataField.NETID, netid);
  }
예제 #7
0
  @Deprecated
  public static EPerson findByEmail(Context context, String email) {
    EPersonDAO dao = EPersonDAOFactory.getInstance(context);

    return dao.retrieve(EPersonMetadataField.EMAIL, email);
  }
예제 #8
0
  @Deprecated
  public static EPerson find(Context context, int id) {
    EPersonDAO dao = EPersonDAOFactory.getInstance(context);

    return dao.retrieve(id);
  }