java.lang.Object
com.perforce.p4java.impl.generic.core.ServerResource
com.perforce.p4java.impl.generic.core.Depot
All Implemented Interfaces:
IDepot, IServerResource

public class Depot extends ServerResource implements IDepot
Simple default implementation class for the IDepot interface.
  • Constructor Details

  • Method Details

    • getAddress

      public String getAddress()
      Description copied from interface: IDepot
      For remote depots, return the (remote) address of the depot; for other types of depot, will return null.
      Specified by:
      getAddress in interface IDepot
      Returns:
      address
    • setAddress

      public void setAddress(String address)
    • getDepotType

      public IDepot.DepotType getDepotType()
      Description copied from interface: IDepot
      Get the type of this depot.
      Specified by:
      getDepotType in interface IDepot
      Returns:
      type
    • setDepotType

      public void setDepotType(IDepot.DepotType depotType)
    • getDescription

      public String getDescription()
      Description copied from interface: IDepot
      Get the description associated with this depot.
      Specified by:
      getDescription in interface IDepot
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • getMap

      public String getMap()
      Description copied from interface: IDepot
      Get the depot's path translation information.
      Specified by:
      getMap in interface IDepot
      Returns:
      mapped location
    • setMap

      public void setMap(String map)
    • getModDate

      public Date getModDate()
      Description copied from interface: IDepot
      Get the date the depot was last modified.
      Specified by:
      getModDate in interface IDepot
      Returns:
      date
    • setModDate

      public void setModDate(Date modDate)
    • getName

      public String getName()
      Description copied from interface: IDepot
      Get the name of the depot.
      Specified by:
      getName in interface IDepot
      Returns:
      name
    • setName

      public void setName(String name)
    • getOwnerName

      public String getOwnerName()
      Description copied from interface: IDepot
      Get the Perforce user name of the depot's owner.
      Specified by:
      getOwnerName in interface IDepot
      Returns:
      owner
    • setOwnerName

      public void setOwnerName(String ownerName)
    • getSpecMap

      public ViewMap<IMapEntry> getSpecMap()
      Description copied from interface: IDepot
      For spec depots, the optional description of which specs should be saved, as one or more patterns. See example below.
       //spec/...
       -//spec/user/qa-*
       -//spec/client/qa-*
       
      Specified by:
      getSpecMap in interface IDepot
      Returns:
      view mapping
    • setSpecMap

      public void setSpecMap(ViewMap<IMapEntry> specMap)
    • getStreamDepth

      public String getStreamDepth()
      Description copied from interface: IDepot
      For stream depots, the optional depth to be used for stream paths in the depot, where depth equates to the number of slashes following the depot name of a stream. This field is referenced when streams are being created. The default is '1', matching the traditional stream name. For example, "//stream_test/1". This value may not be updated once streams or archive data exist within the depot.
      Specified by:
      getStreamDepth in interface IDepot
      Returns:
      stream depth
    • setStreamDepth

      public void setStreamDepth(String streamDepth)
    • getSuffix

      public String getSuffix()
      Description copied from interface: IDepot
      For spec depots, the optional suffix to be used for generated paths. The default is '.p4s'.
      Specified by:
      getSuffix in interface IDepot
      Returns:
      suffix
    • setSuffix

      public void setSuffix(String suffix)