Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/service-accounts' into feature/consistency-update
- Loading branch information
Showing
101 changed files
with
3,114 additions
and
1,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
...in-gui/src/main/java/com/evolveum/midpoint/gui/api/component/ChooseMemberForOrgPopup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* | ||
* Copyright (c) 2010-2018 Evolveum | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.evolveum.midpoint.gui.api.component; | ||
|
||
import com.evolveum.midpoint.gui.api.component.tabs.CountablePanelTab; | ||
import com.evolveum.midpoint.schema.constants.ObjectTypes; | ||
import com.evolveum.midpoint.schema.constants.RelationTypes; | ||
|
||
/** | ||
* Created by honchar | ||
*/ | ||
|
||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType; | ||
import org.apache.wicket.ajax.AjaxRequestTarget; | ||
import org.apache.wicket.extensions.markup.html.tabs.ITab; | ||
import org.apache.wicket.markup.html.WebMarkupContainer; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public abstract class ChooseMemberForOrgPopup<O extends ObjectType> extends ChooseMemberPopup<O, OrgType> { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public ChooseMemberForOrgPopup(String id, List<RelationTypes> availableRelationList){ | ||
super(id, availableRelationList); | ||
} | ||
|
||
@Override | ||
protected List<ITab> createAssignmentTabs() { | ||
List<ITab> tabs = super.createAssignmentTabs(); | ||
tabs.add(new CountablePanelTab(getPageBase().createStringResource("chooseMemberForOrgPopup.otherTypesLabel"), null) { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
@Override | ||
public WebMarkupContainer createPanel(String panelId) { | ||
return new MultiTypesMemberPopupTabPanel(panelId, availableRelationList){ | ||
private static final long serialVersionUID = 1L; | ||
|
||
@Override | ||
protected void onSelectionPerformed(AjaxRequestTarget target){ | ||
tabLabelPanelUpdate(target); | ||
} | ||
|
||
@Override | ||
protected OrgType getAbstractRoleTypeObject(){ | ||
return ChooseMemberForOrgPopup.this.getAssignmentTargetRefObject(); | ||
} | ||
}; | ||
} | ||
|
||
@Override | ||
public String getCount() { | ||
return Integer.toString(getTabPanelSelectedCount(getPanel())); | ||
} | ||
}); | ||
return tabs; | ||
} | ||
|
||
} |
Oops, something went wrong.