|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--portlets.compoze.groupware.calendar.FreeBusy
This class represents a free/busy entry for a particular user.
| Inner Class Summary | |
static class |
FreeBusy.Interval
This class represents an interval for display. |
static class |
FreeBusy.TimeSlot
This class represents information about a single time slot. |
| Field Summary | |
static java.lang.String |
USER_SEPARATOR
This value represents the deliminter for separating users. |
| Constructor Summary | |
FreeBusy(java.lang.String sUser,
int iInterval)
Constructor. |
|
| Method Summary | |
void |
addTimeSlot(java.util.Date startTime,
java.util.Date endTime,
BusyStatus status)
Adds a time slot to the free/busy entry. |
static FreeBusy |
getFreeBusy(FreeBusy[] freeBusy,
java.lang.String sUser)
Gets the free/busy for the specified user. |
int |
getInterval()
Gets the free/busy entry (in minutes). |
FreeBusy.TimeSlot |
getTimeSlot(java.util.Calendar cal)
Gets the time slot for the specified start time. |
FreeBusy.TimeSlot[] |
getTimeSlots()
Gets the time slots for this free/busy entry. |
java.lang.String |
getUser()
Gets the user for this free/busy entry. |
java.lang.String |
getUserImAddress()
Gets the IM address of the user for this free/busy entry. |
static java.lang.String |
getUserList(java.lang.String[] users)
Gets a separated sequence of users from the specified user array using the delimiter. |
boolean |
hasFreeBusy()
Checks if this entry has free/busy information. |
static FreeBusy[] |
merge(FreeBusy[] freeBusy1,
FreeBusy[] freeBusy2)
Merges the two free/busy arrays. |
static java.lang.String[] |
parseUsers(java.lang.String sUsers)
Parses the users into an array of users. |
static java.lang.String[] |
parseUsers(java.lang.String[] users,
java.lang.String sUsers)
Parses the users into an array of users. |
static java.lang.String[] |
parseUsers(java.lang.String[] users,
java.lang.String sUsers,
boolean bCommaSeparated)
Parses the users into an array of users. |
static java.lang.String[] |
parseUsers(java.lang.String sUsers,
boolean bCommaSeparated)
Parses the users into an array of users. |
static java.lang.String[] |
removeUser(java.lang.String[] users,
java.lang.String sUser)
Removes the user from the array of users. |
static java.lang.String[] |
removeUsers(java.lang.String[] users,
java.lang.String[] filterUsers)
Removes the users from the array of users. |
void |
setUserImAddress(java.lang.String sUserImAddress)
Sets the IM address of the user for this free/busy entry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String USER_SEPARATOR
| Constructor Detail |
public FreeBusy(java.lang.String sUser,
int iInterval)
sUser - the user (may not be null)iInterval - the interval (in minutes)| Method Detail |
public static FreeBusy[] merge(FreeBusy[] freeBusy1,
FreeBusy[] freeBusy2)
freeBusy1 - the first free/busy array (may not be null)freeBusy2 - the second free/busy array (may not be null)public static java.lang.String getUserList(java.lang.String[] users)
users - the user to build the list from (may not be null)USER_SEPARATORpublic static java.lang.String[] parseUsers(java.lang.String sUsers)
sUsers - the users to parseUSER_SEPARATOR
public static java.lang.String[] parseUsers(java.lang.String sUsers,
boolean bCommaSeparated)
sUsers - the users to parsebCommaSeparated - the comma separator flagUSER_SEPARATOR
public static java.lang.String[] parseUsers(java.lang.String[] users,
java.lang.String sUsers)
users - the users array to add tosUsers - the users to parseUSER_SEPARATOR
public static java.lang.String[] parseUsers(java.lang.String[] users,
java.lang.String sUsers,
boolean bCommaSeparated)
users - the users array to add tosUsers - the users to parsebCommaSeparated - the comma separator flagUSER_SEPARATOR
public static java.lang.String[] removeUsers(java.lang.String[] users,
java.lang.String[] filterUsers)
users - the users array to remove fromsUser - the users to remove (may not be null)
public static java.lang.String[] removeUser(java.lang.String[] users,
java.lang.String sUser)
users - the users array to remove fromsUser - the user to remove (may not be null)public java.lang.String getUser()
public int getInterval()
public boolean hasFreeBusy()
true if this entry has free/busy information; false otherwisepublic FreeBusy.TimeSlot[] getTimeSlots()
public FreeBusy.TimeSlot getTimeSlot(java.util.Calendar cal)
cal - the calendar set to the hour and minute to use for the start timenull if not found
public void addTimeSlot(java.util.Date startTime,
java.util.Date endTime,
BusyStatus status)
startTime - the start time of the time slotendTime - the end time of the time slotstatus - the busy status
public static FreeBusy getFreeBusy(FreeBusy[] freeBusy,
java.lang.String sUser)
freeBusy - the free busysUser - the user to getnull if not foundpublic java.lang.String getUserImAddress()
public void setUserImAddress(java.lang.String sUserImAddress)
sUserImAddress - the IM address of the user for this free/busy entry to set
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||