import java.io.*; import java.util.*; import com.perforce.api.*; public class ListUsers { public static void main(String[] argv) { User u; /* Please see the Common.java file to see how the environment is being * set up. This is important, but it is common to all the examples. */ Env env = Common.setup(); try { Debug.setDebugLevel(Debug.NOTICE); Enumeration en = User.getUsers(env); while (en.hasMoreElements()) { u = (User)en.nextElement(); System.out.println("USER: "+u.getId()); } } catch (Exception ex) { ex.printStackTrace(); } Utils.cleanUp(); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 1811 | Robert Eden | Adding new API functionality. | ||
//public/perforce/api/java/p4package/examples/ListUsers.java | |||||
#1 | 1334 | David Markley |
Added more example code. Added the Counter class. Corrected the filelog methods for the FileEntry class. |
||
//guest/david_markley/p4package/examples/ListUsers.java | |||||
#1 | 1332 | David Markley |
Added more example code. Added the Counter class. Corrected the filelog methods for the FileEntry class. |