Class InputMapper

java.lang.Object
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 Details

  • Constructor Details

    • InputMapper

      public InputMapper()
  • Method Details

    • 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 - unknown files?
      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, IServer server) throws ConnectionException
      Map a P4Java IUserGroup object to an IServer input map.
      Parameters:
      group - candidate user group object
      server - version of p4d server
      Returns:
      non-null map suitable for use with execMapCmd
      Throws:
      ConnectionException
    • 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:
      protectionsTable - table - list of protection entries
      Returns:
      non-null map suitable for use with execMapCmd
    • map

      public static Map<String,Object> map(IStream stream, IServer server) throws P4JavaException
      Map a P4Java stream object to an IServer input map.
      Parameters:
      stream - candidate stream
      server - server
      Returns:
      non-null map suitable for use with execMapCmd
      Throws:
      P4JavaException - on error
    • map

      public static Map<String,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 Map<String,Object> map(ILicense licenseSpec)
    • map

      public static Map<String,Object> map(IExtension extensionSpec)