Class Depot
java.lang.Object
com.perforce.p4java.impl.generic.core.ServerResource
com.perforce.p4java.impl.generic.core.Depot
- All Implemented Interfaces:
IDepot,IServerResource
Simple default implementation class for the IDepot interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IDepot
IDepot.DepotType -
Field Summary
Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable -
Constructor Summary
ConstructorsConstructorDescriptionDepot()Depot(String name, String ownerName, Date modDate, String description, IDepot.DepotType depotType, String address, String suffix, String map) Depot(String name, String ownerName, Date modDate, String description, IDepot.DepotType depotType, String address, String suffix, String streamDepth, String map) Depot(String name, String ownerName, Date modDate, String description, IDepot.DepotType depotType, String address, String suffix, String streamDepth, String map, ViewMap<IMapEntry> specMap) Construct a Perforce depot object from a suitable depotMap passed back from the Perforce server as the result of a depot list command. -
Method Summary
Modifier and TypeMethodDescriptionFor remote depots, return the (remote) address of the depot; for other types of depot, will return null.Get the type of this depot.Get the description associated with this depot.getMap()Get the depot's path translation information.Get the date the depot was last modified.getName()Get the name of the depot.Get the Perforce user name of the depot's owner.For spec depots, the optional description of which specs should be saved, as one or more patterns.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.For spec depots, the optional suffix to be used for generated paths.voidsetAddress(String address) voidsetDepotType(IDepot.DepotType depotType) voidsetDescription(String description) voidvoidsetModDate(Date modDate) voidvoidsetOwnerName(String ownerName) voidsetSpecMap(ViewMap<IMapEntry> specMap) voidsetStreamDepth(String streamDepth) voidMethods inherited from class com.perforce.p4java.impl.generic.core.ServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
Constructor Details
-
Depot
public Depot() -
Depot
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
-
Depot
-
Depot
-
-
Method Details
-
getAddress
Description copied from interface:IDepotFor remote depots, return the (remote) address of the depot; for other types of depot, will return null.- Specified by:
getAddressin interfaceIDepot- Returns:
- address
-
setAddress
-
getDepotType
Description copied from interface:IDepotGet the type of this depot.- Specified by:
getDepotTypein interfaceIDepot- Returns:
- type
-
setDepotType
-
getDescription
Description copied from interface:IDepotGet the description associated with this depot.- Specified by:
getDescriptionin interfaceIDepot- Returns:
- description
-
setDescription
-
getMap
Description copied from interface:IDepotGet the depot's path translation information. -
setMap
-
getModDate
Description copied from interface:IDepotGet the date the depot was last modified.- Specified by:
getModDatein interfaceIDepot- Returns:
- date
-
setModDate
-
getName
Description copied from interface:IDepotGet the name of the depot. -
setName
-
getOwnerName
Description copied from interface:IDepotGet the Perforce user name of the depot's owner.- Specified by:
getOwnerNamein interfaceIDepot- Returns:
- owner
-
setOwnerName
-
getSpecMap
Description copied from interface:IDepotFor 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:
getSpecMapin interfaceIDepot- Returns:
- view mapping
-
setSpecMap
-
getStreamDepth
Description copied from interface:IDepotFor 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:
getStreamDepthin interfaceIDepot- Returns:
- stream depth
-
setStreamDepth
-
getSuffix
Description copied from interface:IDepotFor spec depots, the optional suffix to be used for generated paths. The default is '.p4s'. -
setSuffix
-