Revision b32150b1
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorksetViewBean.java | ||
---|---|---|
138 | 138 |
|
139 | 139 |
private RegistrationStatusFieldInstantiator statusFieldInstantiator; |
140 | 140 |
|
141 |
private String accessDeniedMessage; |
|
142 |
|
|
141 | 143 |
public RegistrationWorksetViewBean() { |
142 | 144 |
super(); |
143 | 145 |
} |
... | ... | |
592 | 594 |
new Notification(caption, sb.toString(), Notification.Type.HUMANIZED_MESSAGE, true).show(Page.getCurrent()); |
593 | 595 |
} |
594 | 596 |
|
595 |
/** |
|
596 |
* {@inheritDoc} |
|
597 |
*/ |
|
598 | 597 |
@Override |
599 | 598 |
public boolean allowAnonymousAccess() { |
600 | 599 |
return false; |
601 | 600 |
} |
602 | 601 |
|
603 |
/** |
|
604 |
* {@inheritDoc} |
|
605 |
*/ |
|
606 | 602 |
@Override |
607 | 603 |
public Collection<Collection<GrantedAuthority>> allowedGrantedAuthorities() { |
608 | 604 |
return null; |
609 | 605 |
} |
610 | 606 |
|
607 |
@Override |
|
608 |
public String getAccessDeniedMessage() { |
|
609 |
return accessDeniedMessage; |
|
610 |
} |
|
611 |
|
|
612 |
@Override |
|
613 |
public void setAccessDeniedMessage(String accessDeniedMessage) { |
|
614 |
this.accessDeniedMessage = accessDeniedMessage; |
|
615 |
} |
|
616 |
|
|
611 | 617 |
/** |
612 | 618 |
* @return the addNewNameRegistrationButton |
613 | 619 |
*/ |
Also available in: Unified diff
ref #7833 restricting access to RegistrationWorkingsetView: