Package com.perforce.p4java.admin
Interface IProtectionEntry
- All Superinterfaces:
IMapEntry
- All Known Implementing Classes:
ProtectionEntry
Describes a protection entry (line) in a Perforce protection
table. These are described in more detail in the various
main Perforce admin documentation pages.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IMapEntry
IMapEntry.EntryType -
Field Summary
Fields inherited from interface com.perforce.p4java.core.IMapEntry
ORDER_UNKNOWN -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Gets the client host.getMode()Gets the protection mode for this entry.getName()Gets the name of the grantee (user or group).getPath()Gets the depot path.Returns the single word summarybooleanisGroup()Checks if the grantee is a group.booleanChecks if the path is excluded.voidsetGroup(boolean group) Sets the group indicator (true/false).voidSets the client host.voidSets the protection mode for this entry.voidSets the name of the grantee (user or group).voidSets the depot path.voidsetPathExcluded(boolean pathExcluded) Sets the path excluded indicator (true/false).
-
Method Details
-
getMode
String getMode()Gets the protection mode for this entry.- Returns:
- the protection mode
-
setMode
Sets the protection mode for this entry.- Parameters:
mode- the protection mode
-
isGroup
boolean isGroup()Checks if the grantee is a group.- Returns:
- true, if the grantee is a group.
-
setGroup
void setGroup(boolean group) Sets the group indicator (true/false).- Parameters:
group- the group indicator (true/false).
-
getName
String getName()Gets the name of the grantee (user or group).- Returns:
- the name of the grantee
-
setName
Sets the name of the grantee (user or group).- Parameters:
name- the name of the grantee
-
getHost
String getHost()Gets the client host.- Returns:
- the client host
-
setHost
Sets the client host.- Parameters:
host- the client host
-
getPath
String getPath()Gets the depot path.- Returns:
- the depot path
-
setPath
Sets the depot path.- Parameters:
path- the depot path
-
isPathExcluded
boolean isPathExcluded()Checks if the path is excluded.- Returns:
- true, if the path is excluded
-
setPathExcluded
void setPathExcluded(boolean pathExcluded) Sets the path excluded indicator (true/false).- Parameters:
pathExcluded- the path excluded indicator (true/false)
-
getPermMax
String getPermMax()Returns the single word summary- Returns:
- permMax
-