Package de.hybris.platform.b2b.model
Class B2BPermissionModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.b2b.model.B2BPermissionModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
B2B2POEPermissionAModel
,B2B2POEPermissionBModel
,B2BBudgetExceededPermissionModel
,B2BOrderThresholdPermissionModel
public class B2BPermissionModel extends ItemModel
Generated model class for type B2BPermission first defined at extension b2bapprovalprocess.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_B2BCUSTOMER2B2BPERMISSIONS
Generated relation code constant for relationB2BCustomer2B2BPermissions
defining source attributeCustomers
in extensionb2bapprovalprocess
.static java.lang.String
_B2BUNIT2B2BPERMISSIONS
Generated relation code constant for relationB2BUnit2B2BPermissions
defining source attributeUnit
in extensionb2bapprovalprocess
.static java.lang.String
_B2BUSERGROUPS2B2BPERMISSIONS
Generated relation code constant for relationB2BUserGroups2B2BPermissions
defining source attributeUserGroups
in extensionb2bapprovalprocess
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
ACTIVE
Generated constant - Attribute key ofB2BPermission.active
attribute defined at extensionb2bapprovalprocess
.static java.lang.String
CODE
Generated constant - Attribute key ofB2BPermission.code
attribute defined at extensionb2bapprovalprocess
.static java.lang.String
CUSTOMERS
Generated constant - Attribute key ofB2BPermission.Customers
attribute defined at extensionb2bapprovalprocess
.static java.lang.String
MESSAGE
Generated constant - Attribute key ofB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.static java.lang.String
UNIT
Generated constant - Attribute key ofB2BPermission.Unit
attribute defined at extensionb2bapprovalprocess
.static java.lang.String
UNITPOS
Generated constant - Attribute key ofB2BPermission.UnitPOS
attribute defined at extensionb2bapprovalprocess
.static java.lang.String
USERGROUPS
Generated constant - Attribute key ofB2BPermission.UserGroups
attribute defined at extensionb2bapprovalprocess
.-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description B2BPermissionModel()
Generated constructor - Default constructor for generic creation.B2BPermissionModel(B2BUnitModel _Unit, java.lang.String _code)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersB2BPermissionModel(B2BUnitModel _Unit, java.lang.String _code, ItemModel _owner)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersB2BPermissionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getActive()
Generated method - Getter of theB2BPermission.active
attribute defined at extensionb2bapprovalprocess
.java.lang.String
getCode()
Generated method - Getter of theB2BPermission.code
attribute defined at extensionb2bapprovalprocess
.java.util.Collection<B2BCustomerModel>
getCustomers()
Generated method - Getter of theB2BPermission.Customers
attribute defined at extensionb2bapprovalprocess
.java.lang.String
getMessage()
Generated method - Getter of theB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.java.lang.String
getMessage(java.util.Locale loc)
Generated method - Getter of theB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.B2BUnitModel
getUnit()
Generated method - Getter of theB2BPermission.Unit
attribute defined at extensionb2bapprovalprocess
.java.util.List<B2BUserGroupModel>
getUserGroups()
Generated method - Getter of theB2BPermission.UserGroups
attribute defined at extensionb2bapprovalprocess
.void
setActive(java.lang.Boolean value)
Generated method - Setter ofB2BPermission.active
attribute defined at extensionb2bapprovalprocess
.void
setCode(java.lang.String value)
Generated method - Setter ofB2BPermission.code
attribute defined at extensionb2bapprovalprocess
.void
setCustomers(java.util.Collection<B2BCustomerModel> value)
Generated method - Setter ofB2BPermission.Customers
attribute defined at extensionb2bapprovalprocess
.void
setMessage(java.lang.String value)
Generated method - Setter ofB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.void
setMessage(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.void
setUnit(B2BUnitModel value)
Generated method - Setter ofB2BPermission.Unit
attribute defined at extensionb2bapprovalprocess
.void
setUserGroups(java.util.List<B2BUserGroupModel> value)
Generated method - Setter ofB2BPermission.UserGroups
attribute defined at extensionb2bapprovalprocess
.-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_B2BUSERGROUPS2B2BPERMISSIONS
public static final java.lang.String _B2BUSERGROUPS2B2BPERMISSIONS
Generated relation code constant for relationB2BUserGroups2B2BPermissions
defining source attributeUserGroups
in extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
_B2BUNIT2B2BPERMISSIONS
public static final java.lang.String _B2BUNIT2B2BPERMISSIONS
Generated relation code constant for relationB2BUnit2B2BPermissions
defining source attributeUnit
in extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
_B2BCUSTOMER2B2BPERMISSIONS
public static final java.lang.String _B2BCUSTOMER2B2BPERMISSIONS
Generated relation code constant for relationB2BCustomer2B2BPermissions
defining source attributeCustomers
in extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofB2BPermission.code
attribute defined at extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
Generated constant - Attribute key ofB2BPermission.active
attribute defined at extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
MESSAGE
public static final java.lang.String MESSAGE
Generated constant - Attribute key ofB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
USERGROUPS
public static final java.lang.String USERGROUPS
Generated constant - Attribute key ofB2BPermission.UserGroups
attribute defined at extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
UNITPOS
public static final java.lang.String UNITPOS
Generated constant - Attribute key ofB2BPermission.UnitPOS
attribute defined at extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
UNIT
public static final java.lang.String UNIT
Generated constant - Attribute key ofB2BPermission.Unit
attribute defined at extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
CUSTOMERS
public static final java.lang.String CUSTOMERS
Generated constant - Attribute key ofB2BPermission.Customers
attribute defined at extensionb2bapprovalprocess
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
B2BPermissionModel
public B2BPermissionModel()
Generated constructor - Default constructor for generic creation.
-
B2BPermissionModel
public B2BPermissionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
B2BPermissionModel
@Deprecated(since="4.1.1", forRemoval=true) public B2BPermissionModel(B2BUnitModel _Unit, java.lang.String _code)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_Unit
- initial attribute declared by typeB2BPermission
at extensionb2bapprovalprocess
_code
- initial attribute declared by typeB2BPermission
at extensionb2bapprovalprocess
-
B2BPermissionModel
@Deprecated(since="4.1.1", forRemoval=true) public B2BPermissionModel(B2BUnitModel _Unit, java.lang.String _code, ItemModel _owner)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_Unit
- initial attribute declared by typeB2BPermission
at extensionb2bapprovalprocess
_code
- initial attribute declared by typeB2BPermission
at extensionb2bapprovalprocess
_owner
- initial attribute declared by typeItem
at extensioncore
-
-
Method Detail
-
getActive
@Accessor(qualifier="active", type=GETTER) public java.lang.Boolean getActive()
Generated method - Getter of theB2BPermission.active
attribute defined at extensionb2bapprovalprocess
.- Returns:
- the active
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theB2BPermission.code
attribute defined at extensionb2bapprovalprocess
.- Returns:
- the code
-
getCustomers
@Accessor(qualifier="Customers", type=GETTER) public java.util.Collection<B2BCustomerModel> getCustomers()
Generated method - Getter of theB2BPermission.Customers
attribute defined at extensionb2bapprovalprocess
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the Customers
-
getMessage
@Accessor(qualifier="message", type=GETTER) public java.lang.String getMessage()
Generated method - Getter of theB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.- Returns:
- the message
-
getMessage
@Accessor(qualifier="message", type=GETTER) public java.lang.String getMessage(java.util.Locale loc)
Generated method - Getter of theB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.- Parameters:
loc
- the value localization key- Returns:
- the message
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
getUnit
@Accessor(qualifier="Unit", type=GETTER) public B2BUnitModel getUnit()
Generated method - Getter of theB2BPermission.Unit
attribute defined at extensionb2bapprovalprocess
.- Returns:
- the Unit - The Parent B2BUnit
-
getUserGroups
@Accessor(qualifier="UserGroups", type=GETTER) public java.util.List<B2BUserGroupModel> getUserGroups()
Generated method - Getter of theB2BPermission.UserGroups
attribute defined at extensionb2bapprovalprocess
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the UserGroups
-
setActive
@Accessor(qualifier="active", type=SETTER) public void setActive(java.lang.Boolean value)
Generated method - Setter ofB2BPermission.active
attribute defined at extensionb2bapprovalprocess
.- Parameters:
value
- the active
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Setter ofB2BPermission.code
attribute defined at extensionb2bapprovalprocess
.- Parameters:
value
- the code
-
setCustomers
@Accessor(qualifier="Customers", type=SETTER) public void setCustomers(java.util.Collection<B2BCustomerModel> value)
Generated method - Setter ofB2BPermission.Customers
attribute defined at extensionb2bapprovalprocess
.- Parameters:
value
- the Customers
-
setMessage
@Accessor(qualifier="message", type=SETTER) public void setMessage(java.lang.String value)
Generated method - Setter ofB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.- Parameters:
value
- the message
-
setMessage
@Accessor(qualifier="message", type=SETTER) public void setMessage(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofB2BPermission.message
attribute defined at extensionb2bapprovalprocess
.- Parameters:
value
- the messageloc
- the value localization key- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
setUnit
@Accessor(qualifier="Unit", type=SETTER) public void setUnit(B2BUnitModel value)
Generated method - Setter ofB2BPermission.Unit
attribute defined at extensionb2bapprovalprocess
.- Parameters:
value
- the Unit - The Parent B2BUnit
-
setUserGroups
@Accessor(qualifier="UserGroups", type=SETTER) public void setUserGroups(java.util.List<B2BUserGroupModel> value)
Generated method - Setter ofB2BPermission.UserGroups
attribute defined at extensionb2bapprovalprocess
.- Parameters:
value
- the UserGroups
-
-