Package org.appng.api
Class PermissionOwner
- java.lang.Object
-
- org.appng.api.PermissionOwner
-
public final class PermissionOwner extends Object
This is a container for a set ofPermission
s, making it easier for aPermissionProcessor
to check those.- Author:
- Matthias Müller
- See Also:
PermissionProcessor
-
-
Constructor Summary
Constructors Constructor Description PermissionOwner(Action action)
Creates a new PermissionOwner from anAction
.PermissionOwner(ActionRef actionRef)
Creates a new PermissionOwner fromActionRef
.PermissionOwner(Config config)
Creates a new PermissionOwner from aConfig
.PermissionOwner(Datasource datasource)
Creates a new PermissionOwner from aDatasource
.PermissionOwner(DatasourceRef datasourceRef)
Creates a new PermissionOwner from anDatasourceRef
.PermissionOwner(Event event)
Creates a new PermissionOwner from anEvent
.PermissionOwner(Link link)
Creates a new PermissionOwner from aLink
.PermissionOwner(Linkpanel linkpanel)
Creates a new PermissionOwner from aLinkpanel
.PermissionOwner(OutputFormat outputFormat)
Creates a new PermissionOwner from anOutputFormat
.PermissionOwner(OutputType outputType)
Creates a new PermissionOwner from anOutputType
.PermissionOwner(PageDefinition page)
Creates a new PermissionOwner fromPageDefinition
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of thisPermissionOwner
Collection<Permission>
getPermissions()
Returns allPermission
s owned by thisPermissionOwner
.String
toString()
-
-
-
Constructor Detail
-
PermissionOwner
public PermissionOwner(PageDefinition page)
Creates a new PermissionOwner fromPageDefinition
.- Parameters:
page
- thePageDefinition
-
PermissionOwner
public PermissionOwner(Event event)
Creates a new PermissionOwner from anEvent
.- Parameters:
event
- theEvent
-
PermissionOwner
public PermissionOwner(Action action)
Creates a new PermissionOwner from anAction
.- Parameters:
action
- theAction
-
PermissionOwner
public PermissionOwner(ActionRef actionRef)
Creates a new PermissionOwner fromActionRef
.- Parameters:
actionRef
- theActionRef
-
PermissionOwner
public PermissionOwner(Datasource datasource)
Creates a new PermissionOwner from aDatasource
.- Parameters:
datasource
- theDatasource
-
PermissionOwner
public PermissionOwner(DatasourceRef datasourceRef)
Creates a new PermissionOwner from anDatasourceRef
.- Parameters:
datasourceRef
- theDatasourceRef
-
PermissionOwner
public PermissionOwner(OutputType outputType)
Creates a new PermissionOwner from anOutputType
.- Parameters:
outputType
- theOutputType
-
PermissionOwner
public PermissionOwner(OutputFormat outputFormat)
Creates a new PermissionOwner from anOutputFormat
.- Parameters:
outputFormat
- theOutputFormat
-
PermissionOwner
public PermissionOwner(Link link)
Creates a new PermissionOwner from aLink
.- Parameters:
link
- theLink
-
PermissionOwner
public PermissionOwner(Linkpanel linkpanel)
Creates a new PermissionOwner from aLinkpanel
.- Parameters:
linkpanel
- theLinkpanel
-
-
Method Detail
-
getName
public String getName()
Returns the name of thisPermissionOwner
- Returns:
- the name of this
PermissionOwner
-
getPermissions
public Collection<Permission> getPermissions()
Returns allPermission
s owned by thisPermissionOwner
.- Returns:
- the
Permission
s
-
-