Monday 20 June 2011

Access control policy for RequisitionListWriteCommands for same account users

  <Policy Name="AllUsersExecuteRequisitionListWriteCommandsOnRequisitionListResource"
         OwnerID="RootOrganization"
         UserGroup="AllUsers"
         ActionGroupName="RequisitionListWriteCommands"
         ResourceGroupName="RequisitionListResourceGroup"
         RelationName="sameOrganizationalEntityAsCreator"
         PolicyType="groupableTemplate">
    </Policy>

Saturday 18 June 2011

How to delete a record using Access Bean in WCS

Suppose you have to delete an order item from a order and you wana to do it by using acces bean then use the following code

OrderItemAccessBean orderItemAb = new OrderItemAccessBean();
orderItemAb.setInt_Key(orderItemId);
orderItemAb.getEJBRef().remove();

How to customize java.util.logging.Logger class to write logs in separate file than System.out.log in Websphere commerce/ HCL commerce)

/** * This method updated the passed in java.util.logging.Logger object with * custom file handler to write logs data form that class ...