Class Depot

    • Constructor Detail

      • Depot

        public Depot()
      • Depot

        public Depot​(java.util.Map<java.lang.String,​java.lang.Object> depotMap)
        Construct a Perforce depot object from a suitable depotMap passed back from the Perforce server as the result of a depot list command.
        Parameters:
        depotMap - depotMap passed back from the Perforce server as a result of the depot list or depot -o commands; if null, fields will have default values.
      • Depot

        public Depot​(java.lang.String name,
                     java.lang.String ownerName,
                     java.util.Date modDate,
                     java.lang.String description,
                     IDepot.DepotType depotType,
                     java.lang.String address,
                     java.lang.String suffix,
                     java.lang.String map)
      • Depot

        public Depot​(java.lang.String name,
                     java.lang.String ownerName,
                     java.util.Date modDate,
                     java.lang.String description,
                     IDepot.DepotType depotType,
                     java.lang.String address,
                     java.lang.String suffix,
                     java.lang.String streamDepth,
                     java.lang.String map)
      • Depot

        public Depot​(java.lang.String name,
                     java.lang.String ownerName,
                     java.util.Date modDate,
                     java.lang.String description,
                     IDepot.DepotType depotType,
                     java.lang.String address,
                     java.lang.String suffix,
                     java.lang.String streamDepth,
                     java.lang.String map,
                     ViewMap<IMapEntry> specMap)
    • Method Detail

      • getAddress

        public java.lang.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​(java.lang.String address)
      • getDescription

        public java.lang.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​(java.lang.String description)
      • getMap

        public java.lang.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​(java.lang.String map)
      • getModDate

        public java.util.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​(java.util.Date modDate)
      • getName

        public java.lang.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​(java.lang.String name)
      • getOwnerName

        public java.lang.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​(java.lang.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
      • getStreamDepth

        public java.lang.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​(java.lang.String streamDepth)
      • getSuffix

        public java.lang.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​(java.lang.String suffix)