I wrote a function using an enum for filtering with this signature:
/**
* Match a profile with other profiles meaning they are similar.
*
* @param profileId
* the profile to match
* @param actuality
* the actuality to use for filtering
* @return a ordered list of the best matching profiles
*/
public Match[] match(String profileId, Actuality actuality)
The enum looks like this:
public enum Actuality {
/** Only show data within 5 days. */
BRAND_NEW,
/** Show data within 45 days. */
NEW,
/** Show all data. */
ALL,
}
Is it possible to remote Actuality enum with JAX-RPC? If you could suggest another nice way of doing this (Not just pass an int) with JAX-RPC would also be very helpful.