Skip to content

Commit

Permalink
MID-8039 account details no panels defined fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Sep 28, 2022
1 parent 4b82494 commit ff68e42
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public ShadowDetailsModel(LoadableDetachableModel<PrismObject<ShadowType>> prism
super(prismObjectModel, serviceLocator);
}

protected GuiObjectDetailsPageType loadDetailsPageConfiguration(PrismObject<ShadowType> prismObject) {
@Override
protected GuiObjectDetailsPageType loadDetailsPageConfiguration() {
return getModelServiceLocator().getCompiledGuiProfile().findShadowDetailsConfiguration(createResourceShadowCoordinates(getPrismObject().asObjectable()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@
import com.evolveum.midpoint.web.application.PanelDisplay;
import com.evolveum.midpoint.web.application.PanelInstance;
import com.evolveum.midpoint.web.application.PanelType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ContainerPanelConfigurationType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.OperationTypeType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;

@PanelType(name = "resourceAccounts")
@PanelInstance(identifier = "resourceAccounts", applicableForOperation = OperationTypeType.MODIFY, applicableForType = ResourceType.class,
display = @PanelDisplay(label = "PageResource.tab.content.account", icon = GuiStyleConstants.CLASS_SHADOW_ICON_ACCOUNT, order = 50))
@PanelInstance(
identifier = "resourceAccounts",
applicableForOperation = OperationTypeType.MODIFY,
applicableForType = ResourceType.class,
display =
@PanelDisplay(
label = "PageResource.tab.content.account",
icon = GuiStyleConstants.CLASS_SHADOW_ICON_ACCOUNT,
order = 50
)
)
public class ResourceAccountsPanel extends ResourceContentPanel {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@
import com.evolveum.midpoint.web.application.PanelDisplay;
import com.evolveum.midpoint.web.application.PanelInstance;
import com.evolveum.midpoint.web.application.PanelType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ContainerPanelConfigurationType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.OperationTypeType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowKindType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;

@PanelType(name = "resourceEntitlements")
@PanelInstance(identifier = "resourceEntitlements", applicableForOperation = OperationTypeType.MODIFY, applicableForType = ResourceType.class,
display = @PanelDisplay(label = "PageResource.tab.content.entitlement", icon = GuiStyleConstants.CLASS_SHADOW_ICON_ENTITLEMENT, order = 60))
@PanelInstance(
identifier = "resourceEntitlements",
applicableForOperation = OperationTypeType.MODIFY,
applicableForType = ResourceType.class,
display =
@PanelDisplay(
label = "PageResource.tab.content.entitlement",
icon = GuiStyleConstants.CLASS_SHADOW_ICON_ENTITLEMENT,
order = 60
)
)
public class ResourceEntitlementsPanel extends ResourceContentPanel {

public ResourceEntitlementsPanel(String id, ResourceDetailsModel model, ContainerPanelConfigurationType config) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,20 @@
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;

@PanelType(name = "shadowBasic", defaultContainerPath = "attributes")
@PanelInstance(identifier = "shadowBasic",
applicableForType = ShadowType.class,
defaultPanel = true,
display = @PanelDisplay(label = "pageAdminFocus.basic", order = 10))
@PanelInstance(
identifier = "shadowBasic",
applicableForType = ShadowType.class,
defaultPanel = true,
display = @PanelDisplay(
label = "pageAdminFocus.basic", order = 10
)
)
public class ShadowDetailsPanel extends AbstractObjectMainPanel<ShadowType, ShadowDetailsModel> {

private static final long serialVersionUID = 1L;

private static final String ID_ACCOUNT = "account";


public ShadowDetailsPanel(String id, ShadowDetailsModel objectWrapperModel, ContainerPanelConfigurationType config) {
super(id, objectWrapperModel, config);
}
Expand All @@ -37,6 +40,4 @@ protected void initLayout() {
ShadowPanel shadowPanel = new ShadowPanel(ID_ACCOUNT, (IModel) getObjectWrapperModel(), getPanelConfiguration());
add(shadowPanel);
}


}

0 comments on commit ff68e42

Please sign in to comment.