Changeset 4242 for extensions/net.sf.basedb.examples/trunk/src
- Timestamp:
- Nov 18, 2016, 1:17:45 PM (6 years ago)
- Location:
- extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/overview/OwnerValidatorFactory.java
r1603 r4242 22 22 23 23 import net.sf.basedb.core.Item; 24 import net.sf.basedb.core.User; 24 25 import net.sf.basedb.util.extensions.ActionFactory; 25 26 import net.sf.basedb.util.extensions.InvokationContext; … … 34 35 */ 35 36 public class OwnerValidatorFactory 36 implements ActionFactory<NodeValidatorAction >37 implements ActionFactory<NodeValidatorAction<User>> 37 38 { 38 39 … … 50 51 */ 51 52 @Override 52 public boolean prepareContext(InvokationContext<? super NodeValidatorAction > context)53 public boolean prepareContext(InvokationContext<? super NodeValidatorAction<User>> context) 53 54 { 54 55 return context.getClientContext().getCurrentItem() == Item.USER; … … 58 59 Create the {@link OwnerValidator} action. 59 60 */ 61 @SuppressWarnings("unchecked") 60 62 @Override 61 public NodeValidatorAction [] getActions(InvokationContext<? super NodeValidatorAction> context)63 public NodeValidatorAction<User>[] getActions(InvokationContext<? super NodeValidatorAction<User>> context) 62 64 { 63 65 return new NodeValidatorAction[] { new OwnerValidator() }; -
extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/overview/RoleValidatorFactory.java
r1603 r4242 22 22 23 23 import net.sf.basedb.core.Item; 24 import net.sf.basedb.core.Role; 24 25 import net.sf.basedb.util.extensions.ActionFactory; 25 26 import net.sf.basedb.util.extensions.InvokationContext; … … 34 35 */ 35 36 public class RoleValidatorFactory 36 implements ActionFactory<NodeValidatorAction >37 implements ActionFactory<NodeValidatorAction<Role>> 37 38 { 38 39 … … 50 51 */ 51 52 @Override 52 public boolean prepareContext(InvokationContext<? super NodeValidatorAction > context)53 public boolean prepareContext(InvokationContext<? super NodeValidatorAction<Role>> context) 53 54 { 54 55 return context.getClientContext().getCurrentItem() == Item.ROLE; … … 58 59 Create the {@link RoleValidator} action. 59 60 */ 61 @SuppressWarnings("unchecked") 60 62 @Override 61 public NodeValidatorAction [] getActions(InvokationContext<? super NodeValidatorAction> context)63 public NodeValidatorAction<Role>[] getActions(InvokationContext<? super NodeValidatorAction<Role>> context) 62 64 { 63 65 return new NodeValidatorAction[] { new RoleValidator() }; -
extensions/net.sf.basedb.examples/trunk/src/net/sf/basedb/examples/extensions/toolbar/InfoButtonFactory.java
r2204 r4242 53 53 54 54 @Override 55 public ButtonAction[] getActions(InvokationContext context)55 public ButtonAction[] getActions(InvokationContext<? super ButtonAction> context) 56 56 { 57 57 ButtonAction[] actions = null;
Note: See TracChangeset
for help on using the changeset viewer.