public String check( Naked[] values) { OneToManyAssociationInstance otmai = getOneToManyAssociationInstance(); boolean isVisible = otmai.getOneToManyAssociation().isVisible(otmai.getNakedObject()); return isVisible?null:"Hidden"; }
protected Annotation getAnnotation(OneToManyAssociationInstance otmai, Class annotationClazz) { return (Annotation) otmai.getOneToManyAssociation().getExtension(annotationClazz); }
public String check( Naked[] values) { return getOneToManyAssociationInstance().getOneToManyAssociation().isVisible()?null:"Hidden"; }
public String check( Naked[] values) { final Consent usable = getOneToManyAssociationInstance().getOneToManyAssociation().isUsable(getOneToManyAssociationInstance().getNakedObject()); return usable.isAllowed()?null:usable.getReason(); }
protected Annotation getAnnotation(final Class annotationClazz) { return (Annotation) getOneToManyAssociationInstance().getOneToManyAssociation().getExtension(annotationClazz); }
public String check( Naked[] values) { NakedObject nakedObject = getArgument(values); final Consent validToAdd = getOneToManyAssociationInstance().getOneToManyAssociation().isValidToAdd(getOneToManyAssociationInstance().getNakedObject(), nakedObject); return validToAdd.isAllowed()?null:validToAdd.getReason(); }
public OneToManyAssociationInstance getOneToManyAssociation( OneToManyAssociation field) { OneToManyAssociationInstance[] oneToManyAssociationInstances = getOneToManyAssociationInstances(); for(int i=0; i<oneToManyAssociationInstances.length; i++) { if (oneToManyAssociationInstances[i].getOneToManyAssociation() == field) { return oneToManyAssociationInstances[i]; } } return null; }
public String check( Naked[] values) { NakedObject nakedObject = getArgument(values); final Consent validToRemove = getOneToManyAssociationInstance().getOneToManyAssociation().isValidToRemove(getOneToManyAssociationInstance().getNakedObject(), nakedObject); return validToRemove.isAllowed()?null:validToRemove.getReason(); }
public OneToManyAssociationInstance getOneToManyAssociation( OneToManyAssociation field) { OneToManyAssociationInstance[] oneToManyAssociationInstances = getOneToManyAssociationInstances(); for(int i=0; i<oneToManyAssociationInstances.length; i++) { if (oneToManyAssociationInstances[i].getOneToManyAssociation() == field) { return oneToManyAssociationInstances[i]; } } return null; }
public String check( Naked[] values) { final Consent usable = getOneToManyAssociationInstance().getOneToManyAssociation().isUsable(); return usable.isAllowed()?null:usable.getReason(); }