public class CdmAuthorityCompositeViewer
extends org.eclipse.jface.viewers.ContentViewer
CdmAuthorityComposite
used in the editing of CDM Authorities.Constructor and Description |
---|
CdmAuthorityCompositeViewer(org.eclipse.swt.widgets.Composite composite,
IDirtyMarkable dirtyMarkerEditor,
eu.etaxonomy.cdm.model.common.Group group)
Creates a viewer with a
CdmAuthorityComposite table, Group object as input |
Modifier and Type | Method and Description |
---|---|
void |
addCdmAuthority(eu.etaxonomy.cdm.model.common.CdmBase cb)
Adds a new
CdmAuthority to the group attached to this viewer
based on the input CdmBase object. |
void |
clearNewCdmAuthorities()
Empty the list of newly create autrity objects
|
java.util.List<eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl> |
getCdmAuthorities() |
CdmAuthorityComposite |
getCdmAuthorityComposite()
Gets the
CdmAuthorityComposite |
org.eclipse.swt.widgets.Control |
getControl() |
java.util.List<eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl> |
getNewCdmAuthorities() |
org.eclipse.jface.viewers.ISelection |
getSelection() |
boolean |
isDirty() |
void |
refresh() |
void |
removeCdmAuthority(eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl gai)
Removes the given
GrantedAuthorityImpl object from the list of
granted authorities belonging to the group attached to this viewer. |
void |
save() |
void |
setSelection(org.eclipse.jface.viewers.ISelection selection,
boolean reveal) |
java.util.List<eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl> |
updateAuthorities()
Retrieves the
GrantedAuthorityImpl objects of the group attached to this viewer
creates a sub-list of only CdmAuthority objects. |
eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl |
updateGrantedAuthority(eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl grantedAuthorityI,
eu.etaxonomy.cdm.persistence.hibernate.permission.CdmAuthority cdmAuthority)
Updates an existing
GrantedAuthorityImpl object using a CdmAuthority object. |
getContentProvider, getInput, getLabelProvider, handleDispose, handleLabelProviderChanged, hookControl, labelProviderChanged, setContentProvider, setInput, setLabelProvider
public CdmAuthorityCompositeViewer(org.eclipse.swt.widgets.Composite composite, IDirtyMarkable dirtyMarkerEditor, eu.etaxonomy.cdm.model.common.Group group)
CdmAuthorityComposite
table, Group
object as inputcomposite
- parent of generated CdmAuthorityComposite
dirtyMarkerEditor
- provider to mark as dirtygroup
- input data objectpublic CdmAuthorityComposite getCdmAuthorityComposite()
CdmAuthorityComposite
CdmAuthorityComposite
generated by this viewerpublic java.util.List<eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl> updateAuthorities()
GrantedAuthorityImpl
objects of the group attached to this viewer
creates a sub-list of only CdmAuthority
objects.CdmAuthority
objects belonging to the input grouppublic boolean isDirty()
public void addCdmAuthority(eu.etaxonomy.cdm.model.common.CdmBase cb)
CdmAuthority
to the group attached to this viewer
based on the input CdmBase
object.cb
- CdmBase
object used to construct the cdm authoritypublic void removeCdmAuthority(eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl gai)
GrantedAuthorityImpl
object from the list of
granted authorities belonging to the group attached to this viewer.gai
- GrantedAuthorityImpl
object to removepublic eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl updateGrantedAuthority(eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl grantedAuthorityI, eu.etaxonomy.cdm.persistence.hibernate.permission.CdmAuthority cdmAuthority)
GrantedAuthorityImpl
object using a CdmAuthority
object.grantedAuthorityI
- to update.cdmAuthority
- to use in updating the granted authority object.public java.util.List<eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl> getCdmAuthorities()
public java.util.List<eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl> getNewCdmAuthorities()
public void clearNewCdmAuthorities()
public void save()
public org.eclipse.swt.widgets.Control getControl()
getControl
in class org.eclipse.jface.viewers.Viewer
public org.eclipse.jface.viewers.ISelection getSelection()
getSelection
in interface org.eclipse.jface.viewers.ISelectionProvider
getSelection
in class org.eclipse.jface.viewers.Viewer
public void refresh()
refresh
in class org.eclipse.jface.viewers.Viewer
public void setSelection(org.eclipse.jface.viewers.ISelection selection, boolean reveal)
setSelection
in class org.eclipse.jface.viewers.Viewer
Copyright © 2007-2018. All Rights Reserved.