Class InputMapper
- java.lang.Object
-
- com.perforce.p4java.impl.generic.core.InputMapper
-
public class InputMapper extends java.lang.Object
A useful class with methods to map certain classes to maps suitable for feeding to the IServer execMapCmd method's input map. Use of these methods outside their very limited initial applications is not guaranteed to work...
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DATE_PATTERN
-
Constructor Summary
Constructors Constructor Description InputMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>
map(IProtectionsTable protectionsTable)
Map a list of P4Java IProtectionEntry object to an IServer input map.static java.util.Map<java.lang.String,java.lang.Object>
map(ITriggersTable triggersTable)
Map a list of P4Java ITriggerEntry object to an IServer input map.static java.util.Map<java.lang.String,java.lang.Object>
map(IClient client)
Map a P4Java client object to an IServer input map.static java.util.Map<java.lang.String,java.lang.Object>
map(IBranchSpec branchSpec)
static java.util.Map<java.lang.String,java.lang.Object>
map(IChangelist change)
Map a P4Java changelist to an IServer input map.static java.util.Map<java.lang.String,java.lang.Object>
map(IChangelist change, boolean allowUnknownFiles)
Map a P4Java changelist to an IServer input map.static java.util.Map<java.lang.String,java.lang.Object>
map(IDepot depotSpec)
static java.util.Map<java.lang.String,java.lang.Object>
map(IExtension extensionSpec)
static java.util.Map<java.lang.String,java.lang.Object>
map(ILabel label)
Map a P4Java label object to an IServer input map.static java.util.Map<java.lang.String,java.lang.Object>
map(ILicense licenseSpec)
static java.util.Map<java.lang.String,java.lang.Object>
map(IStream stream, IServer server)
Map a P4Java stream object to an IServer input map.static java.util.Map<java.lang.String,java.lang.Object>
map(IUser user)
Map a P4Java IUsers object to an IServer input map.static java.util.Map<java.lang.String,java.lang.Object>
map(IUserGroup group, IServer server)
Map a P4Java IUserGroup object to an IServer input map.
-
-
-
Field Detail
-
DATE_PATTERN
public static final java.lang.String DATE_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IChangelist change, boolean allowUnknownFiles)
Map a P4Java changelist to an IServer input map.- Parameters:
change
- candidate changelistallowUnknownFiles
- unknown files?- Returns:
- non-null map suitable for use with execMapCmd
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IChangelist change)
Map a P4Java changelist to an IServer input map.- Parameters:
change
- candidate changelist- Returns:
- non-null map suitable for use with execMapCmd
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IClient client)
Map a P4Java client object to an IServer input map.- Parameters:
client
- candidate client- Returns:
- non-null map suitable for use with execMapCmd
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(ILabel label)
Map a P4Java label object to an IServer input map.- Parameters:
label
- candidate label- Returns:
- non-null map suitable for use with execMapCmd
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IUser user)
Map a P4Java IUsers object to an IServer input map.- Parameters:
user
- candidate user object- Returns:
- non-null map suitable for use with execMapCmd
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IUserGroup group, IServer server) throws ConnectionException
Map a P4Java IUserGroup object to an IServer input map.- Parameters:
group
- candidate user group objectserver
- version of p4d server- Returns:
- non-null map suitable for use with execMapCmd
- Throws:
ConnectionException
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IBranchSpec branchSpec)
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IDepot depotSpec)
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IProtectionsTable protectionsTable)
Map a list of P4Java IProtectionEntry object to an IServer input map.- Parameters:
protectionsTable
- table - list of protection entries- Returns:
- non-null map suitable for use with execMapCmd
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IStream stream, IServer server) throws P4JavaException
Map a P4Java stream object to an IServer input map.- Parameters:
stream
- candidate streamserver
- server- Returns:
- non-null map suitable for use with execMapCmd
- Throws:
P4JavaException
- on error
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(ITriggersTable triggersTable)
Map a list of P4Java ITriggerEntry object to an IServer input map.- Parameters:
triggersTable
- table - list of trigger entries- Returns:
- non-null map suitable for use with execMapCmd
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(ILicense licenseSpec)
-
map
public static java.util.Map<java.lang.String,java.lang.Object> map(IExtension extensionSpec)
-
-