Class MailAccount


  • public class MailAccount
    extends java.lang.Object
    Author:
    Jean-Philippe Encausse
    • Field Detail

      • name

        protected java.lang.String name
      • label

        protected java.lang.String label
      • mbox

        protected java.lang.String mbox
      • schedule

        protected java.lang.String schedule
      • enabled

        protected boolean enabled
      • expunge

        protected boolean expunge
      • author

        protected Member author
      • expungeSet

        protected java.util.Set<java.lang.String> expungeSet
      • fetchDate

        protected long fetchDate
      • fetchCount

        protected int fetchCount
    • Constructor Detail

      • MailAccount

        public MailAccount()
      • MailAccount

        protected MailAccount​(java.lang.String name,
                              java.lang.String label,
                              Member author,
                              Workspace ws,
                              AbstractMailProvider provider,
                              java.lang.String mbox,
                              java.lang.String schedule,
                              boolean expunge)
    • Method Detail

      • getPropertyFile

        protected java.io.File getPropertyFile()
      • loadProperties

        protected void loadProperties()
      • saveProperties

        protected void saveProperties()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isEnabled

        public boolean isEnabled()
        Retuns true if this account is enable
        Returns:
        boolean
      • getDBMailMessageCount

        public int getDBMailMessageCount()
        Returns the count of DBMailMessage stored in DataBase for this account
        Returns:
        int DB count
      • getLastFetchDate

        public java.util.Date getLastFetchDate()
        Returns Date of latest fetch with this account
        Returns:
        Date last fetch
      • getLastFetchCount

        public int getLastFetchCount()
        Returns the number of mail fetched on latest fetch with this account
        Returns:
        int fetch count
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getLabel

        public java.lang.String getLabel()
      • setLabel

        public void setLabel​(java.lang.String label)
      • getAuthor

        public Member getAuthor()
      • setAuthor

        public void setAuthor​(Member author)
      • getWorkspace

        public Workspace getWorkspace()
      • setWorkspace

        public void setWorkspace​(Workspace ws)
      • getMbox

        public java.lang.String getMbox()
      • setMbox

        public void setMbox​(java.lang.String mbox)
      • getSchedule

        public java.lang.String getSchedule()
      • setSchedule

        public void setSchedule​(java.lang.String schedule)
      • isExpunged

        public boolean isExpunged()
      • setExpunge

        public void setExpunge​(boolean expunge)
      • getProviderName

        public java.lang.String getProviderName()