kotkabeans
Class EmailListItem

java.lang.Object
  |
  +--kotkabeans.EmailListItem

public class EmailListItem
extends java.lang.Object

This bean containes general information of a single emaillist


Constructor Summary
EmailListItem()
          Empty Constructor
 
Method Summary
 void add(EmailListParticipant p)
           
 void add(EmailListParticipant p, boolean makeCheck)
           
 void addBaseGroup(java.lang.String newGroup)
           
 boolean allCourseSelected()
           
 boolean anyAutoJoinSelected()
           
 EmailListParticipant get(int i)
           
 java.lang.String getAddInfo()
           
 java.lang.String getAddress(int pid)
           
 boolean getAllowAccept()
           
 boolean getAllowApplication()
           
 boolean getAllowAttach()
           
 boolean getAllowDist()
           
 int getAllowed()
           
 java.lang.String getAllowed(int i)
           
 void getAllowedSenders()
          Get list's allowed senders
 boolean getAllowExit()
           
 boolean getAllowHtml()
           
 boolean getAllowSend()
           
 boolean getAllowSendFromDB(int type)
           
 void getArchiveInfo()
          Method to get mailing list's archive info from database
 java.lang.String getArchiveLabel()
          Archive methods Get Label of Archive, return empty string if not defined
 java.lang.String getArchiveLang()
          Archive methods Get language used in the Archive, return 'fi' if not defined
 java.lang.String getArchiveLink()
           
 java.lang.String getArchiveName()
           
 java.lang.String getArchiveOption(int index)
          Archive methods Return value of archivevalue corresponding specified index.
 java.lang.String getArchiveOptionID(int index)
          Archive methods Return id of archive value corresponding specified index.
 int getArchiveOptions()
          Archive methods Return number of user defined options in specific archive.
 int getArchiveType()
           
 boolean getAutoJoin()
           
 java.lang.String getBaseGroup()
           
 java.lang.String getBaseName()
           
 boolean getDeleted()
           
 java.lang.String getDescription()
           
 java.lang.String getEmailAddress()
           
 java.lang.String getHostName()
           
 int getID()
           
 java.lang.String getLastUpdated()
           
 java.lang.String getLinkToArchive()
           
 java.lang.String getLinkToArchive(boolean realMethod)
           
 java.lang.String getName()
           
 int getNameSpace()
           
 int getNotifications()
           
 int getOID()
           
 java.util.Vector getOrganisationIDs()
           
 java.lang.String getOwner()
           
 int getParticipants()
           
 boolean getParticipation()
           
 boolean getSaveMail()
           
 java.lang.String getSignature()
           
 EmailListParticipant getStudentInfo(int personid)
           
 boolean hasGroupInAutoUpdates(java.lang.String id)
           
 boolean isArchivePublic()
           
 boolean isArchiveSecret()
           
 boolean isParticipant(int pid)
           
static java.lang.String makeLinkToArchive(int archivetype, java.lang.String listname, java.lang.String archivename)
          External methods to get archive link
static java.lang.String makeLinkToArchive(int archivetype, java.lang.String listname, java.lang.String archivename, boolean realMethod)
           
 boolean noGroupSelected()
           
 void printParticipantsOptionList(javax.servlet.jsp.JspWriter out, User user)
           
 void setAdditionalInfo(java.lang.String a)
           
 void setAllowApplication(boolean s)
           
 void setAllowAttach(boolean a)
           
 void setAllowExit(boolean a)
           
 void setAllowHtml(boolean a)
           
 void setAllowSend(boolean s)
           
 void setArchiveType(int s)
           
 void setAutoJoin(boolean a)
           
 void setBaseGroup(java.lang.String b)
           
 void setDeleted(boolean d)
           
 void setDescription(java.lang.String d)
           
 void setEmailAddress(java.lang.String address)
           
 void setID(int id)
           
 void setLastUpdated(java.lang.String updated)
           
 void setName(java.lang.String n)
           
 void setNameSpace(int id)
           
 void setNotifications(int value)
          these are for sendin email messages to maintainer when there are changes in mailing list
 void setOID(int id)
           
 void setOwner(java.lang.String b)
           
 void setParticipation(boolean p)
           
 void setSignature(java.lang.String s)
          The signatire to be used at the bottom of every email that has been sent to the list
 void sortParticipants()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailListItem

public EmailListItem()
Empty Constructor

Method Detail

setDeleted

public void setDeleted(boolean d)

getDeleted

public boolean getDeleted()

setID

public void setID(int id)

getID

public int getID()

setName

public void setName(java.lang.String n)

getName

public java.lang.String getName()

getBaseName

public java.lang.String getBaseName()

getHostName

public java.lang.String getHostName()

setNameSpace

public void setNameSpace(int id)

getNameSpace

public int getNameSpace()

setBaseGroup

public void setBaseGroup(java.lang.String b)

addBaseGroup

public void addBaseGroup(java.lang.String newGroup)

getBaseGroup

public java.lang.String getBaseGroup()

hasGroupInAutoUpdates

public boolean hasGroupInAutoUpdates(java.lang.String id)

noGroupSelected

public boolean noGroupSelected()

