Revision b158bece
Added by Andreas Kohlbecker over 11 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/MultiPageTaxonEditor.java | ||
---|---|---|
50 | 50 |
*/ |
51 | 51 |
public class MultiPageTaxonEditor extends FormEditor implements |
52 | 52 |
IConversationEnabled, IPostOperationEnabled, |
53 |
IDirtyMarkableSelectionProvider, IPartContentHasDetails { |
|
53 |
IDirtyMarkableSelectionProvider, IPartContentHasDetails, ISecuredEditor {
|
|
54 | 54 |
|
55 | 55 |
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.taxon"{trunked}</code> */ |
56 | 56 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.taxon"; |
... | ... | |
535 | 535 |
public String toString() { |
536 | 536 |
return String.format("%s[%s]", this.getClass().getSimpleName(), getEditorInput()); |
537 | 537 |
} |
538 |
|
|
539 |
@Override |
|
540 |
public boolean permissionsSatisfied() { |
|
541 |
IEditorPart activeEditor = getActiveEditor(); |
|
542 |
if(activeEditor != null && ISecuredEditor.class.isAssignableFrom(activeEditor.getClass())){ |
|
543 |
return ((ISecuredEditor)activeEditor).permissionsSatisfied(); |
|
544 |
} |
|
545 |
return true; |
|
546 |
} |
|
538 | 547 |
} |
Also available in: Unified diff
done: #3097 (disable editors if a user has insufficient grants for a taxon or taxon node)