public class PermissionCondition extends Object
Modifier and Type | Method and Description |
---|---|
static PermissionCondition |
create(Class<? extends Annotation> permission,
PersistentResource resource,
String field,
ChangeSpec changes)
This function attempts to create the appropriate
PermissionCondition based on parameters that may or may
not be null. |
String |
toString() |
public static PermissionCondition create(Class<? extends Annotation> permission, PersistentResource resource, String field, ChangeSpec changes)
PermissionCondition
based on parameters that may or may
not be null. This is a temporary workaround given that the caller functions duplicate data in their
signatures and pass nulls. The calling code needs to be cleaned up - and then this function can be disposed of.permission
- the permission to inspectresource
- the resource to evalute the permission onfield
- the name of the field to be checkedchanges
- the changes that happenedPermissionCondition
if one can be created, null otherwiseCopyright © 2015–2019 Yahoo! Inc.. All rights reserved.