Revision 071c2929
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/ReferencePopupEditor.java | ||
---|---|---|
9 | 9 |
package eu.etaxonomy.cdm.vaadin.view.registration; |
10 | 10 |
|
11 | 11 |
import java.util.Arrays; |
12 |
import java.util.Collection; |
|
12 | 13 |
|
13 | 14 |
import org.springframework.beans.factory.annotation.Autowired; |
14 | 15 |
import org.springframework.context.annotation.Scope; |
16 |
import org.springframework.security.core.GrantedAuthority; |
|
15 | 17 |
|
16 | 18 |
import com.vaadin.spring.annotation.SpringComponent; |
17 | 19 |
import com.vaadin.ui.GridLayout; |
... | ... | |
21 | 23 |
import eu.etaxonomy.cdm.model.reference.Reference; |
22 | 24 |
import eu.etaxonomy.cdm.model.reference.ReferenceType; |
23 | 25 |
import eu.etaxonomy.cdm.vaadin.component.TimePeriodField; |
26 |
import eu.etaxonomy.cdm.vaadin.security.AccessRestrictedView; |
|
24 | 27 |
import eu.etaxonomy.vaadin.mvp.AbstractPopupEditor; |
25 | 28 |
|
26 | 29 |
/** |
... | ... | |
31 | 34 |
|
32 | 35 |
@SpringComponent |
33 | 36 |
@Scope("prototype") |
34 |
public class ReferencePopupEditor extends AbstractPopupEditor<Reference, ReferenceEditorPresenter> implements ReferencePopupEditorView { |
|
37 |
public class ReferencePopupEditor extends AbstractPopupEditor<Reference, ReferenceEditorPresenter> implements ReferencePopupEditorView, AccessRestrictedView {
|
|
35 | 38 |
|
36 | 39 |
private static final long serialVersionUID = -4347633563800758815L; |
37 | 40 |
|
... | ... | |
156 | 159 |
setPresenter(presenter); |
157 | 160 |
} |
158 | 161 |
|
162 |
/** |
|
163 |
* {@inheritDoc} |
|
164 |
*/ |
|
165 |
@Override |
|
166 |
public boolean allowAnonymousAccess() { |
|
167 |
return false; |
|
168 |
} |
|
169 |
|
|
170 |
/** |
|
171 |
* {@inheritDoc} |
|
172 |
*/ |
|
173 |
@Override |
|
174 |
public Collection<Collection<GrantedAuthority>> allowedGrantedAuthorities() { |
|
175 |
return null; |
|
176 |
} |
|
177 |
|
|
159 | 178 |
|
160 | 179 |
|
161 | 180 |
} |
Also available in: Unified diff
View based authentication with login dialog