public class AuthorizableTransformer extends Object implements org.apache.commons.collections.Transformer, Authorizable
Authorization
needs. The calling API can translate the needs defined by this Transformer
Constructor and Description |
---|
AuthorizableTransformer() |
AuthorizableTransformer(org.apache.commons.collections.Transformer transformer) |
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
Authorizable.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 that can access this item |
org.apache.commons.collections.Transformer |
getTransformer() |
void |
setAuthorizableId(String authorizableId) |
void |
setAuthorizableIdAssignable(Boolean authorizableIdAssignable) |
void |
setAuthorizations(Collection<Authorization> authorizations)
Authorization s that can access this item |
void |
setTransformer(org.apache.commons.collections.Transformer transformer) |
Object |
transform(Object input) |
public AuthorizableTransformer()
public AuthorizableTransformer(org.apache.commons.collections.Transformer transformer)
public Boolean getAuthorizableIdAssignable()
Authorizable
Authorizable.getAuthorizableId()
of this instance to be considered in the global list of Authorizations.getAuthorizableIdAssignable
in interface Authorizable
Boolean
@Nullablepublic void setAuthorizableIdAssignable(Boolean authorizableIdAssignable)
public Collection<Authorization> getAuthorizations()
Authorization
s that can access this itemgetAuthorizations
in interface Authorizable
public void setAuthorizations(Collection<Authorization> authorizations)
Authorization
s that can access this itemsetAuthorizations
in interface Authorizable
public String getAuthorizableId()
Authorizable
Authorizable
entity should specify its key/id so that the Calling API knows which Set
of Authorization
s to match withgetAuthorizableId
in interface Authorizable
public void setAuthorizableId(String authorizableId)
setAuthorizableId
in interface Authorizable
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public org.apache.commons.collections.Transformer getTransformer()
public void setTransformer(org.apache.commons.collections.Transformer transformer)
Copyright © 2018. All rights reserved.