/** * Construct. * * @param pageRef Caller page reference. */ public RealmWizardBuilder(final PageReference pageRef) { super(new RealmTO(), pageRef); }
@Override protected void onClickCreate(final AjaxRequestTarget target) { this.wizardBuilder.setParentPath(realmChoicePanel.getCurrentRealm().getFullPath()); send(this, Broadcast.EXACT, new AjaxWizard.NewItemActionEvent<RealmTO>(new RealmTO(), target) { @Override public String getEventDescription() { return "realm.new"; } }); }
public RealmTO getRealmTO(final ConnectorObject obj, final PullTask task, final OrgUnit orgUnit) { RealmTO realmTO = new RealmTO(); MappingUtils.getPullItems(orgUnit.getItems()).forEach(item -> { mappingManager.setIntValues(item, obj.getAttributeByName(item.getExtAttrName()), realmTO); }); return realmTO; }
final RealmTO realmTO = new RealmTO(); realmTO.setKey(dynRealmTO.getKey()); realmTO.setName(dynRealmTO.getKey());
@Override public RealmTO getRealmTO(final Realm realm, final boolean admin) { RealmTO realmTO = new RealmTO(); realmTO.setKey(realm.getKey()); realmTO.setName(realm.getName()); realmTO.setParent(realm.getParent() == null ? null : realm.getParent().getKey()); realmTO.setFullPath(realm.getFullPath()); if (admin) { realmTO.setAccountPolicy(realm.getAccountPolicy() == null ? null : realm.getAccountPolicy().getKey()); realmTO.setPasswordPolicy(realm.getPasswordPolicy() == null ? null : realm.getPasswordPolicy().getKey()); realm.getActions().forEach(action -> { realmTO.getActions().add(action.getKey()); }); realm.getTemplates().forEach(template -> { realmTO.getTemplates().put(template.getAnyType().getKey(), template.get()); }); realm.getResources().forEach(resource -> { realmTO.getResources().add(resource.getKey()); }); } return realmTO; }
final RealmTO realmTO = new RealmTO(); realmTO.setKey(dynRealmTO.getKey()); realmTO.setName(dynRealmTO.getKey());
tree = new HashMap<>(); RealmTO fakeRootRealm = new RealmTO(); fakeRootRealm.setName(SyncopeConstants.ROOT_REALM); fakeRootRealm.setFullPath(SyncopeConstants.ROOT_REALM);