Create access control policy for write usage to the objects
In this lesson, you set up write usage policies for your new user group so that users in the new user group have write access to the objects.
Procedure
- In a file manager utility, go to the WCDE_installdir\xml\policies\xml directory.
- In this directory, create a file and name the file extAccessControlPolicies.xml. This file is your new customized XML file for new access control policies.
- Open the new file for editing.
-
Copy and paste the following code into your new file to create an action group for managing
search term association.
<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE Policies SYSTEM "../dtd/accesscontrolpolicies.dtd"> <Policies> <Action Name="EXT_ManageSearchTermAssociation" CommandName="EXT_ManageSearchTermAssociation"/> <ResourceCategory Name="com.ibm.commerce.common.objects.StoreEntityResourceCategory" PrimaryResourceOwnerColumn="MEMBER_ID" PrimaryResourceOwnerTable="STOREENT" PrimaryResourceTable="STOREENT" ResourceBeanClass="com.ibm.commerce.common.objects.StoreEntity"> <ResourceAction Name="EXT_ManageSearchTermAssociation"/> </ResourceCategory> <ActionGroup Name="EXT_ManageSearchTermAssociation" OwnerID="RootOrganization"> <ActionGroupAction Name="EXT_ManageSearchTermAssociation"/> </ActionGroup> </Policies>
-
Set up a new set of policies that are associated to the new action group and user group.
Copy and paste the following code block before the closing
</Policies>
tag to create new policies for managing search term associations.<Policy Name="ExtSearchTermAssociationManagersForOrgExecuteManageSearchTermAssociationActionsOnStoreEntityResource" OwnerID="RootOrganization" UserGroup="ExtSearchTermAssociationManagersForOrg" ActionGroupName="EXT_ManageSearchTermAssociation" ResourceGroupName="StoreEntityDataResourceGroup" PolicyType="groupableTemplate" /> <PolicyGroup Name="ManagementAndAdministrationPolicyGroup" OwnerID="RootOrganization"> <PolicyGroupPolicy Name="ExtSearchTermAssociationManagersForOrgExecuteManageSearchTermAssociationActionsOnStoreEntityResource" PolicyOwnerID="RootOrganization"/> </PolicyGroup>
-
Update the user group that is associated with the existing set of policies for managing the
business objects to the new user group.
Copy and paste the following code block before the closing
</Policies>
tag. The following policies for managing search term associations change the name of the user group fromCatalogEntryManagersForOrg
toExtSearchTermAssociationManagersForOrg
.<Policy Name="Search-SearchTermAssociation-SearchTermAssociationManagersForOrg-Policy" OwnerID="RootOrganization" UserGroup="ExtSearchTermAssociationManagersForOrg" ActionGroupName="Search-SearchTermAssociation-SearchTermAssociationManagersForOrg-ActionGroup" ResourceGroupName="Search-SearchTermAssociation-ResourceGroup" PolicyType="groupableTemplate"/>
-
Create display names and descriptions of the policies.
- Update the target database information (see Step 3 of acpload utility).
- Stop your HCL Commerce Test Server.
-
Load your customized XML files.