|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.clients.security.internal.SecurityUtility
public class SecurityUtility
Nested Class Summary | |
---|---|
static class |
SecurityUtility.MergePermissionsResult
|
Constructor Summary | |
---|---|
SecurityUtility()
|
Method Summary | |
---|---|
static SecurityUtility.MergePermissionsResult |
mergePermissions(int existingAllow,
int existingDeny,
int newAllow,
int newDeny,
int remove)
Merges existing permissions with new permissions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityUtility()
Method Detail |
---|
public static SecurityUtility.MergePermissionsResult mergePermissions(int existingAllow, int existingDeny, int newAllow, int newDeny, int remove)
Merges existing permissions with new permissions. Precedence is taken in the following order: Denies, Allows, Removes. If the same bit is set to 1 in both the allow and deny permissions, the deny will outweigh the allow.
existingAllow
- The existing allowed permissions.existingDeny
- The existing denied permissions.allow
- The new allowed permissions.deny
- The new denied permissions.remove
- The permissions to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |