@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]); }
@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(); } }
@Deprecated public void delete() throws AuthorizeException, EPersonDeletionException { dao.delete(getID()); context.addEvent(new Event(Event.DELETE, Constants.EPERSON, getID(), getEmail())); }
@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); }