NO_ADMIN_ROLE fixed
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/grsf-manage-widget@142660 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a864f1e8d5
commit
e5c98eebb8
|
@ -90,8 +90,8 @@ public class ManageProductWidget extends Composite{
|
||||||
protected static final String ERROR_ON_RETRIEVING_BEAN = "It seems there was a problem while contacting the service...";
|
protected static final String ERROR_ON_RETRIEVING_BEAN = "It seems there was a problem while contacting the service...";
|
||||||
protected static final String NO_GRSF_RECORD_BEAN = "This item is not a GRSF record, thus it cannot be managed";
|
protected static final String NO_GRSF_RECORD_BEAN = "This item is not a GRSF record, thus it cannot be managed";
|
||||||
|
|
||||||
protected static final String ERROR_ON_ROLE_CHECK = "Sorry but the service was not able to check if you have the rights to manage an item."
|
protected static final String NO_ADMIN_ROLE = "Sorry but it seems you do not have the rights to manage items."
|
||||||
+ " You are suggested to contact the VRE Manager.";
|
+ " You are suggested to contact the VRE Manager if something is wrong.";
|
||||||
private ManageProductBean bean;
|
private ManageProductBean bean;
|
||||||
|
|
||||||
public ManageProductWidget(String productIdentifier) {
|
public ManageProductWidget(String productIdentifier) {
|
||||||
|
@ -124,7 +124,7 @@ public class ManageProductWidget extends Composite{
|
||||||
|
|
||||||
if(!result){
|
if(!result){
|
||||||
|
|
||||||
showInfo(ERROR_ON_ROLE_CHECK, AlertType.ERROR);
|
showInfo(NO_ADMIN_ROLE, AlertType.ERROR);
|
||||||
|
|
||||||
// hide the form and disable the send button
|
// hide the form and disable the send button
|
||||||
formUpdate.setVisible(false);
|
formUpdate.setVisible(false);
|
||||||
|
@ -183,7 +183,7 @@ public class ManageProductWidget extends Composite{
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
|
|
||||||
showInfo(ERROR_ON_ROLE_CHECK, AlertType.ERROR);
|
showInfo(NO_ADMIN_ROLE, AlertType.ERROR);
|
||||||
|
|
||||||
// hide the form and disable the send button
|
// hide the form and disable the send button
|
||||||
formUpdate.setVisible(false);
|
formUpdate.setVisible(false);
|
||||||
|
|
Loading…
Reference in New Issue