Class GeneratedB2BUnit

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
B2BUnit

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

  • Constructor Details

    • GeneratedB2BUnit

      public GeneratedB2BUnit()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class GeneratedOrgUnit
    • 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 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 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, 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(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
    • getB2bExcludedPaymentTypes

      public Set<EnumerationValue> getB2bExcludedPaymentTypes(SessionContext ctx)
      Generated method - Getter of the B2BUnit.b2bExcludedPaymentTypes attribute.
      Returns:
      the b2bExcludedPaymentTypes - Excluded Payment Types at Checkout.
    • getB2bExcludedPaymentTypes

      public Set<EnumerationValue> getB2bExcludedPaymentTypes()
      Generated method - Getter of the B2BUnit.b2bExcludedPaymentTypes attribute.
      Returns:
      the b2bExcludedPaymentTypes - Excluded Payment Types at Checkout.
    • setB2bExcludedPaymentTypes

      public void setB2bExcludedPaymentTypes(SessionContext ctx, Set<EnumerationValue> value)
      Generated method - Setter of the B2BUnit.b2bExcludedPaymentTypes attribute.
      Parameters:
      value - the b2bExcludedPaymentTypes - Excluded Payment Types at Checkout.
    • setB2bExcludedPaymentTypes

      public void setB2bExcludedPaymentTypes(Set<EnumerationValue> value)
      Generated method - Setter of the B2BUnit.b2bExcludedPaymentTypes attribute.
      Parameters:
      value - the b2bExcludedPaymentTypes - Excluded Payment Types at Checkout.
    • getBudgets

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

      public 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, 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(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 List<B2BCostCenter> getCostCenters(SessionContext ctx)
      Generated method - Getter of the B2BUnit.CostCenters attribute.
      Returns:
      the CostCenters - CostCenters associated to a Parent B2BUnit
    • getCostCenters

      public 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, 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(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
    • isMarkModifiedDisabled

      @Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isMarkModifiedDisabled in class GeneratedPrincipalGroup
    • getOrders

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

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

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

      public void setOrders(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 Set<B2BUserGroup> getUserGroups(SessionContext ctx)
      Generated method - Getter of the B2BUnit.UserGroups attribute.
      Returns:
      the UserGroups
    • getUserGroups

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

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

      public void setUserGroups(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