- All Implemented Interfaces:
- APIWrapper<Category>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
public class CategoryWrapper
extends BaseWrapper
implements APIWrapper<Category>
This is a JAXB wrapper for a Broadleaf Category. There may be several reasons to extend this class.
First, you may want to extend Broadleaf's CategroryImpl and expose those extensions via a RESTful
service. You may also want to suppress properties that are being serialized. To expose new properties, or
suppress properties that have been exposed, do the following:
1. Extend this class
2. Override the wrap
method.
3. Within the wrap method, either override all properties that you want to set, or call super.wrap(Category)
4. Set additional property values that you have added.
5. Set super properties to null if you do not want them serialized. (e.g. super.name = null;