public class PermissionBitMappingAttributeHandler extends ReadOnlyAttributeHandler
Constructor and Description |
---|
PermissionBitMappingAttributeHandler(AttributeHandler handler)
Creates a new instance which will return the specified admin group.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(AttributeHandlerContext context)
Returns
true if this handler can handle the attribute
request on the given object instance. |
Object |
getValue(AttributeHandlerContext context)
Returns the value of an attribute.
|
canUpdate, setValue
public PermissionBitMappingAttributeHandler(AttributeHandler handler)
handler
- The attribute handlerpublic boolean canHandle(AttributeHandlerContext context) throws FdkException, IfsException
AttributeHandler
true
if this handler can handle the attribute
request on the given object instance. The necessary information to
determine which attribute is requested and what the underlying repository
object is will be packaged in the context.context
- The context when this handler is called.FdkException
- If a framework error occurs.IfsException
- If a repository exception occurs.public Object getValue(AttributeHandlerContext context) throws IfsException, FdkException
AttributeHandler
RuntimeException
if canHandle()
returns
false
and this method is still being called.
Note that implementations which handle read-only attributes should
subclass ReadOnlyAttributeHandler
for convenience as they
would need to provide the read side methods only.
context
- The context when this handler is called.IfsException
- If a repository exception occurs.FdkException
- If a framework error occurs.Copyright © 2023. All rights reserved.