Class GenericObjectTransformer
java.lang.Object
io.deephaven.enterprise.acl.transform.GenericObjectTransformer
- All Implemented Interfaces:
- TicketTransformer
A Transformer for handling ACLs on generic objects. It uses a low priority so that it can be superseded by
 transformers for more specific types as they are added.
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidAdd visibility for the specified object to the specified group.<T> booleancanTransform(T value, boolean hasBeenProcessed) Check if this transformer can apply a transformation to the specified value.static GenericObjectTransformerget(@NotNull GroupProvider groupProvider) Get the singleton instance of this transformer.getAllowedGroups(T value) Get a set of groups that may access the specified object.intpriority()The relative priority of the transformer.<T> Ttransform(@NotNull DheAuthContext authContext, T value) Transform the specified object using the auth context.
- 
Method Details- 
getGet the singleton instance of this transformer.- Parameters:
- groupProvider- the- GroupProviderobject for fetching user data
- Returns:
- the single GenericObjectTransformerinstance
 
- 
addAclAdd visibility for the specified object to the specified group.- Parameters:
- group- the group
- value- the object
 
- 
prioritypublic int priority()Description copied from interface:TicketTransformerThe relative priority of the transformer. Lower numbers are higher priority, 0 is the lowest allowed value.- Specified by:
- priorityin interface- TicketTransformer
- Returns:
- the priority of the transformer
 
- 
canTransformpublic <T> boolean canTransform(@Nullable T value, boolean hasBeenProcessed) Description copied from interface:TicketTransformerCheck if this transformer can apply a transformation to the specified value.- Specified by:
- canTransformin interface- TicketTransformer
- Type Parameters:
- T- the type
- Parameters:
- value- the value to transform
- hasBeenProcessed- if this value has already been processed by another transformer
- Returns:
- true if this transformer can apply a transformation
 
- 
transformDescription copied from interface:TicketTransformerTransform the specified object using the auth context.- Specified by:
- transformin interface- TicketTransformer
- Type Parameters:
- T- The type.
- Parameters:
- authContext- the authentication context
- value- the value to transform
- Returns:
- the transformed value
 
- 
getAllowedGroupsDescription copied from interface:TicketTransformerGet a set of groups that may access the specified object.- Specified by:
- getAllowedGroupsin interface- TicketTransformer
- Type Parameters:
- T- The type
- Parameters:
- value- the object.
- Returns:
- a set of groups that is allowed to access the object.
 
 
-