kinda new to the hybris environment and still learning. Hoping to ask I have a list of values being extracted from hyrbis.. basically I have an order type that contains order number, name of customer, and other order related values, but under it there's an address model/type that is a (sub?) type or a whole different model/itemtype that is nested inside/linked to order (basically a sub-type.. that has street name, district, zip code, etc.). The java code uses a type called AttributeDescriptorModel that retrieves the particular order details. I'm not very good at manipulating the AttributeDescriptorModel variable, there are a lot of methods in it like getName(), getAttributeType(), getQualifier(), and other methods.. I was thinking of intercepting assigning to the list from the attributedescriptor where it stores it's values (the list is the one used by the java class for it's display purposes). When it gets to the address model type I was hoping to store the address model to a temporary addressModel type variable and then extract it's address details into individual variables, basically just get the addressmodel values. Thank you in advance for any help. Sorry for the newbie question.
how to get values of attributedescriptor in sap hybris?
238 Views Asked by buencamino At
1
There are 1 best solutions below
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in SAP-COMMERCE-CLOUD
- Getting Entity not found when exporting User Rights from production only
- Gigya cdc sap account login lang is truncated
- SAP Commerce Cloud multisite SOLR configuration
- Stop Gigya log in from directing back to the log in page
- Category name is getting passed instead of code on PLP
- how to import products in bulk in hybris promotion rule
- Gigya cdc sap accounts.register custom language
- Disable @Cacheable for a certain Hybris controller
- How the PDP occ calls are getting called
- Add a custom product page in spartacus
- How to implement js and css versioning in hybris based project via wro4j
- search for exact word in hybris solr
- Workaround to build and install SAP Commerce, Composable Storefront >5.0 on Windows - '..' is not recognized as an internal or external command
- What could be missing from my SAP cloud environment to cause my EmailAttachmentModel to break?
- Replace getter setter with reflection in spring.xml
Related Questions in HYBRIS-DATA-HUB
- How to implement js and css versioning in hybris based project via wro4j
- Caught exception while polling pending tasks
- Override service in hybris smart edit 2015
- Upgraded Smartedit from 2011 to 2105 but now facing issue in custom functionality loading
- I want to add an custom extension(trainingcommercewebservices ) using ycommercewebservices template Could any body please guide me
- While migrating from 1811 to 2211 - SAP Hybris commerce getting [SAAJ 1.3] version error
- how to get values of attributedescriptor in sap hybris?
- How to render sitemap.xml in SAP Commerce Spartacus site?
- When a lead is created send Salesforce Lead and Account Data to SAP Hybris from rest API callout
- After installing the cx recipe in SAP Commerce, execution error unable to install/path/npm/where
- How to update few columns in an itemtype with an ImpEx based on a condition?
- How to validate the classification attributes in Hybris?
- ASM component is not displaying properly
- What could be causing an error while starting the Hybris Server with code in spring.xml?
- I'm getting ERROR [hybrisHTTP13] [DBPersistenceManager] typePK or Code was NULL in getPersistenceInfoInternal()
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If all you need to do is extract order details then there should be no need to deal with Attribute Descriptor -> that is part of the type system metadata.
The build of Hybris also code generates model classes for each type, with the various attributes generated as getters/setters. Typically to extract an Order you would deal with an OrderModel, call the getters on the OrderModel instance to get the relevant values. That includes addresses as OrderModel has getDeliveryAddress(),getPaymentAddress() methods that return an AddressModel instance ... which has getters to access the various fields on the address.