public class CustomOfferServiceHandler extends Object
Constructor and Description |
---|
CustomOfferServiceHandler() |
Modifier and Type | Method and Description |
---|---|
static AHOffer |
addOffer(long offerId,
String title,
String descr,
long orgId,
E_OfferType offerType,
String contact1Fn,
String contact1Sn,
String contact1Phone,
String contact1Mail,
String contact2Fn,
String contact2Sn,
String contact2Phone,
String contact2Mail,
String street,
String streetNr,
float lat,
float lon,
String city,
String country,
int zip,
String workHours,
E_OfferWorkType workType,
long[] categories,
long publishDateTime,
long expireDateTime,
boolean agencyContact) |
static AHOffer |
addOffer(OfferForm data)
Add an offer by its form object
|
static OfferForm |
getOffer(AHOffer offer)
Get the form object for a specific offer
|
static OfferForm |
getOffer(long offerId)
Get a form object for a specific offer ID
|
static OfferForm |
getOfferForEdit(long offerId)
Get a form object for a specific offer ID for editing purposes.
|
public static AHOffer addOffer(OfferForm data)
data
- the form objectpublic static AHOffer addOffer(long offerId, String title, String descr, long orgId, E_OfferType offerType, String contact1Fn, String contact1Sn, String contact1Phone, String contact1Mail, String contact2Fn, String contact2Sn, String contact2Phone, String contact2Mail, String street, String streetNr, float lat, float lon, String city, String country, int zip, String workHours, E_OfferWorkType workType, long[] categories, long publishDateTime, long expireDateTime, boolean agencyContact)
public static OfferForm getOffer(AHOffer offer)
offer
- the offer modelpublic static OfferForm getOffer(long offerId)
offerId
- the offer IDpublic static OfferForm getOfferForEdit(long offerId)
offerId
- the offer IDCopyright © 2016 Fraunhofer FOKUS. All rights reserved.