This method of the PermissionDataSet Class adds a permission to the set.
public synchronized boolean add(PermissionID pid,IPermission perm);
Returns false if a permission of the same type already exists in the set; otherwise, returns true.
pid | The permission type. |
perm | The permission object. |
The permission is specified by its type, and an IPermission instance that corresponds to that type must be specified. If a permission of that type already exists in the set, the add operation fails.