Class ConfigProxyItem

    • Constructor Detail

      • ConfigProxyItem

        public ConfigProxyItem()
    • Method Detail

      • providePK

        public PK providePK()
        Description copied from interface: JaloOnlyItem
        Should provide a fixed PK for this item.
        Specified by:
        providePK in interface JaloOnlyItem
        Returns:
        PK of this item
      • createItem

        public Item createItem​(SessionContext ctx,
                               ComposedType type,
                               Item.ItemAttributeMap allAttributes)
                        throws JaloBusinessException
        Returns an instance of this class.
        Specified by:
        createItem in class Item
        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
      • provideCreationTime

        public java.util.Date provideCreationTime()
        Description copied from interface: JaloOnlyItem
        Should provide a fixed creation time for this item.
        Specified by:
        provideCreationTime in interface JaloOnlyItem
        Returns:
        creation time date of this item
      • provideModificationTime

        public java.util.Date provideModificationTime()
        Description copied from interface: JaloOnlyItem
        Should provide a modification time for this item.
        Specified by:
        provideModificationTime in interface JaloOnlyItem
        Returns:
        modification time date of this item
      • doGetAttribute

        public java.lang.Object doGetAttribute​(SessionContext ctx,
                                               java.lang.String qualifier)
        Description copied from interface: JaloOnlyItem
        Should get the value of the given attribute if no AttributeAccess has been registered for it. Otherwise the value is read from the access instance.
        Specified by:
        doGetAttribute in interface JaloOnlyItem
        Parameters:
        ctx - the session context
        qualifier - the qualifier of the requested attribute
        Returns:
        the attribute value
      • getInt

        public int getInt​(java.lang.String qualifier,
                          int def)
      • getValue

        public java.lang.Object getValue​(java.lang.String qualifier)
      • getValue

        public java.lang.Object getValue​(SessionContext ctx,
                                         java.lang.String qualifier)
      • doSetAttribute

        public void doSetAttribute​(SessionContext ctx,
                                   java.lang.String qualifier,
                                   java.lang.Object value)
                            throws JaloBusinessException
        Description copied from interface: JaloOnlyItem
        Should set the value of the given attribute if no AttributeAccess has been registered for it. Otherwise the value is read from the access instance.
        Specified by:
        doSetAttribute in interface JaloOnlyItem
        Parameters:
        ctx - the session context
        qualifier - the qualifier of the requested attribute
        value - the new attribute value
        Throws:
        JaloSecurityException - in case the session user is not allowed to write this attribute
        JaloBusinessException - in case any other error occured
      • setValue

        public void setValue​(java.lang.String qualifier,
                             java.lang.Object value)
      • setValue

        public void setValue​(SessionContext ctx,
                             java.lang.String qualifier,
                             java.lang.Object value)
      • setTransientValue

        protected void setTransientValue​(java.lang.String qualifier,
                                         java.lang.String value)
      • getTransientValue

        protected java.lang.String getTransientValue​(java.lang.String qualifier)
      • setPersistentValue

        protected void setPersistentValue​(java.lang.String qualifier,
                                          java.lang.String value)
      • getPersistentValue

        protected java.io.Serializable getPersistentValue​(java.lang.String qualifier)
      • storeInDatabase

        protected boolean storeInDatabase​(java.lang.String qualifier)
        Returns:
        true if the attribute should be stored in database
      • getExternalQualifier

        protected java.lang.String getExternalQualifier​(java.lang.String qualifier)
        Returns:
        the external qualifier of this attribute which is used to get/set the attribute via Config
      • booleanValue

        public static boolean booleanValue​(java.lang.String value)
      • integerValue

        public static java.lang.Integer integerValue​(java.lang.String value)
      • longValue

        public static java.lang.Long longValue​(java.lang.String value)