Interface AccessControlManagerSvr
- All Known Implementing Classes:
StandardAccessControlManager
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetSecurityLabel(SecurityLabeled object, String label_name, String label_value, boolean update_object) Deprecated.voidsetSecurityLabel(SecurityLabeled object, String label_name, Set<String> label_values, boolean update_object) Sets the value of the specified security label for an object and optionally persists the update to the object.voidsetSecurityLabel(WTCollection objects, String label_name, String label_value, boolean update_objects) Deprecated.UsesetSecurityLabel(WTCollection, String, Set, boolean)instead.voidsetSecurityLabel(WTCollection objects, String label_name, Set<String> label_values, boolean update_objects) Sets the value of the specified security label for a collection of objects and optionally persists the updates to the objects.voidsetSecurityLabels(SecurityLabeled object, String security_labels, boolean update_object) Sets the values of the specified security labels for an object and optionally persists the updates to the object.voidsetSecurityLabels(SecurityLabeled object, Map<String, String> security_labels, boolean update_object) Deprecated.voidsetSecurityLabels(WTCollection objects, Map<String, String> security_labels, boolean update_objects) Deprecated.voidsetSecurityLabels(WTKeyedMap objects_to_security_labels_map, boolean update_objects) Deprecated.voidsetSecurityLabelWithMultipleValues(SecurityLabeled object, Map<String, Set<String>> security_labels, boolean update_object) Sets the values of the specified security labels for an object and optionally persists the updates to the object.voidsetSecurityLabelWithMultipleValues(WTCollection objects, Map<String, Set<String>> security_labels, boolean update_objects) Sets the values of the specified security labels for a collection of objects and optionally persists the updates to the objects.For custom labels, the specified value must be the external representation of the value.voidsetSecurityLabelWithMultipleValues(WTKeyedMap objects_to_security_labels_map, boolean update_objects) Sets the values of the specified security labels for a collection of objects and optionally persists the updates to the objects.
-
Method Details
-
setSecurityLabel
@Deprecated void setSecurityLabel(SecurityLabeled object, String label_name, String label_value, boolean update_object) throws WTException, WTPropertyVetoException Deprecated.Sets the value of the specified security label for an object and optionally persists the update to the object. If the specified security label is a custom label, the specified value must be the external representation of the value. label_value could be one value or a comma separated list of multiple values.If the object is persistent, the current user's access rights are checked. The user must have modify security labels permission for the object and must be authorized by the current label value for the specified label. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the object is not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectis false and the object is persistent, this method must be called from within a transaction that includes an update to the object in the datastore. If the object is not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the object, unless other changes to the object warrant the update.
Supported API: true- Parameters:
object- object for which the security label is to be setlabel_name- security label namelabel_value- security label value. comma separated multiple values are also supported.update_object- persist security label updates to the object- Throws:
NotAuthorizedException- if the current user is not authorized to change the security labelsWTException- if a transaction is required but not activeWTInvalidParameterException- if an object is not specified or if the specified label name or standard label value is not defined in the security labels configuration fileWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
SecurityLabeledAccessControlEvent.MODIFY_SECURITY_LABELSAccessPermission.MODIFYModifySecurityLabelsSummaryEvent
-
setSecurityLabel
@Deprecated void setSecurityLabel(WTCollection objects, String label_name, String label_value, boolean update_objects) throws WTException, WTPropertyVetoException Deprecated.UsesetSecurityLabel(WTCollection, String, Set, boolean)instead.Sets the value of the specified security label for a collection of objects and optionally persists the updates to the objects. If the specified security label is a custom label, the specified value must be the external representation of the value. label_value could be one value or a comma separated list of multiple values.If the objects are persistent, the current user's access rights are checked. The user must have modify security labels permission for all of the objects and must be authorized by their current label value for the specified label. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the objects are not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectsis false and the objects are persistent, this method must be called from within a transaction that includes an update to the objects in the datastore. If the objects are not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the objects, unless other changes to the objects warrant the update.
Supported API: true- Parameters:
objects- objects for which the security label is to be setlabel_name- security label namelabel_value- one or more comma separated SL Values.update_objects- persist security label updates to the objects- Throws:
NotAuthorizedException- if the current user is not authorized to change the security labelsClassCastException- if one or more objects in the collection are notSecurityLabeledWTException- if a transaction is required but not activeWTInvalidParameterException- if a collection of objects is not specified or empty, or if the specified label name or standard label value is not defined in the security labels configuration fileWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
SecurityLabeledAccessControlEvent.MODIFY_SECURITY_LABELSAccessPermission.MODIFYModifySecurityLabelsSummaryEvent
-
setSecurityLabels
@Deprecated void setSecurityLabels(SecurityLabeled object, Map<String, String> security_labels, boolean update_object) throws WTException, WTPropertyVetoExceptionDeprecated.Sets the values of the specified security labels for an object and optionally persists the updates to the object. For custom labels, the specifed value must be the external representation of the value.If the object is persistent, the current user's access rights are checked. The user must have modify security labels permission for the object and must be authorized by each of the current label values for the specified labels. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the object is not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectis false and the object is persistent, this method must be called from within a transaction that includes an update to the object in the datastore. If the object is not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the object, unless other changes to the object warrant the update.
Supported API: true- Parameters:
object- object for which the security labels are to be setsecurity_labels- map of security label names and values(value will be comma separated list of multiple SLValues are set)update_object- persist security label updates to the object- Throws:
NotAuthorizedException- if the current user is not authorized to change the security labelsWTException- if a transaction is required but not activeWTInvalidParameterException- if an object is not specified, if a map is not specified or empty, or if the specified label names or standard label values are not defined in the security labels configuration fileWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
SecurityLabeledAccessControlEvent.MODIFY_SECURITY_LABELSAccessPermission.MODIFYModifySecurityLabelsSummaryEvent
-
setSecurityLabels
void setSecurityLabels(SecurityLabeled object, String security_labels, boolean update_object) throws WTException, WTPropertyVetoException Sets the values of the specified security labels for an object and optionally persists the updates to the object. For custom labels, the specified value must be the external representation of the value.If the object is persistent, the current user's access rights are checked. The user must have modify security labels permission for the object and must be authorized by each of the current label values for the specified labels. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the object is not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectis false and the object is persistent, this method must be called from within a transaction that includes an update to the object in the datastore. If the object is not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the object, unless other changes to the object warrant the update.This method is for use by loaders using CSV file input, that need to set the security labels attribute on an object.
Supported API: true- Parameters:
object- object for which the security labels are to be setsecurity_labels- slash (/) separated list of security label name and value pairs, where the names and values are separated by an equals sign without extraneous white space multiple SLValues will be sparated by commaupdate_object- persist security label updates to the object- Throws:
NotAuthorizedException- if the current user is not authorized to change the security labelsWTException- if a transaction is required but not activeWTInvalidParameterException- if an object is not specified, if a string is not specified or empty, or if the specified label names or standard label values are not defined in the security labels configuration fileWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
setSecurityLabels(SecurityLabeled, Map, boolean)SecurityLabeledAccessControlEvent.MODIFY_SECURITY_LABELSAccessPermission.MODIFYModifySecurityLabelsSummaryEvent
-
setSecurityLabels
@Deprecated void setSecurityLabels(WTCollection objects, Map<String, String> security_labels, boolean update_objects) throws WTException, WTPropertyVetoExceptionDeprecated.Sets the values of the specified security labels for a collection of objects and optionally persists the updates to the objects.For custom labels, the specified value must be the external representation of the value. The same set of labels is applied to each of the objects in the collection.If the objects are persistent, the current user's access rights are checked. The user must have modify security labels permission for all of the objects and must be authorized by each of their current label values for the specified labels. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the objects are not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectsis false and the objects are persistent, this method must be called from within a transaction that includes an update to the objects in the datastore. If the objects are not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the objects, unless other changes to the objects warrant the update.
Supported API: true- Parameters:
objects- objects for which the security labels are to be setsecurity_labels- map of security label names and one or more comma separated valuesupdate_objects- persist security label updates to objects- Throws:
NotAuthorizedException- if the current user is not authorized to change the security labelsClassCastException- if one or more objects in the collection are notSecurityLabeledWTException- if a transaction is required but not activeWTInvalidParameterException- if a collection of objects is not specified or empty, if a map is not specified or empty, or if the specified label names or standard label values are not defined in the security labels configuration fileWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
SecurityLabeledAccessControlEvent.MODIFY_SECURITY_LABELSAccessPermission.MODIFYModifySecurityLabelsSummaryEvent
-
setSecurityLabels
@Deprecated void setSecurityLabels(WTKeyedMap objects_to_security_labels_map, boolean update_objects) throws WTException, WTPropertyVetoException Deprecated.Sets the values of the specified security labels for a collection of objects and optionally persists the updates to the objects. The objects are specified as the map's key set, and for each map entry key, aMap<String, String>with the names and one more more comma separated values of the security labels to be set for the corresponding object are the map entry's value. For custom labels, the specified value must be the external representation of the value.If the objects are persistent, the current user's access rights are checked. The user must have modify security labels permission for all of the objects and must be authorized by each of their current label values for the specified labels. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the objects are not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectsis false and the objects are persistent, this method must be called from within a transaction that includes an update to the objects in the datastore. If the objects are not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the objects, unless other changes to the objects warrant the update.
Supported API: true- Parameters:
objects_to_security_labels_map- map of objects to the security labels to be set for eachupdate_objects- persist security label updates to objects- Throws:
NotAuthorizedException- if the current user is not authorized to change the security labelsClassCastException- if one or more objects in the collection are notSecurityLabeledWTException- if a transaction is required but not activeWTInvalidParameterException- if a map is not specified or empty, or if the specified label names or standard label values are not defined in the security labels configuration fileWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
SecurityLabeledAccessControlEvent.MODIFY_SECURITY_LABELSAccessPermission.MODIFYModifySecurityLabelsSummaryEvent
-
setSecurityLabel
void setSecurityLabel(SecurityLabeled object, String label_name, Set<String> label_values, boolean update_object) throws WTException, WTPropertyVetoException Sets the value of the specified security label for an object and optionally persists the update to the object. If the specified security label is a custom label, the specified value must be the external representation of the value.If the object is persistent, the current user's access rights are checked. The user must have modify security labels permission for the object and must be authorized by the current label value for the specified label. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the object is not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectis false and the object is persistent, this method must be called from within a transaction that includes an update to the object in the datastore. If the object is not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the object, unless other changes to the object warrant the update.
Supported API: true- Parameters:
object- object for which the security label is to be setlabel_name- security label nameSet-Set of security label values. update_object- persist security label updates to the object- Throws:
WTException- if a transaction is required but not activeWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
setSecurityLabel
void setSecurityLabel(WTCollection objects, String label_name, Set<String> label_values, boolean update_objects) throws WTException, WTPropertyVetoException Sets the value of the specified security label for a collection of objects and optionally persists the updates to the objects. If the specified security label is a custom label, the specified value must be the external representation of the value. label_value could be one value or a comma separated list of multiple values.If the objects are persistent, the current user's access rights are checked. The user must have modify security labels permission for all of the objects and must be authorized by their current label value for the specified label. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the objects are not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectsis false and the objects are persistent, this method must be called from within a transaction that includes an update to the objects in the datastore. If the objects are not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the objects, unless other changes to the objects warrant the update.
Supported API: true- Parameters:
objects- objects for which the security label is to be setlabel_name- security label nameSet-Set of security label values update_objects- persist security label updates to the objects- Throws:
WTException- if a transaction is required but not activeWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
setSecurityLabelWithMultipleValues
void setSecurityLabelWithMultipleValues(SecurityLabeled object, Map<String, Set<String>> security_labels, boolean update_object) throws WTException, WTPropertyVetoExceptionSets the values of the specified security labels for an object and optionally persists the updates to the object. For custom labels, the specifed value must be the external representation of the value.If the object is persistent, the current user's access rights are checked. The user must have modify security labels permission for the object and must be authorized by each of the current label values for the specified labels. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the object is not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectis false and the object is persistent, this method must be called from within a transaction that includes an update to the object in the datastore. If the object is not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the object, unless other changes to the object warrant the update.
Supported API: true- Parameters:
object- object for which the security labels are to be setsecurity_labels- map of security label names and set of valuesupdate_object- persist security label updates to the object- Throws:
WTException- if a transaction is required but not activeWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
setSecurityLabelWithMultipleValues
void setSecurityLabelWithMultipleValues(WTKeyedMap objects_to_security_labels_map, boolean update_objects) throws WTException, WTPropertyVetoException Sets the values of the specified security labels for a collection of objects and optionally persists the updates to the objects. The objects are specified as the map's key set, and for each map entry key, aMap<String, Set<String>>with the names and one more more comma separated values of the security labels to be set for the corresponding object are the map entry's value. For custom labels, the specified value must be the external representation of the value.If the objects are persistent, the current user's access rights are checked. The user must have modify security labels permission for all of the objects and must be authorized by each of their current label values for the specified labels. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the objects are not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectsis false and the objects are persistent, this method must be called from within a transaction that includes an update to the objects in the datastore. If the objects are not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the objects, unless other changes to the objects warrant the update.
Supported API: true- Parameters:
objects_to_security_labels_map- map of objects to the security labels to be set for eachupdate_objects- persist security label updates to objects- Throws:
NotAuthorizedException- if the current user is not authorized to change the security labelsClassCastException- if one or more objects in the collection are notSecurityLabeledWTException- if a transaction is required but not activeWTInvalidParameterException- if a map is not specified or empty, or if the specified label names or standard label values are not defined in the security labels configuration fileWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
SecurityLabeledAccessControlEvent.MODIFY_SECURITY_LABELSAccessPermission.MODIFYModifySecurityLabelsSummaryEvent
-
setSecurityLabelWithMultipleValues
void setSecurityLabelWithMultipleValues(WTCollection objects, Map<String, Set<String>> security_labels, boolean update_objects) throws WTException, WTPropertyVetoExceptionSets the values of the specified security labels for a collection of objects and optionally persists the updates to the objects.For custom labels, the specified value must be the external representation of the value. The same set of labels is applied to each of the objects in the collection.If the objects are persistent, the current user's access rights are checked. The user must have modify security labels permission for all of the objects and must be authorized by each of their current label values for the specified labels. In addition, this method dispatches a vetoable service event and contributes to a summary event. If the objects are not persistent, access rights are not checked by this method and events are not dispatched.
If
update_objectsis false and the objects are persistent, this method must be called from within a transaction that includes an update to the objects in the datastore. If the objects are not persistent,update_objectis ignored. A change to the security labels should not result in an update to the modify timestamp of the objects, unless other changes to the objects warrant the update.
Supported API: true- Parameters:
objects- objects for which the security labels are to be setsecurity_labels- map of security label names and set of valuesupdate_objects- persist security label updates to objects- Throws:
WTException- if a transaction is required but not activeWTPropertyVetoException- if the maximum length for the security labels attribute is exceeded- See Also:
-
setSecurityLabel(SecurityLabeled, String, Set, boolean)instead.