com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MapiNamedPropertyMappingStorage



  • public final class MapiNamedPropertyMappingStorage
    extends MapiPropertyContainer

    Represents the named property mapping

    • Constructor Detail

      • MapiNamedPropertyMappingStorage

        public MapiNamedPropertyMappingStorage()

        Initializes a new instance of the MapiNamedPropertyMappingStorage class.

    • Method Detail

      • getName

        public String getName()

        Gets the name

        Value: The name
      • getContent

        public Object getContent()

        Gets the content

        Value: The content
      • setProperty

        public void setProperty(MapiProperty property)

        Sets the property.

        Specified by:
        setProperty in class MapiPropertyContainer
        Parameters:
        property - The MapiProperty.
        Throws:
        com.aspose.ms.System.NotImplementedException
      • getNextAvailablePropertyId

        public long getNextAvailablePropertyId(int dataType)

        Gets the next available property id in entries stream based on property datatype.

        Parameters:
        dataType - Type of the data for the property.
        Returns:
        An id that can be lately used to add property mapping.
      • addNamedPropertyMapping

        public void addNamedPropertyMapping(MapiProperty property,
                                   long nameId,
                                   UUID guid)

        Adds the named property mapping for numeric named property.

        Parameters:
        property - The property to add mapping for.
        nameId - The name id.
        guid - The GUID identifying property set.


        property should have a valid id for named property, GetNextAvailablePropertyId can be used to generate one. Otherwise an exception will be thrown.

        <exceptions> {@code ArgumentNullException} if {@code property} is null. {@code ArgumentException} if {@code MapiProperty.Tag} can'be used for named property mapping. The range for named property identifiers is between 0x8000 and 0xFFFE. </exceptions>
      • addNamedPropertyMapping

        public void addNamedPropertyMapping(MapiProperty property,
                                   String nameId,
                                   UUID guid)

        Adds the named property mapping for string named property.

        Parameters:
        property - The property to add mapping for.
        nameId - The name id.
        guid - The GUID identifying property set.


        property should have a valid id for named property, GetNextAvailablePropertyId can be used to generate one. Otherwise an exception will be thrown.

        <exceptions> {@code ArgumentNullException} if nameId is null. {@code ArgumentNullException} if {@code property} is null. {@code ArgumentException} if {@code MapiProperty.Tag} can'be used for named property mapping. The range for named property identifiers is between 0x8000 and 0xFFFE. </exceptions>