Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feature/breadcrumbs
Conflicts: gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/api/page/PageBase.java
- Loading branch information
Showing
208 changed files
with
23,146 additions
and
18,385 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE m_abstract_role ADD ownerRef_relation VARCHAR(157); | ||
ALTER TABLE m_abstract_role ADD ownerRef_targetOid VARCHAR(36); | ||
ALTER TABLE m_abstract_role ADD ownerRef_type INTEGER; | ||
|
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
5 changes: 5 additions & 0 deletions
5
config/sql/midpoint/3.4/mysql/mysql-upgrade-3.4-SNAPSHOT-2.sql
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,5 @@ | ||
ALTER TABLE m_abstract_role | ||
ADD ownerRef_relation VARCHAR(157), | ||
ADD ownerRef_targetOid VARCHAR(36), | ||
ADD ownerRef_type INTEGER; | ||
|
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
6 changes: 6 additions & 0 deletions
6
config/sql/midpoint/3.4/oracle/oracle-upgrade-3.4-SNAPSHOT-2.sql
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,6 @@ | ||
ALTER TABLE m_abstract_role ADD ( | ||
ownerRef_relation VARCHAR2(157 CHAR), | ||
ownerRef_targetOid VARCHAR2(36 CHAR), | ||
ownerRef_type NUMBER(10, 0) | ||
); | ||
|
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
5 changes: 5 additions & 0 deletions
5
config/sql/midpoint/3.4/postgresql/postgresql-upgrade-3.3-3.4.sql
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
5 changes: 5 additions & 0 deletions
5
config/sql/midpoint/3.4/postgresql/postgresql-upgrade-3.4-SNAPSHOT-2.sql
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,5 @@ | ||
ALTER TABLE m_abstract_role | ||
ADD ownerRef_relation VARCHAR(157), | ||
ADD ownerRef_targetOid VARCHAR(36), | ||
ADD ownerRef_type INT4; | ||
|
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
5 changes: 5 additions & 0 deletions
5
config/sql/midpoint/3.4/sqlserver/sqlserver-upgrade-3.3-3.4.sql
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
5 changes: 5 additions & 0 deletions
5
config/sql/midpoint/3.4/sqlserver/sqlserver-upgrade-3.4-SNAPSHOT-2.sql
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,5 @@ | ||
ALTER TABLE m_abstract_role ADD | ||
ownerRef_relation NVARCHAR(157) COLLATE database_default, | ||
ownerRef_targetOid NVARCHAR(36) COLLATE database_default, | ||
ownerRef_type INT; | ||
|
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
32 changes: 32 additions & 0 deletions
32
...ui/src/main/java/com/evolveum/midpoint/gui/api/component/result/ValidationErrorPanel.html
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,32 @@ | ||
<!-- | ||
~ Copyright (c) 2010-2014 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. | ||
--> | ||
<html xmlns:wicket="http://wicket.apache.org"> | ||
<body> | ||
<wicket:panel> | ||
<div class="feedback-message box box-solid" wicket:id="detailsBox"> | ||
<div class="box-header with-border"> | ||
<i class="icon fa " wicket:id="iconType"></i> | ||
<b class="box-title" wicket:id="message"> | ||
</b> | ||
<div class="box-tools pull-right"> | ||
<div wicket:id="close" data-widget="remove" class="btn btn-box-tool fa fa-times"></div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</wicket:panel> | ||
</body> | ||
</html> |
132 changes: 132 additions & 0 deletions
132
...ui/src/main/java/com/evolveum/midpoint/gui/api/component/result/ValidationErrorPanel.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,132 @@ | ||
package com.evolveum.midpoint.gui.api.component.result; | ||
|
||
import java.io.Serializable; | ||
|
||
import org.apache.wicket.AttributeModifier; | ||
import org.apache.wicket.ajax.AjaxRequestTarget; | ||
import org.apache.wicket.ajax.markup.html.AjaxLink; | ||
import org.apache.wicket.behavior.AttributeAppender; | ||
import org.apache.wicket.feedback.FeedbackMessage; | ||
import org.apache.wicket.markup.html.WebMarkupContainer; | ||
import org.apache.wicket.markup.html.basic.Label; | ||
import org.apache.wicket.model.AbstractReadOnlyModel; | ||
import org.apache.wicket.model.IModel; | ||
import org.apache.wicket.model.PropertyModel; | ||
|
||
import com.evolveum.midpoint.gui.api.component.BasePanel; | ||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
|
||
public class ValidationErrorPanel extends BasePanel<FeedbackMessage> { | ||
|
||
private static final String ID_MESSAGE = "message"; | ||
|
||
static final String OPERATION_RESOURCE_KEY_PREFIX = "operation."; | ||
|
||
private static final Trace LOGGER = TraceManager.getTrace(OperationResultPanel.class); | ||
|
||
public ValidationErrorPanel(String id, IModel<FeedbackMessage> model) { | ||
super(id, model); | ||
|
||
initLayout(); | ||
} | ||
|
||
public void initLayout() { | ||
|
||
WebMarkupContainer detailsBox = new WebMarkupContainer("detailsBox"); | ||
detailsBox.setOutputMarkupId(true); | ||
detailsBox.add(AttributeModifier.append("class", createHeaderCss())); | ||
add(detailsBox); | ||
|
||
initHeader(detailsBox); | ||
|
||
} | ||
|
||
private IModel<String> createHeaderCss() { | ||
|
||
return new AbstractReadOnlyModel<String>() { | ||
|
||
@Override | ||
public String getObject() { | ||
FeedbackMessage result = getModelObject(); | ||
|
||
if (result == null) { | ||
return " box-warning"; | ||
} | ||
|
||
switch (result.getLevel()) { | ||
case FeedbackMessage.INFO: | ||
case FeedbackMessage.DEBUG: | ||
return " box-info"; | ||
case FeedbackMessage.SUCCESS: | ||
return " box-success"; | ||
case FeedbackMessage.ERROR: | ||
case FeedbackMessage.FATAL: | ||
return " box-danger"; | ||
case FeedbackMessage.UNDEFINED: | ||
case FeedbackMessage.WARNING: // TODO: | ||
default: | ||
return " box-warning"; | ||
} | ||
} | ||
|
||
}; | ||
} | ||
|
||
private void initHeader(WebMarkupContainer box) { | ||
WebMarkupContainer iconType = new WebMarkupContainer("iconType"); | ||
iconType.setOutputMarkupId(true); | ||
iconType.add(new AttributeAppender("class", new AbstractReadOnlyModel() { | ||
@Override | ||
public Object getObject() { | ||
|
||
FeedbackMessage result = getModelObject(); | ||
|
||
if (result == null) { | ||
return " fa-info"; | ||
} | ||
|
||
switch (result.getLevel()) { | ||
case FeedbackMessage.INFO: | ||
case FeedbackMessage.DEBUG: | ||
return " fa-info"; | ||
case FeedbackMessage.SUCCESS: | ||
return " fa-check"; | ||
case FeedbackMessage.ERROR: | ||
case FeedbackMessage.FATAL: | ||
return " fa-ban"; | ||
case FeedbackMessage.UNDEFINED: | ||
case FeedbackMessage.WARNING: // TODO: | ||
default: | ||
return " fa-warning"; | ||
} | ||
} | ||
|
||
})); | ||
|
||
box.add(iconType); | ||
|
||
Label message = new Label(ID_MESSAGE, new PropertyModel<Serializable>(getModel(), "message")); | ||
box.add(message); | ||
|
||
AjaxLink close = new AjaxLink("close") { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
@Override | ||
public void onClick(AjaxRequestTarget target) { | ||
close(target); | ||
|
||
} | ||
}; | ||
|
||
box.add(close); | ||
|
||
|
||
} | ||
|
||
public void close(AjaxRequestTarget target){ | ||
this.setVisible(false); | ||
target.add(this); | ||
} | ||
} |
Oops, something went wrong.