Class CxUserToSegmentModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class CxUserToSegmentModel
    extends ItemModel
    Generated model class for type CxUserToSegment first defined at extension personalizationservices.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • _CXSEGMENTTOUSERRELATION

        public static final java.lang.String _CXSEGMENTTOUSERRELATION
        Generated relation code constant for relation CxSegmentToUserRelation defining source attribute segment in extension personalizationservices.
        See Also:
        Constant Field Values
      • _CXUSERTOSEGMENTRELATION

        public static final java.lang.String _CXUSERTOSEGMENTRELATION
        Generated relation code constant for relation CxUserToSegmentRelation defining source attribute user in extension personalizationservices.
        See Also:
        Constant Field Values
      • PROVIDER

        public static final java.lang.String PROVIDER
        Generated constant - Attribute key of CxUserToSegment.provider attribute defined at extension personalizationservices.
        See Also:
        Constant Field Values
      • AFFINITY

        public static final java.lang.String AFFINITY
        Generated constant - Attribute key of CxUserToSegment.affinity attribute defined at extension personalizationservices.
        See Also:
        Constant Field Values
      • BASESITE

        public static final java.lang.String BASESITE
        Generated constant - Attribute key of CxUserToSegment.baseSite attribute defined at extension personalizationservices.
        See Also:
        Constant Field Values
      • SEGMENT

        public static final java.lang.String SEGMENT
        Generated constant - Attribute key of CxUserToSegment.segment attribute defined at extension personalizationservices.
        See Also:
        Constant Field Values
      • USER

        public static final java.lang.String USER
        Generated constant - Attribute key of CxUserToSegment.user attribute defined at extension personalizationservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CxUserToSegmentModel

        public CxUserToSegmentModel()
        Generated constructor - Default constructor for generic creation.
      • CxUserToSegmentModel

        public CxUserToSegmentModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • CxUserToSegmentModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public CxUserToSegmentModel​(java.math.BigDecimal _affinity,
                                    CxSegmentModel _segment,
                                    UserModel _user)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - Constructor with all mandatory attributes.
        Parameters:
        _affinity - initial attribute declared by type CxUserToSegment at extension personalizationservices
        _segment - initial attribute declared by type CxUserToSegment at extension personalizationservices
        _user - initial attribute declared by type CxUserToSegment at extension personalizationservices
      • CxUserToSegmentModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public CxUserToSegmentModel​(java.math.BigDecimal _affinity,
                                    ItemModel _owner,
                                    CxSegmentModel _segment,
                                    UserModel _user)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - for all mandatory and initial attributes.
        Parameters:
        _affinity - initial attribute declared by type CxUserToSegment at extension personalizationservices
        _owner - initial attribute declared by type Item at extension core
        _segment - initial attribute declared by type CxUserToSegment at extension personalizationservices
        _user - initial attribute declared by type CxUserToSegment at extension personalizationservices
    • Method Detail

      • getAffinity

        @Accessor(qualifier="affinity",
                  type=GETTER)
        public java.math.BigDecimal getAffinity()
        Generated method - Getter of the CxUserToSegment.affinity attribute defined at extension personalizationservices.
        Returns:
        the affinity - The affinity of relation between user and segment. Range [0-1]
      • getBaseSite

        @Accessor(qualifier="baseSite",
                  type=GETTER)
        public BaseSiteModel getBaseSite()
        Generated method - Getter of the CxUserToSegment.baseSite attribute defined at extension personalizationservices.
        Returns:
        the baseSite - BaseSite for which this relation is valid
      • getProvider

        @Accessor(qualifier="provider",
                  type=GETTER)
        public java.lang.String getProvider()
        Generated method - Getter of the CxUserToSegment.provider attribute defined at extension personalizationservices.
        Returns:
        the provider - Source from which segment assignemt was read e.g. yprofile system
      • getSegment

        @Accessor(qualifier="segment",
                  type=GETTER)
        public CxSegmentModel getSegment()
        Generated method - Getter of the CxUserToSegment.segment attribute defined at extension personalizationservices.
        Returns:
        the segment
      • getUser

        @Accessor(qualifier="user",
                  type=GETTER)
        public UserModel getUser()
        Generated method - Getter of the CxUserToSegment.user attribute defined at extension personalizationservices.
        Returns:
        the user
      • setAffinity

        @Accessor(qualifier="affinity",
                  type=SETTER)
        public void setAffinity​(java.math.BigDecimal value)
        Generated method - Setter of CxUserToSegment.affinity attribute defined at extension personalizationservices.
        Parameters:
        value - the affinity - The affinity of relation between user and segment. Range [0-1]
      • setBaseSite

        @Accessor(qualifier="baseSite",
                  type=SETTER)
        public void setBaseSite​(BaseSiteModel value)
        Generated method - Setter of CxUserToSegment.baseSite attribute defined at extension personalizationservices.
        Parameters:
        value - the baseSite - BaseSite for which this relation is valid
      • setProvider

        @Accessor(qualifier="provider",
                  type=SETTER)
        public void setProvider​(java.lang.String value)
        Generated method - Setter of CxUserToSegment.provider attribute defined at extension personalizationservices.
        Parameters:
        value - the provider - Source from which segment assignemt was read e.g. yprofile system
      • setSegment

        @Accessor(qualifier="segment",
                  type=SETTER)
        public void setSegment​(CxSegmentModel value)
        Generated method - Setter of CxUserToSegment.segment attribute defined at extension personalizationservices.
        Parameters:
        value - the segment
      • setUser

        @Accessor(qualifier="user",
                  type=SETTER)
        public void setUser​(UserModel value)
        Generated method - Setter of CxUserToSegment.user attribute defined at extension personalizationservices.
        Parameters:
        value - the user