com.tek42.perforce.parse
Class Groups

java.lang.Object
  extended by com.tek42.perforce.parse.AbstractPerforceTemplate
      extended by com.tek42.perforce.parse.Groups

public class Groups
extends AbstractPerforceTemplate

Object for working with perforce groups.

Author:
Mike Date: Jul 21, 2008 3:38:25 PM

Constructor Summary
Groups(Depot depot)
           
 
Method Summary
 Group getGroup(java.lang.String name)
          Retrieves a single group specified by name.
 java.util.List<Group> getGroups()
          Retrieves all groups in the perforce server.
 void saveGroup(Group group)
          Saves changes to an existing group, or creates a new one.
 
Methods inherited from class com.tek42.perforce.parse.AbstractPerforceTemplate
getExtraParams, getLogger, getPerforceResponse, getRawPerforceResponseLines, hitMax, login, parseList, saveToPerforce
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Groups

public Groups(Depot depot)
Method Detail

getGroup

public Group getGroup(java.lang.String name)
               throws PerforceException
Retrieves a single group specified by name.

Parameters:
name - The name of the group to retrieve.
Returns:
A valid perforce group.
Throws:
PerforceException - If there is a problem or the group was not found.

saveGroup

public void saveGroup(Group group)
               throws PerforceException
Saves changes to an existing group, or creates a new one.

Parameters:
group - The group to save.
Throws:
PerforceException - When there is a problem.

getGroups

public java.util.List<Group> getGroups()
                                throws PerforceException
Retrieves all groups in the perforce server.

Returns:
A List of groups
Throws:
PerforceException - when there is a problem.


Copyright © 2009. All Rights Reserved.