|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.calendar.LocalCAP
Concrete class for local access to our rudimentary Windchill based calendar.
Supported API: false
Extendable: false
Field Summary | |
protected static long |
CAL_LB
|
protected static long |
CAL_UB
|
private static boolean |
CALC_DEFAULTS
|
private static String |
CLASSNAME
|
protected static int |
DEBUG
|
protected static String |
DELTA
|
protected static String |
DELTA_ERROR
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static boolean |
initSysCal
|
protected static String |
MS_TIMEZONE
|
protected static TimeZone |
MSTZ
|
protected static int |
MSTZ_OFFSET
|
private static String |
NON_WORK_DAYS_OF_THE_WEEK
|
protected static long |
OLD_FORMAT_VERSION_UID
|
protected static boolean |
PROM_MODE
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static WTCalendar |
system_calendar
|
protected static boolean |
VERBOSE
|
Constructor Summary | |
LocalCAP()
|
Method Summary | |
private QuerySpec |
buildOwnerQuery(WTPrincipal p)
Search Conditions * |
Enumeration |
calcComponents(long start_date,
long end_date)
|
static long |
calculateMaxCalDate()
This method calculates the largest calendar entry that we should see in the Calendar Component table based upon today's date and the upper_bound in the wt.properties file. |
static long |
calculateMinCalDate()
This method calculates the smallest calendar entry that we should see in the Calendar Component table based upon today's date and the delta in the wt.properties file. |
static GregorianCalendar |
convert_long_ToCalendar(long l)
|
static Timestamp |
convert_longToTimestamp(long l)
|
static long |
convertCalendarTo_long(Calendar tmpCal)
|
static Timestamp |
convertCalendarToTimestamp(Calendar tmpCal)
|
static long |
convertTimestampTo_long(Timestamp t)
|
static GregorianCalendar |
convertTimestampToCalendar(Timestamp t)
|
WTCalendar |
createCalendar(WTPrincipalReference user,
long start_date,
long end_date,
int zone_offset)
This method will create the specified calendar component over the date range start-end inclusive. |
CalendarComponent |
createComponent(WTCalendar userCalendar,
long start_date,
long end_date,
WTPrincipalReference delegate,
boolean workingDay,
int zone_offset)
This method will create the specified calendar component over the date range start-end inclusive. |
Vector |
createComponents(WTCalendar userCalendar,
long start_date,
long end_date,
WTPrincipalReference delegate,
boolean workingDay,
int zone_offset)
This method will create the specified calendar component over the date range start-end inclusive. |
boolean |
deleteCalendar(WTPrincipalReference user,
int zone_offset)
This method will delete the specified calendar component type for the user over the date range start-end inclusive. |
boolean |
deleteComponent(WTCalendar userCalendar,
long start_date,
long end_date,
int zone_offset)
This method will delete the specified calendar component type for the user over the date range start-end inclusive. |
boolean |
deleteComponents(WTCalendar userCalendar,
long start_date,
long end_date,
int zone_offset)
This method will delete the specified calendar component type for the user over the date range start-end inclusive. |
Enumeration |
getAllComponents(WTCalendar userCalendar)
|
WTCalendar |
getCalendar(CalendarComponent comp)
|
WTCalendar |
getCalendar(ComponentLink compLink)
|
Enumeration |
getComponent(WTCalendar userCalendar,
long start_date,
long end_date)
|
Enumeration |
getComponents(WTCalendar userCalendar,
long start_date,
long end_date)
|
static int |
getDelta()
|
private ObjectIdentifier |
getId(Object object)
|
static long |
getMaxDBEndDate()
This method gets the largest END_DATE value from the Calendar Component table. |
static long |
getMinDBStartDate()
This method gets the smallest START_DATE value from the Calendar Component table. |
Enumeration |
getParentCalendar(WTCalendar userCalendar)
|
protected static WTPrincipalReference |
getSysCalOwnerRef()
|
protected static WTCalendar |
getSystemCalendar()
|
WTPrincipalReference |
getSystemCalOwner()
|
protected static WTCalendar |
initSystemCalendar(WTCalendar sys_cal)
|
private SearchCondition |
onCalOid(long oid)
|
private SearchCondition |
onOwner(WTPrincipal p)
|
static void |
printInterestingInfo(Calendar cal)
|
protected WTCalendar |
propagateSystemCalendar(int the_month,
int the_year)
|
WTCalendar |
readCalendar(int calObjType,
WTPrincipalReference user,
long start_date,
long end_date,
int zone_offset)
Read out the user's calendar objects of the type specified between the dates start and end. |
CalendarComponent |
readComponent(WTCalendar userCalendar,
long start_date,
long end_date,
int zone_offset)
Modifies the calendar component object having date range start-end inclusive. |
Vector |
readComponents(WTCalendar userCalendar,
long start_date,
long end_date,
int zone_offset)
Modifies the calendar component object having date range start-end inclusive. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(LocalCAP thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
removeFromCache(WTCalendar userCalendar)
|
protected static Enumeration |
updateCache(WTCalendar userCalendar,
long start_date,
long end_date)
|
WTCalendar |
updateCalendar(WTPrincipalReference user,
WTPrincipalReference indefinite_delegate,
long indefinite_delegate_date,
int zone_offset)
Modifies the calendar object type(s) over the date range start-end inclusive. |
CalendarComponent |
updateComponent(WTCalendar userCalendar,
long start_date,
long end_date,
boolean workingDay,
int zone_offset)
Modifies the calendar object type(s) over the date range start-end inclusive. |
CalendarComponent |
updateComponent(WTCalendar userCalendar,
long start_date,
long end_date,
WTPrincipalReference delegate,
boolean workingDay,
int zone_offset)
Modifies the calendar object type(s) over the date range start-end inclusive. |
CalendarComponent |
updateComponent(WTCalendar userCalendar,
long start_date,
long end_date,
WTPrincipalReference delegate,
int zone_offset)
Modifies the calendar object type(s) over the date range start-end inclusive. |
Vector |
updateComponents(WTCalendar userCalendar,
long start_date,
long end_date,
boolean workingDay,
int zone_offset)
Modifies the calendar object type(s) over the date range start-end inclusive. |
Vector |
updateComponents(WTCalendar userCalendar,
long start_date,
long end_date,
WTPrincipalReference delegate,
boolean workingDay,
int zone_offset)
Modifies the calendar object type(s) over the date range start-end inclusive. |
Vector |
updateComponents(WTCalendar userCalendar,
long start_date,
long end_date,
WTPrincipalReference delegate,
int zone_offset)
Modifies the calendar object type(s) over the date range start-end inclusive. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static WTCalendar system_calendar
protected static boolean VERBOSE
protected static int DEBUG
protected static boolean initSysCal
protected static String MS_TIMEZONE
protected static TimeZone MSTZ
protected static int MSTZ_OFFSET
protected static String DELTA
protected static boolean PROM_MODE
protected static long CAL_UB
protected static long CAL_LB
private static boolean CALC_DEFAULTS
private static String NON_WORK_DAYS_OF_THE_WEEK
protected static String DELTA_ERROR
Constructor Detail |
public LocalCAP()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(LocalCAP thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public WTCalendar createCalendar(WTPrincipalReference user, long start_date, long end_date, int zone_offset) throws CalendarException
createCalendar
in interface CalendarAccessProtocol
user
- start_date
- end_date
- zone_offset
-
CalendarException
public WTCalendar readCalendar(int calObjType, WTPrincipalReference user, long start_date, long end_date, int zone_offset) throws CalendarException
readCalendar
in interface CalendarAccessProtocol
calObjType
- user
- start_date
- end_date
- zone_offset
-
CalendarException
public WTCalendar updateCalendar(WTPrincipalReference user, WTPrincipalReference indefinite_delegate, long indefinite_delegate_date, int zone_offset) throws CalendarException
updateCalendar
in interface CalendarAccessProtocol
user
- indefinite_delegate
- indefinite_delegate_date
- zone_offset
-
CalendarException
public boolean deleteCalendar(WTPrincipalReference user, int zone_offset) throws CalendarException
deleteCalendar
in interface CalendarAccessProtocol
user
- zone_offset
-
CalendarException
public CalendarComponent createComponent(WTCalendar userCalendar, long start_date, long end_date, WTPrincipalReference delegate, boolean workingDay, int zone_offset) throws CalendarException
createComponent
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- delegate
- workingDay
- zone_offset
-
CalendarException
public CalendarComponent readComponent(WTCalendar userCalendar, long start_date, long end_date, int zone_offset) throws CalendarException
readComponent
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- zone_offset
-
CalendarException
public CalendarComponent updateComponent(WTCalendar userCalendar, long start_date, long end_date, WTPrincipalReference delegate, boolean workingDay, int zone_offset) throws CalendarException
updateComponent
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- delegate
- workingDay
- zone_offset
-
CalendarException
public CalendarComponent updateComponent(WTCalendar userCalendar, long start_date, long end_date, boolean workingDay, int zone_offset) throws CalendarException
updateComponent
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- workingDay
- zone_offset
-
CalendarException
public CalendarComponent updateComponent(WTCalendar userCalendar, long start_date, long end_date, WTPrincipalReference delegate, int zone_offset) throws CalendarException
updateComponent
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- delegate
- zone_offset
-
CalendarException
public boolean deleteComponent(WTCalendar userCalendar, long start_date, long end_date, int zone_offset) throws CalendarException
deleteComponent
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- zone_offset
-
CalendarException
public Vector createComponents(WTCalendar userCalendar, long start_date, long end_date, WTPrincipalReference delegate, boolean workingDay, int zone_offset) throws CalendarException
createComponents
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- delegate
- workingDay
- zone_offset
-
CalendarException
public Vector readComponents(WTCalendar userCalendar, long start_date, long end_date, int zone_offset) throws CalendarException
readComponents
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- zone_offset
-
CalendarException
public Vector updateComponents(WTCalendar userCalendar, long start_date, long end_date, WTPrincipalReference delegate, boolean workingDay, int zone_offset) throws CalendarException
updateComponents
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- delegate
- workingDay
- zone_offset
-
CalendarException
public Vector updateComponents(WTCalendar userCalendar, long start_date, long end_date, WTPrincipalReference delegate, int zone_offset) throws CalendarException
updateComponents
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- delegate
- zone_offset
-
CalendarException
public Vector updateComponents(WTCalendar userCalendar, long start_date, long end_date, boolean workingDay, int zone_offset) throws CalendarException
updateComponents
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- workingDay
- zone_offset
-
CalendarException
public boolean deleteComponents(WTCalendar userCalendar, long start_date, long end_date, int zone_offset) throws CalendarException
deleteComponents
in interface CalendarAccessProtocol
userCalendar
- start_date
- end_date
- zone_offset
-
CalendarException
public Enumeration getAllComponents(WTCalendar userCalendar) throws WTException
WTException
public WTCalendar getCalendar(ComponentLink compLink) throws WTException
WTException
public WTCalendar getCalendar(CalendarComponent comp) throws WTException
WTException
public Enumeration getComponent(WTCalendar userCalendar, long start_date, long end_date) throws WTException
WTException
public Enumeration getComponents(WTCalendar userCalendar, long start_date, long end_date) throws WTException
WTException
public Enumeration getParentCalendar(WTCalendar userCalendar) throws WTException
WTException
private QuerySpec buildOwnerQuery(WTPrincipal p) throws WTException
WTException
private SearchCondition onOwner(WTPrincipal p) throws WTException
WTException
private SearchCondition onCalOid(long oid) throws WTException
WTException
protected static WTPrincipalReference getSysCalOwnerRef() throws WTException
WTException
protected static WTCalendar getSystemCalendar() throws CalendarException
CalendarException
protected static WTCalendar initSystemCalendar(WTCalendar sys_cal) throws CalendarException
CalendarException
public WTPrincipalReference getSystemCalOwner()
protected WTCalendar propagateSystemCalendar(int the_month, int the_year) throws CalendarException
CalendarException
private void removeFromCache(WTCalendar userCalendar) throws WTException
WTException
public static GregorianCalendar convertTimestampToCalendar(Timestamp t)
public static GregorianCalendar convert_long_ToCalendar(long l)
public static Timestamp convertCalendarToTimestamp(Calendar tmpCal)
public static long convertTimestampTo_long(Timestamp t)
public static Timestamp convert_longToTimestamp(long l)
public static long convertCalendarTo_long(Calendar tmpCal)
public static int getDelta()
public static long calculateMaxCalDate() throws CalendarException
CalendarException
public static long calculateMinCalDate() throws CalendarException
CalendarException
public static long getMaxDBEndDate()
public static long getMinDBStartDate()
public static void printInterestingInfo(Calendar cal)
protected static Enumeration updateCache(WTCalendar userCalendar, long start_date, long end_date) throws WTException
WTException
public Enumeration calcComponents(long start_date, long end_date) throws WTException
WTException
private ObjectIdentifier getId(Object object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |