com.perforce.p4java.impl.generic.core
Class InputMapper

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.InputMapper

public class InputMapper
extends 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
static String DATE_PATTERN
           
 
Constructor Summary
InputMapper()
           
 
Method Summary
static Map<String,Object> map(IBranchSpec branchSpec)
           
static Map<String,Object> map(IChangelist change)
          Map a P4Java changelist to an IServer input map.
static Map<String,Object> map(IChangelist change, boolean allowUnknownFiles)
          Map a P4Java changelist to an IServer input map.
static Map<String,Object> map(IClient client)
          Map a P4Java client object to an IServer input map.
static Map<String,Object> map(IDepot depotSpec)
           
static Map<String,Object> map(ILabel label)
          Map a P4Java label object to an IServer input map.
static Map<String,Object> map(IProtectionsTable protectionsTable)
          Map a list of P4Java IProtectionEntry object to an IServer input map.
static Map<String,Object> map(IStream stream)
          Map a P4Java stream object to an IServer input map.
static Map<String,Object> map(ITriggersTable triggersTable)
          Map a list of P4Java ITriggerEntry object to an IServer input map.
static Map<String,Object> map(IUser user)
          Map a P4Java IUsers object to an IServer input map.
static Map<String,Object> map(IUserGroup group)
          Map a P4Java IUserGroup object to an IServer input map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_PATTERN

public static final String DATE_PATTERN
See Also:
Constant Field Values
Constructor Detail

InputMapper

public InputMapper()
Method Detail

map

public static Map<String,Object> map(IChangelist change,
                                     boolean allowUnknownFiles)
Map a P4Java changelist to an IServer input map.

Parameters:
change - candidate changelist
allowUnknownFiles -
Returns:
non-null map suitable for use with execMapCmd

map

public static Map<String,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 Map<String,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 Map<String,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 Map<String,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 Map<String,Object> map(IUserGroup group)
Map a P4Java IUserGroup object to an IServer input map.

Parameters:
group - candidate user group object
Returns:
non-null map suitable for use with execMapCmd

map

public static Map<String,Object> map(IBranchSpec branchSpec)

map

public static Map<String,Object> map(IDepot depotSpec)

map

public static Map<String,Object> map(IProtectionsTable protectionsTable)
Map a list of P4Java IProtectionEntry object to an IServer input map.

Parameters:
protections - table - list of protection entries
Returns:
non-null map suitable for use with execMapCmd

map

public static Map<String,Object> map(IStream stream)
Map a P4Java stream object to an IServer input map.

Parameters:
stream - candidate stream
Returns:
non-null map suitable for use with execMapCmd

map

public static Map<String,Object> map(ITriggersTable triggersTable)
Map a list of P4Java ITriggerEntry object to an IServer input map.

Parameters:
triggers - table - list of trigger entries
Returns:
non-null map suitable for use with execMapCmd


Copyright © 2015 Perforce Software. All Rights Reserved.