public Builder otherEnd(final String otherEndType, final String otherEndKey) { instance.setOtherEndType(otherEndType); instance.setOtherEndKey(otherEndKey); return this; }
public Builder otherEnd(final String otherEndType, final String otherEndKey) { instance.setOtherEndType(otherEndType); instance.setOtherEndKey(otherEndKey); return this; }
public Builder otherEnd(final String otherEndType, final String otherEndKey, final String otherEndName) { instance.setOtherEndType(otherEndType); instance.setOtherEndKey(otherEndKey); instance.setOtherEndName(otherEndName); return this; }
public Builder otherEnd(final String otherEndType, final String otherEndKey, final String otherEndName) { instance.setOtherEndType(otherEndType); instance.setOtherEndKey(otherEndKey); instance.setOtherEndName(otherEndName); return this; }
@Override public void onEvent(final IEvent<?> event) { if (event.getPayload() instanceof SearchClausePanel.SearchEvent) { final AjaxRequestTarget target = SearchClausePanel.SearchEvent.class.cast(event.getPayload()). getTarget(); final String fiql = SearchUtils.buildFIQL(anyObjectSearchPanel.getModel().getObject(), SyncopeClient.getAnyObjectSearchConditionBuilder(anyObjectSearchPanel.getBackObjectType())); AnyDirectoryPanel.class.cast(Specification.this.anyObjectDirectoryPanel).search(fiql, target); } else if (event.getPayload() instanceof AnySelectionDirectoryPanel.ItemSelection) { final AjaxRequestTarget target = AnySelectionDirectoryPanel.ItemSelection.class.cast(event. getPayload()).getTarget(); AnyTO right = AnySelectionDirectoryPanel.ItemSelection.class.cast(event.getPayload()).getSelection(); rel.setOtherEndKey(right.getKey()); Relationships.this.addNewRelationships(rel); Relationships.this.addOrReplace(getViewFragment().setRenderBodyOnly(true)); target.add(Relationships.this); } else { super.onEvent(event); } } }