Revision c41ac60d
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/group/grantedauthority/CdmAuthorityCompositeViewer.java | ||
---|---|---|
30 | 30 |
import eu.etaxonomy.cdm.model.permission.GrantedAuthorityImpl; |
31 | 31 |
import eu.etaxonomy.cdm.model.permission.Group; |
32 | 32 |
import eu.etaxonomy.cdm.model.term.TermBase; |
33 |
import eu.etaxonomy.cdm.persistence.hibernate.permission.CdmAuthority;
|
|
33 |
import eu.etaxonomy.cdm.persistence.permission.CdmAuthority; |
|
34 | 34 |
import eu.etaxonomy.taxeditor.model.IDirtyMarkable; |
35 | 35 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
36 | 36 |
|
37 |
|
|
38 |
|
|
39 | 37 |
/** |
40 | 38 |
* Viewer class for the {@link CdmAuthorityComposite} used in the editing of CDM Authorities. |
41 | 39 |
* |
42 | 40 |
* @author cmathew |
43 | 41 |
* @created Mar 28, 2013 |
44 |
* |
|
45 | 42 |
*/ |
46 |
|
|
47 |
|
|
48 | 43 |
//FIXME:move warning dialogs to the table class |
49 | 44 |
public class CdmAuthorityCompositeViewer extends ContentViewer { |
50 | 45 |
|
... | ... | |
105 | 100 |
public List<GrantedAuthorityImpl> updateAuthorities() { |
106 | 101 |
// get all granted authorities |
107 | 102 |
Set<GrantedAuthority> grantedAuthorities = group.getGrantedAuthorities(); |
108 |
cdmAuthorities = new ArrayList<GrantedAuthorityImpl>();
|
|
103 |
cdmAuthorities = new ArrayList<>(); |
|
109 | 104 |
|
110 | 105 |
Iterator<GrantedAuthority> itr = grantedAuthorities.iterator(); |
111 | 106 |
while (itr.hasNext()) { |
Also available in: Unified diff
adapt TaxEditor to new package structure for persistence.permission and format.description and some cleanup