1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.ui.section.grantedAuthority;
|
10
|
|
11
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
12
|
import eu.etaxonomy.cdm.model.permission.GrantedAuthorityImpl;
|
13
|
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
|
14
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
15
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
16
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
17
|
|
18
|
/**
|
19
|
* @author a.kohlbecker
|
20
|
* @created Sept 13 2012
|
21
|
*/
|
22
|
public class GrantedAuthorityDetailWizardPage extends AbstractCdmEntityWizardPage<GrantedAuthorityImpl> {
|
23
|
|
24
|
public GrantedAuthorityDetailWizardPage(CdmFormFactory formFactory,
|
25
|
ConversationHolder conversation, GrantedAuthorityImpl entity) {
|
26
|
super(formFactory, conversation, entity);
|
27
|
setTitle("GrantedAuthority");
|
28
|
}
|
29
|
|
30
|
@Override
|
31
|
public AbstractCdmDetailElement<GrantedAuthorityImpl> createElement(
|
32
|
ICdmFormElement rootElement) {
|
33
|
GrantedAuthorityDetailElement authorityElement = formFactory.createGrantedAuthorityDetailElement(rootElement);
|
34
|
authorityElement.setEntity(getEntity());
|
35
|
return authorityElement;
|
36
|
}
|
37
|
|
38
|
}
|