concept.structure
Class Presenter

public class Presenter

Title: Presenter

Description: Presenter -class containing all the attributes and methods directly affecting presenters

Copyright: Copyright (c) 2006
CONCEPT-lisenssi Tekijänoikeus (c) 2006, Pekka Kuuva, Tatu Repo, Pasi Saari, Anna Seppänen. Kaikki oikeudet pidätetään. Tämän ohjelmiston levittäminen ja käyttö lähdekoodina ja binäärinä, muutettuna tai muuttamattomana, on sallittu edellyttäen, että seuraavat ehdot täytetään: 1. OHJELMISTON LEVITTÄMINEN Lähdekoodikopioissa, dokumentaatiossa ja muussa ohjelmiston mukana tulevassa aineistossa on oltava tämä lisenssi kokonaisuudessaan. 1.2. VIENTIRAJOITUKSET Ohjelmistoa tai sen osia ei saa viedä Amerikan Yhdysvaltoihin ilman tekijöiden erillistä suostumusta. 2. OHJELMISTON KÄYTTÖ (EULA) 2.1 KÄYTTÖEHDOT Ohjelmiston käyttäjän tulee joskus suorittaa vähintään yksi seuraavista toimista: a) Tarjota omalla kustannuksellaan olut tasokkaassa ravintolassa, pubissa tai muussa vastaavassa anniskelua harjoittavassa liikkeessä kullekin tekijöistä, sekä ilmoittaa tästä tarjouksesta. b) Tarjota tekijöille omalla kustannuksellaan pääsy tapahtumaan, jonka yhteydessä sovellusta on käytetty, ja ilmoittaa tästä tarjouksesta tekijöille. Ilmoittamisella tarkoitetaan vähintään viikkoa ennen tarjouk- sen täytäntöönpanoa tekijöille lähetettyä sähköpostia, jossa ilmoitetaan ohjelmiston käyttäjän nimi ja yhteystiedot sekä tarjous ja sen ajankohta. Jos käyttöehdot eivät ole täyttyneet, ohjelmistoa ei saa käyttää. 2.1. TAKUU Tekijänoikeuden haltijat ja ohjelmiston kehittäjät tarjoavat tämän ohjelmiston "sellaisena kuin se on". Sovellukselle ei myönnetä minkäänlaista takuuta kaupallisesti hyväksyttävästä laadusta eikä sen taata soveltuvan mihinkään tarkoitukseen. 2.2. VASTUUNRAJOITUS Tekijänoikeuden haltija ja ohjelmiston kehittäjät eivät ole missään tilanteessa vastuussa suorista, epäsuorista, yleisistä, erityisistä, satunnaisista tai seurauksellisista vahingoista (sisältäen, muttei tyhjentävästi, korvaavan tuotteen tai palvelun hankinnan, käyttömahdollisuuden, tiedon tai voittojen menetykset, tai liiketoiminnan keskeytymisen), jotka aiheutuvat miten tahansa ja millä tahansa vahingonkorvausoikeudellisella perusteella mukaanlukien sopimusvastuu, ankara vastuu ja sopimuksen ulkoinen vastuu (huolimattomuus tai muu), vaikka kyseisten vahinkojen mahdollisuudesta olisi kerrottu.

Version:
1.0
Author:
TR
Method Detail

addChairmanDuty

public boolean addChairmanDuty(concept.structure.Session link,
                               int orderNum)
Adds a chairmanduty to this chairman if the topic of the given session is compatible and this chairman has chairmanduties left.
Parameters:
link - Session The given session.
orderNum - int The given ordernumber.
Returns:
boolean Return whether the operation was successful.

addChairmanDutyFromDB

public boolean addChairmanDutyFromDB(concept.structure.Session link,
                                     int orderNum)
Adds a chairmanduty to this chairman if the topic of the given session is compatible and this chairman has chairmanduties left. Also handles linking on the sessionside. This method is for the Jdbc-class' read-methods.
Parameters:
link - Session The given session
orderNum - int The given ordernumber.
Returns:
boolean Returns whether the operation was successful.

removePresentationLink

public boolean removePresentationLink(concept.structure.Presentation link)
Removes the presentationduty of this presenter on the given presentation.
Parameters:
link - Presentation The given presentation.
Returns:
boolean returns whether the operation was successful.

removeChairmanDuty

public boolean removeChairmanDuty(concept.structure.Session link)
Removes the chairmanduty corresponding the given session.
Parameters:
link - Session The given session.
Returns:
boolean Returns whether the operation was successful.

getChairmanDutyBySession

public concept.structure.ChairmanDuty getChairmanDutyBySession(concept.structure.Session link)
Returns the chairmanduty corresponding to the given session.
Parameters:
link - Session The given session.
Returns:
ChairmanDuty The chairmanduty found or null.

compareRestrictionsWithRestriction

public java.util.Vector compareRestrictionsWithRestriction(concept.structure.ScheduleRestriction restr,
                                                           concept.structure.Session link)
Compares the given restriction against all the restrictions of this presenter. Ignores restrictions caused by the given session.
Parameters:
restr - ScheduleRestriction the given restriction.
link - Session The given session.
Returns:
Vector Returns found conflicts.

compareRestrictionsWithTime

public java.util.Vector compareRestrictionsWithTime(long start,
                                                    long end,
                                                    concept.structure.Session link)
Compares all the restrictions of this presenter against a dummy-restriction created from the parameters. Ignores restrictions caused by the given session.
Parameters:
start - long The starttime of the dummy-restriction.
end - long long The endtime of the dummy-restriction.
link - Session The given session.
Returns:
Vector Returns found conflicts.

addRcbs

public concept.structure.ScheduleRestriction addRcbs(concept.structure.Session session)
Adds a restriction caused by the given session.
Parameters:
session - Session The given session.
Returns:
ScheduleRestriction Returns the created restriction.

getRcbs

public concept.structure.ScheduleRestriction getRcbs(concept.structure.Session session)
Returns the first instance of restrictions caused by the given session.
Parameters:
session - Session The given session.
Returns:
ScheduleRestriction Returns the found restriction or null.

removeRestrictionsByRcbs

public boolean removeRestrictionsByRcbs(concept.structure.Session session)
Removes all the restrictions caused by the given session from this presenter.
Parameters:
session - Session The given session.
Returns:
boolean Returns whether the operation was successful.

addPresentationLink

public boolean addPresentationLink(concept.structure.Presentation link)
Adds a presentationduty corresponding the given presentation.
Parameters:
link - Presentation The given session.
Returns:
boolean Returns whether the operation was successful.

addPresentationLinkFromDB

public boolean addPresentationLinkFromDB(concept.structure.Presentation link)
Adds a presentationduty corresponding the given presentation. For the Jdbc-class' read-methods.
Parameters:
link - Presentation The given presentation.
Returns:
boolean Returns whether the operation was successful.

containsPresentationLink

public boolean containsPresentationLink(concept.structure.Presentation link)
Returns whether this presenter is a presenter at a given presentation.
Parameters:
link - Presentation The given presentation.
Returns:
boolean Returns whether this presenter is a presenter at a given presentation.