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
ORDER_UNKNOWN
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost()
Gets the client host.
|
java.lang.String |
getMode()
Gets the protection mode for this entry.
|
java.lang.String |
getName()
Gets the name of the grantee (user or group).
|
java.lang.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(java.lang.String host)
Sets the client host.
|
void |
setMode(java.lang.String mode)
Sets the protection mode for this entry.
|
void |
setName(java.lang.String name)
Sets the name of the grantee (user or group).
|
void |
setPath(java.lang.String path)
Sets the depot path.
|
void |
setPathExcluded(boolean pathExcluded)
Sets the path excluded indicator (true/false).
|
java.lang.String getMode()
void setMode(java.lang.String mode)
mode
- the protection modeboolean isGroup()
void setGroup(boolean group)
group
- the group indicator (true/false).java.lang.String getName()
void setName(java.lang.String name)
name
- the name of the granteejava.lang.String getHost()
void setHost(java.lang.String host)
host
- the client hostjava.lang.String getPath()
void setPath(java.lang.String path)
path
- the depot pathboolean isPathExcluded()
void setPathExcluded(boolean pathExcluded)
pathExcluded
- the path excluded indicator (true/false)