allCourseSelected

public boolean allCourseSelected()
                          throws java.lang.Exception
java.lang.Exception

anyAutoJoinSelected

public boolean anyAutoJoinSelected()
                            throws java.lang.Exception
java.lang.Exception

getAllowDist

public boolean getAllowDist()
                     throws java.lang.Exception
java.lang.Exception

getAllowAccept

public boolean getAllowAccept()
                       throws java.lang.Exception
java.lang.Exception

setOwner

public void setOwner(java.lang.String b)

getOwner

public java.lang.String getOwner()

setOID

public void setOID(int id)

getOID

public int getOID()

setDescription

public void setDescription(java.lang.String d)

getDescription

public java.lang.String getDescription()

setSignature

public void setSignature(java.lang.String s)
The signatire to be used at the bottom of every email that has been sent to the list


getSignature

public java.lang.String getSignature()

setParticipation

public void setParticipation(boolean p)

getParticipation

public boolean getParticipation()

setEmailAddress

public void setEmailAddress(java.lang.String address)

getEmailAddress

public java.lang.String getEmailAddress()

setLastUpdated

public void setLastUpdated(java.lang.String updated)

getLastUpdated

public java.lang.String getLastUpdated()

setAutoJoin

public void setAutoJoin(boolean a)

getAutoJoin

public boolean getAutoJoin()

setAllowExit

public void setAllowExit(boolean a)

getAllowExit

public boolean getAllowExit()

setAllowAttach

public void setAllowAttach(boolean a)

getAllowAttach

public boolean getAllowAttach()

setAllowHtml

public void setAllowHtml(boolean a)

getAllowHtml

public boolean getAllowHtml()

setAllowSend

public void setAllowSend(boolean s)

getAllowSend

public boolean getAllowSend()

getAllowSendFromDB

public boolean getAllowSendFromDB(int type)

setAllowApplication

public void setAllowApplication(boolean s)

getAllowApplication

public boolean getAllowApplication()

setArchiveType

public void setArchiveType(int s)

getSaveMail

public boolean getSaveMail()

getArchiveType

public int getArchiveType()

setAdditionalInfo

public void setAdditionalInfo(java.lang.String a)

getAddInfo

public java.lang.String getAddInfo()

getArchiveLabel

public java.lang.String getArchiveLabel()
Archive methods Get Label of Archive, return empty string if not defined


getArchiveLink

public java.lang.String getArchiveLink()

getArchiveName

public java.lang.String getArchiveName()

getArchiveLang

public java.lang.String getArchiveLang()
Archive methods Get language used in the Archive, return 'fi' if not defined


getArchiveOptions

public int getArchiveOptions()
Archive methods Return number of user defined options in specific archive.


getArchiveOptionID

public java.lang.String getArchiveOptionID(int index)
Archive methods Return id of archive value corresponding specified index.


getArchiveOption

public java.lang.String getArchiveOption(int index)
Archive methods Return value of archivevalue corresponding specified index.


add

public void add(EmailListParticipant p)

add

public void add(EmailListParticipant p,
                boolean makeCheck)

sortParticipants

public void sortParticipants()

getParticipants

public int getParticipants()

get

public EmailListParticipant get(int i)

isParticipant

public boolean isParticipant(int pid)

getAddress

public java.lang.String getAddress(int pid)

isArchivePublic

public boolean isArchivePublic()

isArchiveSecret

public boolean isArchiveSecret()

getLinkToArchive

public java.lang.String getLinkToArchive()
                                  throws java.lang.Exception
java.lang.Exception

getLinkToArchive

public java.lang.String getLinkToArchive(boolean realMethod)
                                  throws java.lang.Exception
java.lang.Exception

makeLinkToArchive

public static java.lang.String makeLinkToArchive(int archivetype,
                                                 java.lang.String listname,
                                                 java.lang.String archivename)
                                          throws java.lang.Exception
External methods to get archive link

java.lang.Exception

makeLinkToArchive

public static java.lang.String makeLinkToArchive(int archivetype,
                                                 java.lang.String listname,
                                                 java.lang.String archivename,
                                                 boolean realMethod)
                                          throws java.lang.Exception
java.lang.Exception

printParticipantsOptionList

public void printParticipantsOptionList(javax.servlet.jsp.JspWriter out,
                                        User user)
                                 throws java.lang.Exception
java.lang.Exception

getArchiveInfo

public void getArchiveInfo()
                    throws java.lang.Exception
Method to get mailing list's archive info from database

java.lang.Exception

getAllowedSenders

public void getAllowedSenders()
                       throws java.lang.Exception
Get list's allowed senders

java.lang.Exception

getAllowed

public java.lang.String getAllowed(int i)
                            throws java.lang.Exception
java.lang.Exception

getAllowed

public int getAllowed()

getStudentInfo

public EmailListParticipant getStudentInfo(int personid)
                                    throws java.lang.Exception
java.lang.Exception

setNotifications

public void setNotifications(int value)
these are for sendin email messages to maintainer when there are changes in mailing list


getNotifications

public int getNotifications()

getOrganisationIDs

public java.util.Vector getOrganisationIDs()