Revision 34a75b0a
Added by Andreas Kohlbecker over 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/ui/RegistrationUI.java | ||
---|---|---|
63 | 63 |
protected void configureAccessDeniedView() { |
64 | 64 |
viewProvider.setAccessDeniedViewClass(RedirectToLoginView.class); |
65 | 65 |
} |
66 |
|
|
67 |
/** |
|
68 |
* @return |
|
69 |
*/ |
|
70 |
private String pageFragmentAsState() { |
|
71 |
Page page = Page.getCurrent(); |
|
72 |
String fragment = page.getUriFragment(); |
|
73 |
String state = null; |
|
74 |
if(fragment != null && fragment.startsWith("!")){ |
|
75 |
state = fragment.substring(1, fragment.length()); |
|
76 |
} |
|
77 |
return state; |
|
78 |
} |
|
79 |
|
|
66 | 80 |
//--------------------------------------------- |
67 | 81 |
|
68 | 82 |
public static final String INITIAL_VIEW = DashBoardView.NAME; |
... | ... | |
122 | 136 |
eventBus.publishEvent(new NavigationEvent(INITIAL_VIEW)); |
123 | 137 |
} |
124 | 138 |
} |
125 |
|
|
126 |
/** |
|
127 |
* @return |
|
128 |
*/ |
|
129 |
private String pageFragmentAsState() { |
|
130 |
Page page = Page.getCurrent(); |
|
131 |
String fragment = page.getUriFragment(); |
|
132 |
String state = null; |
|
133 |
if(fragment != null && fragment.startsWith("!")){ |
|
134 |
state = fragment.substring(1, fragment.length()); |
|
135 |
} |
|
136 |
return state; |
|
137 |
} |
|
138 | 139 |
} |
Also available in: Unified diff
minor - lines moved