kotkabeans
Class Event
java.lang.Object
|
+--kotkabeans.Event
- public class Event
- extends java.lang.Object
implements Event-object used manipulating courses eventgroups.
Constructor Summary |
Event()
|
Event(int eid,
boolean setAttributes)
Creates a new instance of event with specified Id. |
Event(int eid,
int gid)
|
Event(int eid,
int gid,
boolean setAttributes)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventID
protected int eventID
groupID
protected int groupID
beginTime
protected java.lang.String beginTime
endTime
protected java.lang.String endTime
beginDate
protected java.lang.String beginDate
endDate
protected java.lang.String endDate
uri
protected java.lang.String uri
info
protected java.lang.String info
name
protected java.lang.String name
deleted
protected boolean deleted
inheritedFrom
protected int inheritedFrom
spaces
protected java.util.ArrayList spaces
persons
protected java.util.ArrayList persons
spaceList
protected java.util.ArrayList spaceList
personList
protected java.util.ArrayList personList
changed
protected boolean changed
beginDateChanged
protected boolean beginDateChanged
beginTimeChanged
protected boolean beginTimeChanged
endDateChanged
protected boolean endDateChanged
endTimeChanged
protected boolean endTimeChanged
spacesChanged
protected boolean spacesChanged
personsChanged
protected boolean personsChanged
deletedChanged
protected boolean deletedChanged
uriChanged
protected boolean uriChanged
infoChanged
protected boolean infoChanged
nameChanged
protected boolean nameChanged
inheritedFromChanged
protected boolean inheritedFromChanged
VISIBILITY_ID
protected static int VISIBILITY_ID
PRIORITY_ID
protected static int PRIORITY_ID
Event
public Event()
Event
public Event(int eid,
int gid)
Event
public Event(int eid,
boolean setAttributes)
- Creates a new instance of event with specified Id. Optionally
sets all attributes from database.
Event
public Event(int eid,
int gid,
boolean setAttributes)
setGroupID
public void setGroupID(int gid)
setEventID
public void setEventID(int eid)
setBeginTime
public void setBeginTime(java.lang.String t)
setEndTime
public void setEndTime(java.lang.String t)
setBeginDate
public void setBeginDate(java.lang.String t)
setEndDate
public void setEndDate(java.lang.String t)
setBeginDate
public void setBeginDate(java.lang.String week,
java.lang.String dayOfWeek)
setEndDate
public void setEndDate(java.lang.String week,
java.lang.String dayOfWeek)
setDeleted
public void setDeleted(boolean d)
setUri
public void setUri(java.lang.String uri)
setInfo
public void setInfo(java.lang.String info)
setName
public void setName(java.lang.String n)
setInheritedFrom
public void setInheritedFrom(int i)
setBeginTimeChanged
public void setBeginTimeChanged(boolean c)
setBeginDateChanged
public void setBeginDateChanged(boolean c)
setEndTimeChanged
public void setEndTimeChanged(boolean c)
setDeletedChanged
public void setDeletedChanged(boolean c)
setUriChanged
public void setUriChanged(boolean b)
setInfoChanged
public void setInfoChanged(boolean c)
setNameChanged
public void setNameChanged(boolean c)
setInheritedFromChanged
public void setInheritedFromChanged(boolean b)
setEndDateChanged
public void setEndDateChanged(boolean c)
setPersonsChanged
public void setPersonsChanged(boolean c)
setSpacesChanged
public void setSpacesChanged(boolean c)
setChanged
public void setChanged(boolean c)
isChanged
public boolean isChanged()
isBeginTimeChanged
public boolean isBeginTimeChanged()
isBeginDateChanged
public boolean isBeginDateChanged()
isEndTimeChanged
public boolean isEndTimeChanged()
isEndDateChanged
public boolean isEndDateChanged()
isDeletedChanged
public boolean isDeletedChanged()
isUriChanged
public boolean isUriChanged()
isInfoChanged
public boolean isInfoChanged()
isNameChanged
public boolean isNameChanged()
isInheritedFromChanged
public boolean isInheritedFromChanged()
isPersonsChanged
public boolean isPersonsChanged()
isSpacesChanged
public boolean isSpacesChanged()
getEventID
public int getEventID()
getGroupID
public int getGroupID()
getBeginTime
public java.lang.String getBeginTime()
getEndTime
public java.lang.String getEndTime()
getBeginDate
public java.lang.String getBeginDate()
getEndDate
public java.lang.String getEndDate()
getUri
public java.lang.String getUri()
getInfo
public java.lang.String getInfo()
getName
public java.lang.String getName()
getInheritedFrom
public int getInheritedFrom()
getPersons
public java.lang.String[] getPersons()
getSpaces
public java.lang.String[] getSpaces()
getBeginDayOfWeek
public int getBeginDayOfWeek()
getEndDayOfWeek
public int getEndDayOfWeek()
getBeginWeek
public int getBeginWeek()
getEndWeek
public int getEndWeek()
isDeleted
public boolean isDeleted()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
checkUsersEventRights
public static boolean checkUsersEventRights(int eventID,
User user)
getEventGroupID
public int getEventGroupID(int eid)
throws java.lang.Exception
java.lang.Exception
getEventGroupID
public static int getEventGroupID(int eid,
DB db)
throws java.lang.Exception
java.lang.Exception
getInheritedEventCount
public int getInheritedEventCount()
throws java.lang.Exception
java.lang.Exception
getInheritedEventCount
public int getInheritedEventCount(DB db)
throws java.lang.Exception
java.lang.Exception
getInheritedEvents
public java.util.ArrayList getInheritedEvents()
throws java.lang.Exception
java.lang.Exception
getInheritedEvents
public java.util.ArrayList getInheritedEvents(DB db)
throws java.lang.Exception
java.lang.Exception
updateInheritedEvents
public int updateInheritedEvents()
throws java.lang.Exception
java.lang.Exception
updateInheritedEvents
public int updateInheritedEvents(DB db)
throws java.lang.Exception
java.lang.Exception
setDates
public void setDates()
throws java.lang.Exception
java.lang.Exception
setAttributes
public void setAttributes()
throws java.lang.Exception
java.lang.Exception
setPersons
public void setPersons()
throws java.lang.Exception
java.lang.Exception
setSpaces
public void setSpaces()
throws java.lang.Exception
java.lang.Exception
addPerson
public void addPerson(java.lang.String pid)
containsPerson
public boolean containsPerson(java.lang.String pid)
removePerson
public void removePerson(java.lang.String pid)
addEventPerson
public void addEventPerson(User user)
getEventPerson
public User getEventPerson(int i)
getAllEventPersons
public java.util.ArrayList getAllEventPersons()
getAllPersons
public java.util.ArrayList getAllPersons()
getAllPersonsInArray
public java.lang.Object[] getAllPersonsInArray()
addEventSpace
public void addEventSpace(Space space)
addAllEventSpaces
public void addAllEventSpaces(java.util.ArrayList spaces)
addAllSpaces
public void addAllSpaces(java.util.ArrayList spaces)
addAllSpaces
public void addAllSpaces(java.lang.String[] spaces)
addAllPersons
public void addAllPersons(java.lang.String[] persons)
getAllEventSpaces
public java.util.ArrayList getAllEventSpaces()
getAllSpaces
public java.util.ArrayList getAllSpaces()
getSpace
public Space getSpace(int i)
addSpace
public void addSpace(java.lang.String sid)
containsSpace
public boolean containsSpace(java.lang.String sid)
removeSpace
public void removeSpace(java.lang.String sid)
removeAllSpaces
public void removeAllSpaces()
removeAllPersons
public void removeAllPersons()
doSave
protected int doSave(java.lang.String set)
throws java.lang.Exception
java.lang.Exception
removeAllSpacesFromDB
public int removeAllSpacesFromDB(DB db)
throws java.lang.Exception
java.lang.Exception
removeAllPersonsFromDB
public int removeAllPersonsFromDB(DB db)
throws java.lang.Exception
java.lang.Exception
saveSpace
protected int saveSpace(int sid)
throws java.lang.Exception
java.lang.Exception
saveSpace
protected int saveSpace(int sid,
DB db)
throws java.lang.Exception
java.lang.Exception
savePerson
protected int savePerson(int pid)
throws java.lang.Exception
java.lang.Exception
savePerson
protected int savePerson(int pid,
DB db)
throws java.lang.Exception
java.lang.Exception
save
public int save()
throws java.lang.Exception
java.lang.Exception
save
public int save(DB db)
throws java.lang.Exception
java.lang.Exception