public abstract class Rights extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.wicket.Component |
component
The component for add Right objects.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Rights(org.apache.wicket.Component component)
Instantiates a new rights.
|
| Modifier and Type | Method and Description |
|---|---|
Rights |
editable(Right... rights)
Adds the given Right objects to this component for the MetaDataKey
EDITABLE |
boolean |
isAuthorized(org.apache.wicket.MetaDataKey<HashSet<Right>> key)
Checks if this component is authorized for the given MetaDataKey.
|
boolean |
isEditable()
Checks if this component is editable.
|
boolean |
isRenderable()
Checks if this component is renderable.
|
protected abstract boolean |
onAuthorized(org.apache.wicket.MetaDataKey<HashSet<Right>> key)
On authorized.
|
Rights |
renderable(Right... rights)
Adds the given Right objects to this component for the MetaDataKey
RENDERABLE |
protected final org.apache.wicket.Component component
protected Rights(org.apache.wicket.Component component)
component - the component for add Right objects.public Rights editable(Right... rights)
EDITABLErights - the Right objects to addpublic boolean isAuthorized(org.apache.wicket.MetaDataKey<HashSet<Right>> key)
key - the MetaDataKey objectpublic boolean isEditable()
public boolean isRenderable()
protected abstract boolean onAuthorized(org.apache.wicket.MetaDataKey<HashSet<Right>> key)
key - the keypublic Rights renderable(Right... rights)
RENDERABLErights - the Right objects to addCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.