Class GeneratedB2BUnit

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    B2BUnit

    public abstract class GeneratedB2BUnit
    extends OrgUnit
    Generated class for type B2BUnit.
    See Also:
    Serialized Form
    • Field Detail

      • REPORTINGORGANIZATION

        public static final java.lang.String REPORTINGORGANIZATION
        Qualifier of the B2BUnit.reportingOrganization attribute
        See Also:
        Constant Field Values
      • USERGROUPS

        public static final java.lang.String USERGROUPS
        Qualifier of the B2BUnit.UserGroups attribute
        See Also:
        Constant Field Values
      • COSTCENTERS

        public static final java.lang.String COSTCENTERS
        Qualifier of the B2BUnit.CostCenters attribute
        See Also:
        Constant Field Values
      • BUDGETS

        public static final java.lang.String BUDGETS
        Qualifier of the B2BUnit.Budgets attribute
        See Also:
        Constant Field Values
      • ORDERS

        public static final java.lang.String ORDERS
        Qualifier of the B2BUnit.Orders attribute
        See Also:
        Constant Field Values
      • CREDITLIMIT

        public static final java.lang.String CREDITLIMIT
        Qualifier of the B2BUnit.CreditLimit attribute
        See Also:
        Constant Field Values
      • QUOTELIMIT

        public static final java.lang.String QUOTELIMIT
        Qualifier of the B2BUnit.QuoteLimit attribute
        See Also:
        Constant Field Values
      • ACCOUNTMANAGER

        public static final java.lang.String ACCOUNTMANAGER
        Qualifier of the B2BUnit.accountManager attribute
        See Also:
        Constant Field Values
      • ACCOUNTMANAGERGROUPS

        public static final java.lang.String ACCOUNTMANAGERGROUPS
        Qualifier of the B2BUnit.AccountManagerGroups attribute
        See Also:
        Constant Field Values
      • B2BUNIT2ACCOUNTMANAGERGROUP_SRC_ORDERED

        protected static java.lang.String B2BUNIT2ACCOUNTMANAGERGROUP_SRC_ORDERED
        Relation ordering override parameter constants for B2BUnit2AccountManagerGroup from ((b2bcommerce))
      • B2BUNIT2ACCOUNTMANAGERGROUP_TGT_ORDERED

        protected static java.lang.String B2BUNIT2ACCOUNTMANAGERGROUP_TGT_ORDERED
      • B2BUNIT2ACCOUNTMANAGERGROUP_MARKMODIFIED

        protected static java.lang.String B2BUNIT2ACCOUNTMANAGERGROUP_MARKMODIFIED
        Relation disable markmodifed parameter constants for B2BUnit2AccountManagerGroup from ((b2bcommerce))
      • DEFAULT_INITIAL_ATTRIBUTES

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

      • GeneratedB2BUnit

        public GeneratedB2BUnit()
    • Method Detail

      • getAccountManager

        public Employee getAccountManager​(SessionContext ctx)
        Generated method - Getter of the B2BUnit.accountManager attribute.
        Returns:
        the accountManager - Employee-Account Manager associated to a Parent B2BUnit
      • getAccountManager

        public Employee getAccountManager()
        Generated method - Getter of the B2BUnit.accountManager attribute.
        Returns:
        the accountManager - Employee-Account Manager associated to a Parent B2BUnit
      • setAccountManager

        public void setAccountManager​(SessionContext ctx,
                                      Employee value)
        Generated method - Setter of the B2BUnit.accountManager attribute.
        Parameters:
        value - the accountManager - Employee-Account Manager associated to a Parent B2BUnit
      • setAccountManager

        public void setAccountManager​(Employee value)
        Generated method - Setter of the B2BUnit.accountManager attribute.
        Parameters:
        value - the accountManager - Employee-Account Manager associated to a Parent B2BUnit
      • getAccountManagerGroups

        public java.util.Set<UserGroup> getAccountManagerGroups​(SessionContext ctx)
        Generated method - Getter of the B2BUnit.AccountManagerGroups attribute.
        Returns:
        the AccountManagerGroups - User groups associated to a B2BUnit that hold other employees who can approve quotes
      • getAccountManagerGroups

        public java.util.Set<UserGroup> getAccountManagerGroups()
        Generated method - Getter of the B2BUnit.AccountManagerGroups attribute.
        Returns:
        the AccountManagerGroups - User groups associated to a B2BUnit that hold other employees who can approve quotes
      • getAccountManagerGroupsCount

        public long getAccountManagerGroupsCount​(SessionContext ctx)
      • getAccountManagerGroupsCount

        public long getAccountManagerGroupsCount()
      • setAccountManagerGroups

        public void setAccountManagerGroups​(SessionContext ctx,
                                            java.util.Set<UserGroup> value)
        Generated method - Setter of the B2BUnit.AccountManagerGroups attribute.
        Parameters:
        value - the AccountManagerGroups - User groups associated to a B2BUnit that hold other employees who can approve quotes
      • setAccountManagerGroups

        public void setAccountManagerGroups​(java.util.Set<UserGroup> value)
        Generated method - Setter of the B2BUnit.AccountManagerGroups attribute.
        Parameters:
        value - the AccountManagerGroups - User groups associated to a B2BUnit that hold other employees who can approve quotes
      • addToAccountManagerGroups

        public void addToAccountManagerGroups​(SessionContext ctx,
                                              UserGroup value)
        Generated method - Adds value to AccountManagerGroups.
        Parameters:
        value - the item to add to AccountManagerGroups - User groups associated to a B2BUnit that hold other employees who can approve quotes
      • addToAccountManagerGroups

        public void addToAccountManagerGroups​(UserGroup value)
        Generated method - Adds value to AccountManagerGroups.
        Parameters:
        value - the item to add to AccountManagerGroups - User groups associated to a B2BUnit that hold other employees who can approve quotes
      • removeFromAccountManagerGroups

        public void removeFromAccountManagerGroups​(SessionContext ctx,
                                                   UserGroup value)
        Generated method - Removes value from AccountManagerGroups.
        Parameters:
        value - the item to remove from AccountManagerGroups - User groups associated to a B2BUnit that hold other employees who can approve quotes
      • removeFromAccountManagerGroups

        public void removeFromAccountManagerGroups​(UserGroup value)
        Generated method - Removes value from AccountManagerGroups.
        Parameters:
        value - the item to remove from AccountManagerGroups - User groups associated to a B2BUnit that hold other employees who can approve quotes
      • getBudgets

        public java.util.List<B2BBudget> getBudgets​(SessionContext ctx)
        Generated method - Getter of the B2BUnit.Budgets attribute.
        Returns:
        the Budgets - Budgets associated to a Parent B2BUnit
      • getBudgets

        public java.util.List<B2BBudget> getBudgets()
        Generated method - Getter of the B2BUnit.Budgets attribute.
        Returns:
        the Budgets - Budgets associated to a Parent B2BUnit
      • setBudgets

        public void setBudgets​(SessionContext ctx,
                               java.util.List<B2BBudget> value)
        Generated method - Setter of the B2BUnit.Budgets attribute.
        Parameters:
        value - the Budgets - Budgets associated to a Parent B2BUnit
      • setBudgets

        public void setBudgets​(java.util.List<B2BBudget> value)
        Generated method - Setter of the B2BUnit.Budgets attribute.
        Parameters:
        value - the Budgets - Budgets associated to a Parent B2BUnit
      • addToBudgets

        public void addToBudgets​(SessionContext ctx,
                                 B2BBudget value)
        Generated method - Adds value to Budgets.
        Parameters:
        value - the item to add to Budgets - Budgets associated to a Parent B2BUnit
      • addToBudgets

        public void addToBudgets​(B2BBudget value)
        Generated method - Adds value to Budgets.
        Parameters:
        value - the item to add to Budgets - Budgets associated to a Parent B2BUnit
      • removeFromBudgets

        public void removeFromBudgets​(SessionContext ctx,
                                      B2BBudget value)
        Generated method - Removes value from Budgets.
        Parameters:
        value - the item to remove from Budgets - Budgets associated to a Parent B2BUnit
      • removeFromBudgets

        public void removeFromBudgets​(B2BBudget value)
        Generated method - Removes value from Budgets.
        Parameters:
        value - the item to remove from Budgets - Budgets associated to a Parent B2BUnit
      • getCostCenters

        public java.util.List<B2BCostCenter> getCostCenters​(SessionContext ctx)
        Generated method - Getter of the B2BUnit.CostCenters attribute.
        Returns:
        the CostCenters - CostCenters associated to a Parent B2BUnit
      • getCostCenters

        public java.util.List<B2BCostCenter> getCostCenters()
        Generated method - Getter of the B2BUnit.CostCenters attribute.
        Returns:
        the CostCenters - CostCenters associated to a Parent B2BUnit
      • setCostCenters

        public void setCostCenters​(SessionContext ctx,
                                   java.util.List<B2BCostCenter> value)
        Generated method - Setter of the B2BUnit.CostCenters attribute.
        Parameters:
        value - the CostCenters - CostCenters associated to a Parent B2BUnit
      • setCostCenters

        public void setCostCenters​(java.util.List<B2BCostCenter> value)
        Generated method - Setter of the B2BUnit.CostCenters attribute.
        Parameters:
        value - the CostCenters - CostCenters associated to a Parent B2BUnit
      • addToCostCenters

        public void addToCostCenters​(SessionContext ctx,
                                     B2BCostCenter value)
        Generated method - Adds value to CostCenters.
        Parameters:
        value - the item to add to CostCenters - CostCenters associated to a Parent B2BUnit
      • addToCostCenters

        public void addToCostCenters​(B2BCostCenter value)
        Generated method - Adds value to CostCenters.
        Parameters:
        value - the item to add to CostCenters - CostCenters associated to a Parent B2BUnit
      • removeFromCostCenters

        public void removeFromCostCenters​(SessionContext ctx,
                                          B2BCostCenter value)
        Generated method - Removes value from CostCenters.
        Parameters:
        value - the item to remove from CostCenters - CostCenters associated to a Parent B2BUnit
      • removeFromCostCenters

        public void removeFromCostCenters​(B2BCostCenter value)
        Generated method - Removes value from CostCenters.
        Parameters:
        value - the item to remove from CostCenters - CostCenters associated to a Parent B2BUnit
      • 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 OrgUnit
        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
      • getCreditLimit

        public B2BCreditLimit getCreditLimit​(SessionContext ctx)
        Generated method - Getter of the B2BUnit.CreditLimit attribute.
        Returns:
        the CreditLimit - Merchant Check associated to a Parent B2BUnit
      • getCreditLimit

        public B2BCreditLimit getCreditLimit()
        Generated method - Getter of the B2BUnit.CreditLimit attribute.
        Returns:
        the CreditLimit - Merchant Check associated to a Parent B2BUnit
      • setCreditLimit

        public void setCreditLimit​(SessionContext ctx,
                                   B2BCreditLimit value)
        Generated method - Setter of the B2BUnit.CreditLimit attribute.
        Parameters:
        value - the CreditLimit - Merchant Check associated to a Parent B2BUnit
      • setCreditLimit

        public void setCreditLimit​(B2BCreditLimit value)
        Generated method - Setter of the B2BUnit.CreditLimit attribute.
        Parameters:
        value - the CreditLimit - Merchant Check associated to a Parent B2BUnit
      • getOrders

        public java.util.Set<AbstractOrder> getOrders​(SessionContext ctx)
        Generated method - Getter of the B2BUnit.Orders attribute.
        Returns:
        the Orders
      • getOrders

        public java.util.Set<AbstractOrder> getOrders()
        Generated method - Getter of the B2BUnit.Orders attribute.
        Returns:
        the Orders
      • setOrders

        public void setOrders​(SessionContext ctx,
                              java.util.Set<AbstractOrder> value)
        Generated method - Setter of the B2BUnit.Orders attribute.
        Parameters:
        value - the Orders
      • setOrders

        public void setOrders​(java.util.Set<AbstractOrder> value)
        Generated method - Setter of the B2BUnit.Orders attribute.
        Parameters:
        value - the Orders
      • addToOrders

        public void addToOrders​(SessionContext ctx,
                                AbstractOrder value)
        Generated method - Adds value to Orders.
        Parameters:
        value - the item to add to Orders
      • addToOrders

        public void addToOrders​(AbstractOrder value)
        Generated method - Adds value to Orders.
        Parameters:
        value - the item to add to Orders
      • removeFromOrders

        public void removeFromOrders​(SessionContext ctx,
                                     AbstractOrder value)
        Generated method - Removes value from Orders.
        Parameters:
        value - the item to remove from Orders
      • removeFromOrders

        public void removeFromOrders​(AbstractOrder value)
        Generated method - Removes value from Orders.
        Parameters:
        value - the item to remove from Orders
      • getQuoteLimit

        public B2BQuoteLimit getQuoteLimit​(SessionContext ctx)
        Generated method - Getter of the B2BUnit.QuoteLimit attribute.
        Returns:
        the QuoteLimit - Minimum Amount on Cart for qualifying for Quote Request
      • getQuoteLimit

        public B2BQuoteLimit getQuoteLimit()
        Generated method - Getter of the B2BUnit.QuoteLimit attribute.
        Returns:
        the QuoteLimit - Minimum Amount on Cart for qualifying for Quote Request
      • setQuoteLimit

        public void setQuoteLimit​(SessionContext ctx,
                                  B2BQuoteLimit value)
        Generated method - Setter of the B2BUnit.QuoteLimit attribute.
        Parameters:
        value - the QuoteLimit - Minimum Amount on Cart for qualifying for Quote Request
      • setQuoteLimit

        public void setQuoteLimit​(B2BQuoteLimit value)
        Generated method - Setter of the B2BUnit.QuoteLimit attribute.
        Parameters:
        value - the QuoteLimit - Minimum Amount on Cart for qualifying for Quote Request
      • getReportingOrganization

        public B2BUnit getReportingOrganization​(SessionContext ctx)
        Generated method - Getter of the B2BUnit.reportingOrganization attribute.
        Returns:
        the reportingOrganization
      • getReportingOrganization

        public B2BUnit getReportingOrganization()
        Generated method - Getter of the B2BUnit.reportingOrganization attribute.
        Returns:
        the reportingOrganization
      • setReportingOrganization

        public void setReportingOrganization​(SessionContext ctx,
                                             B2BUnit value)
        Generated method - Setter of the B2BUnit.reportingOrganization attribute.
        Parameters:
        value - the reportingOrganization
      • setReportingOrganization

        public void setReportingOrganization​(B2BUnit value)
        Generated method - Setter of the B2BUnit.reportingOrganization attribute.
        Parameters:
        value - the reportingOrganization
      • getUserGroups

        public java.util.Set<B2BUserGroup> getUserGroups​(SessionContext ctx)
        Generated method - Getter of the B2BUnit.UserGroups attribute.
        Returns:
        the UserGroups
      • getUserGroups

        public java.util.Set<B2BUserGroup> getUserGroups()
        Generated method - Getter of the B2BUnit.UserGroups attribute.
        Returns:
        the UserGroups
      • setUserGroups

        public void setUserGroups​(SessionContext ctx,
                                  java.util.Set<B2BUserGroup> value)
        Generated method - Setter of the B2BUnit.UserGroups attribute.
        Parameters:
        value - the UserGroups
      • setUserGroups

        public void setUserGroups​(java.util.Set<B2BUserGroup> value)
        Generated method - Setter of the B2BUnit.UserGroups attribute.
        Parameters:
        value - the UserGroups
      • addToUserGroups

        public void addToUserGroups​(SessionContext ctx,
                                    B2BUserGroup value)
        Generated method - Adds value to UserGroups.
        Parameters:
        value - the item to add to UserGroups
      • addToUserGroups

        public void addToUserGroups​(B2BUserGroup value)
        Generated method - Adds value to UserGroups.
        Parameters:
        value - the item to add to UserGroups
      • removeFromUserGroups

        public void removeFromUserGroups​(SessionContext ctx,
                                         B2BUserGroup value)
        Generated method - Removes value from UserGroups.
        Parameters:
        value - the item to remove from UserGroups
      • removeFromUserGroups

        public void removeFromUserGroups​(B2BUserGroup value)
        Generated method - Removes value from UserGroups.
        Parameters:
        value - the item to remove from UserGroups