01: /*
02: * Created on Mar 16, 2005
03: */
04: package com.sun.portal.wireless.admin;
05:
06: import java.util.List;
07: import java.util.Map;
08:
09: import com.sun.portal.admin.common.PSMBeanException;
10:
11: /**
12: * Handler interface to be implemented by all attribute handlers.
13: *
14: * @author ashwin.mathew@sun.com
15: */
16: public interface MobileAppAttributeHandler {
17:
18: public static final String SUN_MOBILE_APP_MAIL_SERVICE = "SunMobileAppMailService";
19:
20: public static final String SUN_MOBILE_APP_CALENDAR_SERVICE = "SunMobileAppCalendarService";
21:
22: public static final String SUN_MOBILE_APP_ADDRESS_BOOK_SERVICE = "SunMobileAppABService";
23:
24: public static final String SUN_MOBILE_APP_FAX_SERVICE = "SunPortalFaxService";
25:
26: public static final int SCOPE_GLOBAL = 1;
27: public static final int SCOPE_DYNAMIC = 2;
28: public static final int SCOPE_ORGANIZATION = 3;
29: public static final int SCOPE_USER = 4;
30:
31: public String getService();
32:
33: public abstract String getAttributeName();
34:
35: public abstract String getUserFriendlyName();
36:
37: public abstract int getScope();
38:
39: public abstract int getPrivilege();
40:
41: public abstract int getType();
42:
43: public abstract int getActualType();
44:
45: public abstract boolean requiresOldValues();
46:
47: public abstract void validate(List values, Map optionsMap)
48: throws PSMBeanException;
49:
50: public abstract List processGetValue(List values)
51: throws PSMBeanException;
52:
53: public abstract List processSetValue(List values)
54: throws PSMBeanException;
55:
56: public List getAttributeInfoList();
57:
58: }
|