Posts

Showing posts from February, 2016

Order history read access users from same organization.

Order history read access users from same organization. Read only access to users belonging to same organization and Organization Participant role for order history related databeans, the XML policies below is from the reference link below but they have an issue where on the role Buyer (buy-side) role name so that's fixed. Buyer(buy-side) roles needs to defined on the organization using Org admin console. if there is an hierarchy of organizations and the bottom organization is the parent organization for the users. All roles have to be defined to Organizations from Top-Down. Add the xml fragments below to resource_acpolicies.xml and run ACPLoad. Add new policy to allow participants to display the order beans for others in the organization: Relation group: This defines all roles in this case Buyer(buy-side) to BuyingOrganizationalEntity      <RelationGroup Name="Buyer (buy-side)->BuyerOrganizationalEntity" OwnerID="RootOrganization">        

Override Access authority from Commands

Override Access authority from Commands checkResourcePermission The user does not have the authority to run this command. CMN0410E: The system failed to retrieve the message with  key "_ERR_USER_AUTHORITY" from "com.ibm.commerce.ras.properties.ecServerMessages" I am sure all of us working in commerce have seen the above error  a million times and some times it is because we didn't correctly define the access privileges when creating a new command and running ACPLoad but some times it is important to override the out of the box access policies. I would not recommend returning plain null but also find below some more restricted overrides of getResources. public AccessVector getResources() {   return null; } public AccessVector getResources() {          final String METHOD_NAME = "getResources";                         java.util.Vector resourcesVector = new java.util.Vector();             Long parentOrgId= null;             UserAcc

Directory structure : if you were creating new jsp for some customization.

https://www-01.ibm.com/support/knowledgecenter/SSZLC2_8.0.0/com.ibm.commerce.aurora-starterstore.doc/refs/rsmauroradirectories.htm