public boolean isMergeableWith(Model model) { if (!(model instanceof SecuredModel)) { return false; } SecuredModel secured = (SecuredModel) model; return ObjectUtils.nullSafeEquals(getAttributes(), secured.getAttributes()); }
public void merge(Model model) { SecuredModel secured = (SecuredModel) model; setMatch(merge(getMatch(), secured.getMatch())); }