com.ibm.commerce.attachment.beans

Class AttachmentTargetDataBean

  • java.lang.Object
    • com.ibm.commerce.persistence.AbstractJpaEntityAccessBean
      • com.ibm.commerce.attachment.objects.AttachmentTargetAccessBean
        • com.ibm.commerce.attachment.beans.AttachmentTargetDataBean
  • All Implemented Interfaces:
    java.io.Serializable


    public class AttachmentTargetDataBean
    extends com.ibm.commerce.attachment.objects.AttachmentTargetAccessBean
    This data bean represents an attachment target.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String CLASSNAME
      Define the CLASSNAME.
      static java.lang.String COPYRIGHT
      The internal copyright field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      AttachmentTargetDataBean()
      Constructs an empty AttachmentTargetDataBean
      AttachmentTargetDataBean(com.ibm.commerce.attachment.objects.AttachmentTargetAccessBean abAttachmentTarget, CommandContext context)
      Constructs an AttachmentTargetDataBean from a AttachmentTargetAccessBean.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      AttachmentAssetDataBean[] getAssets()
      Gets the list of AttachmentAssetDataBean of the attachment target.
      AttachmentAssetDataBean[] getAtchmentAssets(java.lang.Integer aLanguageId)
      This method gets the attachment asset data beans by specified language.
      CommandContext getCommandContext()
      Gets the command context set within this bean.
      AttachmentTargetDescriptionDataBean[] getDescriptions()
      Gets the list of AttachmentTargetDescriptionDataBean of the attachment target.
      TypedProperty getRequestProperties()
      Gets the request property set within this bean.
      void populate()
      Fetches and populates information needed by the bean.
      void setCommandContext(CommandContext commandContext)
      Sets the command context passed in at run time.
      void setDescriptions(AttachmentTargetDescriptionDataBean[] argAttachmentTargetDescriptions)
      This method sets the list of AttachmentTargetDescriptionDataBean of the attachment target.
      void setRequestProperties(TypedProperty param)
      Sets the request property and populates the parameters that are needed by the bean.
      • Methods inherited from class com.ibm.commerce.attachment.objects.AttachmentTargetAccessBean

        findByIdentifier, findByIdentifierAndMemberId, findByIdentifierAndMemberIdAndStoreentId, findByIdentifierAndStoreentId, findByMemberId, findByStoreentId, fulfills, getAttachmentAsset, getAttachmentAssets, getAttachmentTargetId, getAttachmentTargetIdInEntityType, getAttachmentUsageId, getDescription, getDescription, getEntity, getField1, getField1InEntityType, getField2, getField2InEntityType, getField3, getField4, getIdentifier, getMemberId, getMemberIdInEntityType, getOwner, getStoreentId, getStoreentIdInEntityType, instantiateEntity, setAttachmentUsageId, setField1, setField1, setField2, setField2, setField3, setField4, setIdentifier, setInitKey_attachmentTargetId, setMemberId, setMemberId, setStoreentId, setStoreentId
      • Methods inherited from class com.ibm.commerce.persistence.AbstractJpaEntityAccessBean

        createAccessBean, createAccessBean, createAccessBeanCollection, createAccessBeanCollection, createEntityCollection, detach, remove, setUseDataCache, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • CLASSNAME

        public static final java.lang.String CLASSNAME
        Define the CLASSNAME.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AttachmentTargetDataBean

        public AttachmentTargetDataBean()
        Constructs an empty AttachmentTargetDataBean
      • AttachmentTargetDataBean

        public AttachmentTargetDataBean(com.ibm.commerce.attachment.objects.AttachmentTargetAccessBean abAttachmentTarget,
                                        CommandContext context)
        Constructs an AttachmentTargetDataBean from a AttachmentTargetAccessBean.
        Parameters:
        abAttachmentTarget - The AttachmentTargetAccessBean
        context - The command context
    • Method Detail

      • getCommandContext

        public CommandContext getCommandContext()
        Gets the command context set within this bean.
        Returns:
        The command context as CommandContext object.
      • getRequestProperties

        public TypedProperty getRequestProperties()
        Gets the request property set within this bean.
        Returns:
        null is always returned.
      • getDescriptions

        public AttachmentTargetDescriptionDataBean[] getDescriptions()
        Gets the list of AttachmentTargetDescriptionDataBean of the attachment target.
        Returns:
        The list of AttachmentTargetDescriptionDataBean
      • setDescriptions

        public void setDescriptions(AttachmentTargetDescriptionDataBean[] argAttachmentTargetDescriptions)
        This method sets the list of AttachmentTargetDescriptionDataBean of the attachment target.
        Parameters:
        argAttachmentTargetDescriptions - The list of AttachmentTargetDescriptionDataBean
      • getAssets

        public AttachmentAssetDataBean[] getAssets()
        Gets the list of AttachmentAssetDataBean of the attachment target.
        Returns:
        The list of AttachmentAssetDataBean
      • populate

        public void populate()
        Fetches and populates information needed by the bean.
        Throws:
        java.lang.Exception - Any exception captured
      • setCommandContext

        public void setCommandContext(CommandContext commandContext)
        Sets the command context passed in at run time.
        Parameters:
        commandContext - The command context as CommandContext object.
      • setRequestProperties

        public void setRequestProperties(TypedProperty param)
        Sets the request property and populates the parameters that are needed by the bean.
        Parameters:
        param - The request property as TypedProperty object.
      • getAtchmentAssets

        public AttachmentAssetDataBean[] getAtchmentAssets(java.lang.Integer aLanguageId)
        This method gets the attachment asset data beans by specified language. It returns not only the asset with specified language, but also all the language independent assets.
        Parameters:
        aLanguageId - the language id
        Returns:
        the attachment asset data beans