Is that possible to add method getPropertyValue("propertyName", someParm)[ in class extending RepositoryItem and then use the new class instead of RepositoryItem] which will call public Object getPropertyValue(RepositoryItemImpl pItem, Object pValue, Object someParm) of UserDefindPropery Class. If yes what configuration I need to change.
Thanks in advance.
Thanks a lot both of you for reply,
Is that possible my getProperty method do calculation based on some session specific attribute, even if I don't have request for resolving session scoped component in this method.
You can create a userDefined PropertyDescriptor for a property and then return data from that after your processing.
Depending on your requirement you may also consider realToRaw and rawToReal methods.
Go through ATG repository guide for more details.
You can use atg.servlet.ServletUtils.getCurrentRequest() which will give you current Dynamo HTTP request from which you can resolve session scoped component as:
Store session data in cookie, so that when user comes back after time out, try reading cookie parameters and set in those session variables. You can accomplish this by writing a pipelineable servlet. ( You can optimize it by checking for a boolean flag of session component which has session variables. By default it can be set to false, but becomes true whenever read from the cookie so as to avoid for subsequent requests).
Hope this helps.