public interface Accessible extends PermissionGrantTarget
Accessor
s.Modifier and Type | Interface and Description |
---|---|
static class |
Accessible.Impl
Implementation of complex methods.
|
Modifier and Type | Method and Description |
---|---|
void |
addAccessor(Accessor accessor)
only Accessor accessor can access this Accessible item.
|
Iterable<Accessor> |
getAccessors()
Fetch accessors to which this item is restricted.
|
Iterable<SystemEvent> |
getHistory()
Fetch a list of Actions for this entity in order.
|
SystemEvent |
getLatestEvent()
Fetch the most recent event that affected this item.
|
PermissionScope |
getPermissionScope()
Fetch the permission scope to which this item belongs, if any.
|
Iterable<PermissionScope> |
getPermissionScopes()
Get the full hierarchy of permission scopes to which this
item belongs.
|
boolean |
hasAccessRestriction()
Determine if this item has access restrictions.
|
void |
removeAccessor(Accessor accessor)
Remove an accessor from having access to this item.
|
void |
setPermissionScope(PermissionScope scope)
Set this item's permission scope.
|
getPermissionGrants
as, getId, getProperty, getProperty, getPropertyKeys, getType
Iterable<Accessor> getAccessors()
void addAccessor(Accessor accessor)
accessor
- an accessor that can access the current itemvoid removeAccessor(Accessor accessor)
accessor
- an accessor framePermissionScope getPermissionScope()
void setPermissionScope(PermissionScope scope)
scope
- a permission scope frameIterable<PermissionScope> getPermissionScopes()
Iterable<SystemEvent> getHistory()
SystemEvent getLatestEvent()
boolean hasAccessRestriction()
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.