public interface Authorizable
Authorizable
type, implies the level of access needed by the calling component to access it. The Calling component
is free to define how it introspect's the current User to gain the Users set of Authorization
s for this component.User.getAuthorizationMap()
the value is a Set
of Authorization
and the key should match that of the getAuthorizableId()
of the Authorizable
entity.Modifier and Type | Method and Description |
---|---|
String |
getAuthorizableId()
Every
Authorizable entity should specify its key/id so that the Calling API knows which Set of Authorization s to match with |
Boolean |
getAuthorizableIdAssignable()
Is the
getAuthorizableId() of this instance to be considered in the global list of Authorizations.If true, it will appear in the List of Authorizations that can be assigned to users. |
Collection<Authorization> |
getAuthorizations()
Authorization s required to access the component |
void |
setAuthorizableId(String id) |
void |
setAuthorizations(Collection<Authorization> authorizations)
Authorization s required to access the component |
String getAuthorizableId()
Authorizable
entity should specify its key/id so that the Calling API knows which Set
of Authorization
s to match withvoid setAuthorizableId(String id)
Boolean getAuthorizableIdAssignable()
getAuthorizableId()
of this instance to be considered in the global list of Authorizations.Boolean
@NullableCollection<Authorization> getAuthorizations()
Authorization
s required to access the componentvoid setAuthorizations(Collection<Authorization> authorizations)
Authorization
s required to access the componentCopyright © 2018. All rights reserved.