If you are using an existing WebSphere Commerce entity bean and
your application requires that the bean be protected by access control, you
can add this protection.
About this task
The following list provides the high-level steps protect an existing
WebSphere Commerce entity bean under the WebSphere Commerce access control
system:
Procedure
- Open the BeanName.java class. This is the remote
interface. Modify this so that it extends the
com.ibm.commerce.security.Protectable
interface.
- If a resource is going to be grouped by an attribute other than
its Java class name for the purpose of applying access control policies, the
remote interface of the bean must also extend the
com.ibm.commerce.grouping.Groupable
interface.
- Save your changes to the remote interface.
- Open the BeanNameBean.java class, where BeanName is
the name of the entity bean to which you are adding access control protection.
- The enterprise bean class inherits default implementations for
the following methods from com.ibm.commerce.base.objects.ECEntityBean:
- Save your changes. Regenerate the deployed and RMIC code for the
bean, as well as the corresponding access bean.