com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MapiTask

    • Constructor Detail

      • MapiTask

        public MapiTask()

        Initializes a new instance of the MapiTask class.

      • MapiTask

        public MapiTask(String subject,
                String body,
                Date startDate,
                Date dueDate)

        Initializes a new instance of the MapiTask class.

        Parameters:
        subject - The subject.
        body - The message body.
        startDate - The start date.
        dueDate - The due date.
    • Method Detail

      • getPercentComplete

        public int getPercentComplete()

        Gets or sets the progress the user has made on a task.

      • setPercentComplete

        public void setPercentComplete(int value)

        Gets or sets the progress the user has made on a task.

      • getActualEffort

        public int getActualEffort()

        Gets or sets the number of minutes that the user actually spent working on a task.

      • setActualEffort

        public void setActualEffort(int value)

        Gets or sets the number of minutes that the user actually spent working on a task.

      • getEstimatedEffort

        public int getEstimatedEffort()

        Gets or sets the number of minutes that the user expects to work on a task.

      • setEstimatedEffort

        public void setEstimatedEffort(int value)

        Gets or sets the number of minutes that the user expects to work on a task.

      • getDueDate

        public Date getDueDate()

        Gets or sets the date by which the user expects work on the task to be complete.

        Returns:
        a Date object.
      • setDueDate

        public void setDueDate(Date value)

        Gets or sets the date by which the user expects work on the task to be complete.

        Parameters:
        value - a Date object.
      • getStartDate

        public Date getStartDate()

        Gets or sets the date on which the user expects work on the task to begin.

        Returns:
        a Date object.
        Throws:
        com.aspose.ms.System.ArgumentException - trows when start date is greater than date completed.
      • setStartDate

        public void setStartDate(Date value)

        Gets or sets the date on which the user expects work on the task to begin.

        Parameters:
        value - a Date object.
        Throws:
        com.aspose.ms.System.ArgumentException - trows when start date is greater than date completed.
      • getDateCompleted

        public Date getDateCompleted()

        Gets or sets the date when the user completed work on the task.

        Returns:
        a Date object.
        Throws:
        com.aspose.ms.System.ArgumentException - throws when start date is less than date completed.
      • setDateCompleted

        public void setDateCompleted(Date value)

        Gets or sets the date when the user completed work on the task.

        Parameters:
        value - a Date object.
        Throws:
        com.aspose.ms.System.ArgumentException - trows when start date is less than date completed.
      • getLastUpdate

        public Date getLastUpdate()

        Gets or sets the date and time of the most recent change made to the Task object.

        Returns:
        a Date object.
      • setLastUpdate

        public void setLastUpdate(Date value)

        Gets or sets the date and time of the most recent change made to the Task object.

        Parameters:
        value - a Date object.
      • getHistory

        public int getHistory()

        Gets or sets the type of change that was last made to the Task object.

      • setHistory

        public void setHistory(int value)

        Gets or sets the type of change that was last made to the Task object.

      • getUsers

        public MapiTaskUsers getUsers()

        Gets or sets information about task users.

      • setUsers

        public void setUsers(MapiTaskUsers value)

        Gets or sets information about task users.

      • getStatus

        public int getStatus()

        Gets or sets the status of the user's progress on the task.

      • setStatus

        public void setStatus(int value)

        Gets or sets the status of the user's progress on the task.

      • getMode

        public int getMode()

        Gets or sets the assignment status of the Task object.

      • setMode

        public void setMode(int value)

        Gets or sets the assignment status of the Task object.

      • getState

        public int getState()

        Gets or sets the current assignment state of the Task object.

      • setState

        public void setState(int value)

        Gets or sets the current assignment state of the Task object.

      • getAcceptanceState

        public int getAcceptanceState()

        Gets or sets the acceptance state of the task.

      • setAcceptanceState

        public void setAcceptanceState(int value)

        Gets or sets the acceptance state of the task.

      • getFlags

        public int getFlags()

        Gets the indication flags of the Task object.

      • getReminderTime

        public Date getReminderTime()

        Gets or sets the initial signal time for a reminder

      • setReminderTime

        public void setReminderTime(Date value)

        Gets or sets the initial signal time for a reminder

      • getReminderSet

        public boolean getReminderSet()

        Gets or sets a value indicating whether a reminder is set on the object

      • setReminderSet

        public void setReminderSet(boolean value)

        Gets or sets a value indicating whether a reminder is set on the object

      • getReminderFileParameter

        public String getReminderFileParameter()

        Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue.

      • setReminderFileParameter

        public void setReminderFileParameter(String value)

        Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue.

      • save

        public void save(OutputStream stream,
                int saveFormat)

        Saves this MapiTask to the given stream using specified format.

      • save

        public void save(String filePath,
                int saveFormat)

        Saves this MapiTask into file using specified format.

      • fromVTodo

        public static MapiTask fromVTodo(String filePath)

        Creates an instance of MapiTask from the specified .ics file.

        Parameters:
        filePath - The path to the file to be loaded.
        Returns:
        Returns a MapiTask instance which is loaded from the specified file.
      • fromVTodo

        public static MapiTask fromVTodo(String filePath,
                         boolean detectEncoding)

        Creates an instance of MapiTask from the specified .ics file.

        Parameters:
        filePath - The path to the file to be loaded.
        detectEncoding - Determines a data encoding by analyzing its byte order mark (BOM)
        Returns:
        Returns a MapiTask instance which is loaded from the specified file.
      • fromVTodo

        public static MapiTask fromVTodo(InputStream stream)

        Creates an instance of MapiTask from the specified stream.

        Parameters:
        stream - The stream to be loaded.
        Returns:
        Returns a MapiTask instance which is loaded from the specified stream.
      • fromVTodo

        public static MapiTask fromVTodo(InputStream stream,
                         boolean detectEncoding)

        Creates an instance of MapiTask from the specified stream.

        Parameters:
        stream - The stream to be loaded.
        detectEncoding - Determines a data encoding by analyzing its byte order mark (BOM)
        Returns:
        Returns a MapiTask instance which is loaded from the specified stream.