public interface IProtectionEntry extends IMapEntry
Note that the pathExcluded methods return whether a path is excluded or unmapped from the user's permissions; this corresponds to the "-" (minus sign) prepended to the path on the p4 command version of p4 protects, and must be used to determine whether the path is accessible or not.
IMapEntry.EntryType
EXCLUDE_PREFIX, ORDER_UNKNOWN, OVERLAY_PREFIX
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Gets the client host.
|
String |
getMode()
Gets the protection mode for this entry.
|
String |
getName()
Gets the name of the grantee (user or group).
|
String |
getPath()
Gets the depot path.
|
boolean |
isGroup()
Checks if the grantee is a group.
|
boolean |
isPathExcluded()
Checks if the path is excluded.
|
void |
setGroup(boolean group)
Sets the group indicator (true/false).
|
void |
setHost(String host)
Sets the client host.
|
void |
setMode(String mode)
Sets the protection mode for this entry.
|
void |
setName(String name)
Sets the name of the grantee (user or group).
|
void |
setPath(String path)
Sets the depot path.
|
void |
setPathExcluded(boolean pathExcluded)
Sets the path excluded indicator (true/false).
|
String getMode()
void setMode(String mode)
mode
- the protection modeboolean isGroup()
void setGroup(boolean group)
group
- the group indicator (true/false).String getName()
void setName(String name)
name
- the name of the granteeString getHost()
void setHost(String host)
host
- the client hostString getPath()
void setPath(String path)
path
- the depot pathboolean isPathExcluded()
void setPathExcluded(boolean pathExcluded)
pathExcluded
- the path excluded indicator (true/false)Copyright © 2017 Perforce Software. All Rights Reserved.