@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]); }
@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]); }
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(); }
@Deprecated public static EPerson create(Context context) throws AuthorizeException { EPersonDAO dao = EPersonDAOFactory.getInstance(context); return dao.create(); }
@Deprecated public static EPerson findByNetid(Context context, String netid) { EPersonDAO dao = EPersonDAOFactory.getInstance(context); return dao.retrieve(EPersonMetadataField.NETID, netid); }
@Deprecated public static EPerson findByEmail(Context context, String email) { EPersonDAO dao = EPersonDAOFactory.getInstance(context); return dao.retrieve(EPersonMetadataField.EMAIL, email); }
@Deprecated public static EPerson find(Context context, int id) { EPersonDAO dao = EPersonDAOFactory.getInstance(context); return dao.retrieve(id); }