public class BusinessPartnerRole extends VdmEntity<BusinessPartnerRole>
Original entity name from the Odata EDM: A_BusinessPartnerRoleType
Modifier and Type | Class and Description |
---|---|
static class |
BusinessPartnerRole.BusinessPartnerRoleBuilder |
Modifier and Type | Field and Description |
---|---|
static BusinessPartnerRoleSelectable |
ALL_FIELDS
Selector for all available fields of BusinessPartnerRole.
|
static BusinessPartnerRoleField<String> |
AUTHORIZATION_GROUP
Use with available fluent helpers to apply the AuthorizationGroup field to query operations.
|
static BusinessPartnerRoleField<String> |
BUSINESS_PARTNER
Use with available fluent helpers to apply the BusinessPartner field to query operations.
|
static BusinessPartnerRoleField<String> |
BUSINESS_PARTNER_ROLE
Use with available fluent helpers to apply the BusinessPartnerRole field to query operations.
|
static BusinessPartnerRoleField<ZonedDateTime> |
VALID_FROM
Use with available fluent helpers to apply the ValidFrom field to query operations.
|
static BusinessPartnerRoleField<ZonedDateTime> |
VALID_TO
Use with available fluent helpers to apply the ValidTo field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
BusinessPartnerRole() |
BusinessPartnerRole(String businessPartner,
String businessPartnerRole,
ZonedDateTime validFrom,
ZonedDateTime validTo,
String authorizationGroup) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static BusinessPartnerRole.BusinessPartnerRoleBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static <T> BusinessPartnerRoleField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getAuthorizationGroup()
Constraints: Not nullable, Maximum length: 4
|
String |
getBusinessPartner()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getBusinessPartnerRole()
(Key Field) Constraints: Not nullable, Maximum length: 6
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection() |
protected Map<String,Object> |
getKey() |
Class<BusinessPartnerRole> |
getType() |
ZonedDateTime |
getValidFrom()
Constraints: Not nullable, Precision: 0
|
ZonedDateTime |
getValidTo()
Constraints: Not nullable, Precision: 0
|
int |
hashCode() |
void |
setAuthorizationGroup(String authorizationGroup)
Constraints: Not nullable, Maximum length: 4
|
void |
setBusinessPartner(String businessPartner)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setBusinessPartnerRole(String businessPartnerRole)
(Key Field) Constraints: Not nullable, Maximum length: 6
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setValidFrom(ZonedDateTime validFrom)
Constraints: Not nullable, Precision: 0
|
void |
setValidTo(ZonedDateTime validTo)
Constraints: Not nullable, Precision: 0
|
protected Map<String,Object> |
toMapOfFields() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
public static final BusinessPartnerRoleSelectable ALL_FIELDS
public static final BusinessPartnerRoleField<String> BUSINESS_PARTNER
public static final BusinessPartnerRoleField<String> BUSINESS_PARTNER_ROLE
public static final BusinessPartnerRoleField<ZonedDateTime> VALID_FROM
public static final BusinessPartnerRoleField<ZonedDateTime> VALID_TO
public static final BusinessPartnerRoleField<String> AUTHORIZATION_GROUP
public BusinessPartnerRole()
public BusinessPartnerRole(@Nullable String businessPartner, @Nullable String businessPartnerRole, @Nullable ZonedDateTime validFrom, @Nullable ZonedDateTime validTo, @Nullable String authorizationGroup)
@Nonnull public Class<BusinessPartnerRole> getType()
getType
in class VdmObject<BusinessPartnerRole>
public void setBusinessPartner(@Nullable String businessPartner)
Original property name from the Odata EDM: BusinessPartner
businessPartner
- Key identifying a business partner in the SAP system. The key is unique within a client.public void setBusinessPartnerRole(@Nullable String businessPartnerRole)
Original property name from the Odata EDM: BusinessPartnerRole
You can define business partner roles along with their attributes in Customizing.You can create an alphanumeric, 6-digit key for the BP role. You can also choose a title as the short form and a description as the long form for the role text.Screen control in the dialog takes place by assigning a BP view.A program can access specific business partner roles for a business partner using thebusiness partner role category . The role categories are also in the TB003 table.
businessPartnerRole
- Function that a business partner takes on, depending on a business transaction.public void setValidFrom(@Nullable ZonedDateTime validFrom)
Original property name from the Odata EDM: ValidFrom
validFrom
- Validity Start of a BP Rolepublic void setValidTo(@Nullable ZonedDateTime validTo)
Original property name from the Odata EDM: ValidTo
validTo
- Validity End of a BP Rolepublic void setAuthorizationGroup(@Nullable String authorizationGroup)
Original property name from the Odata EDM: AuthorizationGroup
Use the following authorization object:'Business partners: authorization groups' (B_BUPA_GRP).The system only checks this authorization if you made an entry in the "Authorization group" field for the business partner. Otherwise, any user may process the business partner.
authorizationGroup
- You can use authorization groups to stipulate which business partners a user is allowed to process.protected String getEntityCollection()
getEntityCollection
in class VdmEntity<BusinessPartnerRole>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<BusinessPartnerRole>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<BusinessPartnerRole>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<BusinessPartnerRole>
@Nonnull public static <T> BusinessPartnerRoleField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.fieldName
- The name of the extension field as returned by the OData service.fieldType
- The Java type to use for the extension field when performing value comparisons.@Nonnull public static <T,DomainT> BusinessPartnerRoleField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<BusinessPartnerRole>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<BusinessPartnerRole>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<BusinessPartnerRole>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<BusinessPartnerRole>
public static BusinessPartnerRole.BusinessPartnerRoleBuilder builder()
@Nullable public String getBusinessPartner()
Original property name from the Odata EDM: BusinessPartner
@Nullable public String getBusinessPartnerRole()
Original property name from the Odata EDM: BusinessPartnerRole
You can define business partner roles along with their attributes in Customizing.You can create an alphanumeric, 6-digit key for the BP role. You can also choose a title as the short form and a description as the long form for the role text.Screen control in the dialog takes place by assigning a BP view.A program can access specific business partner roles for a business partner using thebusiness partner role category . The role categories are also in the TB003 table.
@Nullable public ZonedDateTime getValidFrom()
Original property name from the Odata EDM: ValidFrom
@Nullable public ZonedDateTime getValidTo()
Original property name from the Odata EDM: ValidTo
@Nullable public String getAuthorizationGroup()
Original property name from the Odata EDM: AuthorizationGroup
Use the following authorization object:'Business partners: authorization groups' (B_BUPA_GRP).The system only checks this authorization if you made an entry in the "Authorization group" field for the business partner. Otherwise, any user may process the business partner.
public String toString()
toString
in class VdmObject<BusinessPartnerRole>
public boolean equals(Object o)
equals
in class VdmObject<BusinessPartnerRole>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<BusinessPartnerRole>
public int hashCode()
hashCode
in class VdmObject<BusinessPartnerRole>
Copyright © 2019 SAP SE. All rights reserved.