Class GeneratedGigyaFieldMapping

    • Field Detail

      • CODE

        public static final java.lang.String CODE
        Qualifier of the GigyaFieldMapping.code attribute
        See Also:
        Constant Field Values
      • SYNCDIRECTION

        public static final java.lang.String SYNCDIRECTION
        Qualifier of the GigyaFieldMapping.syncDirection attribute
        See Also:
        Constant Field Values
      • HYBRISATTRIBUTENAME

        public static final java.lang.String HYBRISATTRIBUTENAME
        Qualifier of the GigyaFieldMapping.hybrisAttributeName attribute
        See Also:
        Constant Field Values
      • GIGYAATTRIBUTENAME

        public static final java.lang.String GIGYAATTRIBUTENAME
        Qualifier of the GigyaFieldMapping.gigyaAttributeName attribute
        See Also:
        Constant Field Values
      • HYBRISTYPE

        public static final java.lang.String HYBRISTYPE
        Qualifier of the GigyaFieldMapping.hybrisType attribute
        See Also:
        Constant Field Values
      • CUSTOM

        public static final java.lang.String CUSTOM
        Qualifier of the GigyaFieldMapping.custom attribute
        See Also:
        Constant Field Values
      • GIGYACONFIG

        public static final java.lang.String GIGYACONFIG
        Qualifier of the GigyaFieldMapping.gigyaConfig attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedGigyaFieldMapping

        public GeneratedGigyaFieldMapping()
    • Method Detail

      • getCode

        public java.lang.String getCode​(SessionContext ctx)
        Generated method - Getter of the GigyaFieldMapping.code attribute.
        Returns:
        the code
      • getCode

        public java.lang.String getCode()
        Generated method - Getter of the GigyaFieldMapping.code attribute.
        Returns:
        the code
      • setCode

        public void setCode​(SessionContext ctx,
                            java.lang.String value)
        Generated method - Setter of the GigyaFieldMapping.code attribute.
        Parameters:
        value - the code
      • setCode

        public void setCode​(java.lang.String value)
        Generated method - Setter of the GigyaFieldMapping.code attribute.
        Parameters:
        value - the code
      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • isCustom

        public java.lang.Boolean isCustom​(SessionContext ctx)
        Generated method - Getter of the GigyaFieldMapping.custom attribute.
        Returns:
        the custom
      • isCustom

        public java.lang.Boolean isCustom()
        Generated method - Getter of the GigyaFieldMapping.custom attribute.
        Returns:
        the custom
      • isCustomAsPrimitive

        public boolean isCustomAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the GigyaFieldMapping.custom attribute.
        Returns:
        the custom
      • isCustomAsPrimitive

        public boolean isCustomAsPrimitive()
        Generated method - Getter of the GigyaFieldMapping.custom attribute.
        Returns:
        the custom
      • setCustom

        protected void setCustom​(SessionContext ctx,
                                 java.lang.Boolean value)
        Generated method - Setter of the GigyaFieldMapping.custom attribute.
        Parameters:
        value - the custom
      • setCustom

        protected void setCustom​(java.lang.Boolean value)
        Generated method - Setter of the GigyaFieldMapping.custom attribute.
        Parameters:
        value - the custom
      • setCustom

        protected void setCustom​(SessionContext ctx,
                                 boolean value)
        Generated method - Setter of the GigyaFieldMapping.custom attribute.
        Parameters:
        value - the custom
      • setCustom

        protected void setCustom​(boolean value)
        Generated method - Setter of the GigyaFieldMapping.custom attribute.
        Parameters:
        value - the custom
      • getGigyaAttributeName

        public java.lang.String getGigyaAttributeName​(SessionContext ctx)
        Generated method - Getter of the GigyaFieldMapping.gigyaAttributeName attribute.
        Returns:
        the gigyaAttributeName
      • getGigyaAttributeName

        public java.lang.String getGigyaAttributeName()
        Generated method - Getter of the GigyaFieldMapping.gigyaAttributeName attribute.
        Returns:
        the gigyaAttributeName
      • setGigyaAttributeName

        protected void setGigyaAttributeName​(SessionContext ctx,
                                             java.lang.String value)
        Generated method - Setter of the GigyaFieldMapping.gigyaAttributeName attribute.
        Parameters:
        value - the gigyaAttributeName
      • setGigyaAttributeName

        protected void setGigyaAttributeName​(java.lang.String value)
        Generated method - Setter of the GigyaFieldMapping.gigyaAttributeName attribute.
        Parameters:
        value - the gigyaAttributeName
      • getGigyaConfig

        public GigyaConfig getGigyaConfig​(SessionContext ctx)
        Generated method - Getter of the GigyaFieldMapping.gigyaConfig attribute.
        Returns:
        the gigyaConfig
      • getGigyaConfig

        public GigyaConfig getGigyaConfig()
        Generated method - Getter of the GigyaFieldMapping.gigyaConfig attribute.
        Returns:
        the gigyaConfig
      • setGigyaConfig

        public void setGigyaConfig​(SessionContext ctx,
                                   GigyaConfig value)
        Generated method - Setter of the GigyaFieldMapping.gigyaConfig attribute.
        Parameters:
        value - the gigyaConfig
      • setGigyaConfig

        public void setGigyaConfig​(GigyaConfig value)
        Generated method - Setter of the GigyaFieldMapping.gigyaConfig attribute.
        Parameters:
        value - the gigyaConfig
      • getHybrisAttributeName

        public java.lang.String getHybrisAttributeName​(SessionContext ctx)
        Generated method - Getter of the GigyaFieldMapping.hybrisAttributeName attribute.
        Returns:
        the hybrisAttributeName
      • getHybrisAttributeName

        public java.lang.String getHybrisAttributeName()
        Generated method - Getter of the GigyaFieldMapping.hybrisAttributeName attribute.
        Returns:
        the hybrisAttributeName
      • setHybrisAttributeName

        protected void setHybrisAttributeName​(SessionContext ctx,
                                              java.lang.String value)
        Generated method - Setter of the GigyaFieldMapping.hybrisAttributeName attribute.
        Parameters:
        value - the hybrisAttributeName
      • setHybrisAttributeName

        protected void setHybrisAttributeName​(java.lang.String value)
        Generated method - Setter of the GigyaFieldMapping.hybrisAttributeName attribute.
        Parameters:
        value - the hybrisAttributeName
      • getHybrisType

        public EnumerationValue getHybrisType​(SessionContext ctx)
        Generated method - Getter of the GigyaFieldMapping.hybrisType attribute.
        Returns:
        the hybrisType
      • getHybrisType

        public EnumerationValue getHybrisType()
        Generated method - Getter of the GigyaFieldMapping.hybrisType attribute.
        Returns:
        the hybrisType
      • setHybrisType

        protected void setHybrisType​(SessionContext ctx,
                                     EnumerationValue value)
        Generated method - Setter of the GigyaFieldMapping.hybrisType attribute.
        Parameters:
        value - the hybrisType
      • setHybrisType

        protected void setHybrisType​(EnumerationValue value)
        Generated method - Setter of the GigyaFieldMapping.hybrisType attribute.
        Parameters:
        value - the hybrisType
      • getSyncDirection

        public EnumerationValue getSyncDirection​(SessionContext ctx)
        Generated method - Getter of the GigyaFieldMapping.syncDirection attribute.
        Returns:
        the syncDirection
      • getSyncDirection

        public EnumerationValue getSyncDirection()
        Generated method - Getter of the GigyaFieldMapping.syncDirection attribute.
        Returns:
        the syncDirection
      • setSyncDirection

        protected void setSyncDirection​(SessionContext ctx,
                                        EnumerationValue value)
        Generated method - Setter of the GigyaFieldMapping.syncDirection attribute.
        Parameters:
        value - the syncDirection
      • setSyncDirection

        protected void setSyncDirection​(EnumerationValue value)
        Generated method - Setter of the GigyaFieldMapping.syncDirection attribute.
        Parameters:
        value - the syncDirection