示例#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
  public EPerson(Context context, int id) {
    this.id = id;
    this.context = context;

    dao = EPersonDAOFactory.getInstance(context);

    metadata = new EnumMap<EPersonMetadataField, String>(EPersonMetadataField.class);

    context.cache(this, id);

    modified = modifiedMetadata = false;
    clearDetails();
  }
示例#4
0
  @Deprecated
  public static EPerson create(Context context) throws AuthorizeException {
    EPersonDAO dao = EPersonDAOFactory.getInstance(context);

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

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

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

    return dao.retrieve(id);
  }