Class ViewResultItem

    • Constructor Detail

      • ViewResultItem

        public ViewResultItem()
      • ViewResultItem

        protected ViewResultItem​(ComposedType type,
                                 java.util.Map values)
    • Method Detail

      • 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
      • 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
      • 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
      • 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