Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public abstract class AWUserType<T extends UserType> extends AWType<T> {
- public AWUserType(T o) {
- super(o);
- }
- public List<UserPermissions> getStandardPermissions() {
- return o.standardPermissions;
- }
- public boolean isNeededForTreatment() {
- return o.neededForTreatment;
- }
- public void setNeededForTreatment(boolean neededForTreatment) {
- o.neededForTreatment = neededForTreatment;
- }
- }
- public class WUserType extends AWUserType<UserType> {
- public WUserType(UserType o) {
- super(o);
- }
- /*
- * Static methods needed in order to be able to put this object in a
- * WrapperList
- */
- private static WrapperFactory<UserType, WUserType> factory = null;
- public static WrapperFactory<UserType, WUserType> getFactory() {
- if (factory == null) {
- factory = new WrapperFactory<UserType, WUserType>() {
- @Override
- public WUserType wrap(UserType u) {
- return new WUserType(u);
- }
- };
- }
- return factory;
- }
- }
Add Comment
Please, Sign In to add comment