Commit this update. If no changes have been made to the Conditional Permission Table since this update was created, then this method will replace the Conditional Permission Table with this update's Conditional Permissions. This method may only be successfully called once on this object.
If any of the {@link ConditionalPermissionInfo}s in the update list has null
as a name it will be replaced with a new {@link ConditionalPermissionInfo} object that has a generated name whichis unique within the list.
No two entries in this update's Conditional Permissions may have the same name. Other consistency checks may also be performed. If this update's Conditional Permissions are determined to be inconsistent in some way then an IllegalStateException
will be thrown.
This method returns false
if the commit did not occur because the Conditional Permission Table has been modified since the creation of this update.
@return true
if the commit was successful.false
if the commit did not occur because the Conditional Permission Table has been modified since the creation of this update.
@throws SecurityException If the caller does not haveAllPermission
.
@throws IllegalStateException If this update's Conditional Permissionsare not valid or inconsistent. For example, this update has two Conditional Permissions in it with the same name.