com.perforce.p4java.impl.generic.admin
Class ProtectionEntry

java.lang.Object
  extended by com.perforce.p4java.impl.generic.admin.ProtectionEntry
All Implemented Interfaces:
IProtectionEntry

public class ProtectionEntry
extends java.lang.Object
implements IProtectionEntry

Default IProtectionEntry implementation class.


Constructor Summary
ProtectionEntry()
          Default constructor -- sets all fields to null, zero, or false.
ProtectionEntry(int order, java.lang.String mode, boolean group, java.lang.String host, java.lang.String name, java.lang.String path)
          Explicit-value constructor.
ProtectionEntry(java.util.Map<java.lang.String,java.lang.Object> map, int order)
          Constructs a ProtectionEntry from the passed-in map; this map must have come from a Perforce IServer method call or it may fail.
 
Method Summary
 java.lang.String getHost()
           
 java.lang.String getMode()
           
 java.lang.String getName()
           
 int getOrder()
           
 java.lang.String getPath()
           
 boolean isGroup()
           
 void setGroup(boolean group)
           
 void setHost(java.lang.String host)
           
 void setMode(java.lang.String mode)
           
 void setName(java.lang.String name)
           
 void setOrder(int order)
           
 void setPath(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtectionEntry

public ProtectionEntry()
Default constructor -- sets all fields to null, zero, or false.


ProtectionEntry

public ProtectionEntry(int order,
                       java.lang.String mode,
                       boolean group,
                       java.lang.String host,
                       java.lang.String name,
                       java.lang.String path)
Explicit-value constructor.


ProtectionEntry

public ProtectionEntry(java.util.Map<java.lang.String,java.lang.Object> map,
                       int order)
Constructs a ProtectionEntry from the passed-in map; this map must have come from a Perforce IServer method call or it may fail. If map is null, equivalent to calling the default constructor.

Method Detail

getHost

public java.lang.String getHost()
Specified by:
getHost in interface IProtectionEntry
See Also:
IProtectionEntry.getHost()

getMode

public java.lang.String getMode()
Specified by:
getMode in interface IProtectionEntry
See Also:
IProtectionEntry.getMode()

getName

public java.lang.String getName()
Specified by:
getName in interface IProtectionEntry
See Also:
IProtectionEntry.getName()

getOrder

public int getOrder()
Specified by:
getOrder in interface IProtectionEntry
See Also:
IProtectionEntry.getOrder()

getPath

public java.lang.String getPath()
Specified by:
getPath in interface IProtectionEntry
See Also:
IProtectionEntry.getPath()

isGroup

public boolean isGroup()
Specified by:
isGroup in interface IProtectionEntry
See Also:
IProtectionEntry.isGroup()

setGroup

public void setGroup(boolean group)
Specified by:
setGroup in interface IProtectionEntry
See Also:
IProtectionEntry.setGroup(boolean)

setHost

public void setHost(java.lang.String host)
Specified by:
setHost in interface IProtectionEntry
See Also:
IProtectionEntry.setHost(java.lang.String)

setMode

public void setMode(java.lang.String mode)
Specified by:
setMode in interface IProtectionEntry
See Also:
IProtectionEntry.setMode(java.lang.String)

setName

public void setName(java.lang.String name)
Specified by:
setName in interface IProtectionEntry
See Also:
IProtectionEntry.setName(java.lang.String)

setOrder

public void setOrder(int order)
Specified by:
setOrder in interface IProtectionEntry
See Also:
IProtectionEntry.setOrder(int)

setPath

public void setPath(java.lang.String path)
Specified by:
setPath in interface IProtectionEntry
See Also:
IProtectionEntry.setPath(java.lang.String)


Copyright (c) 2008-2010 Perforce Software. All rights reserved.