net.sf.hermesftp.usermanager.model
Class GroupDataList

java.lang.Object
  extended by net.sf.hermesftp.usermanager.model.GroupDataList

public class GroupDataList
extends java.lang.Object

Data of a user group.

Author:
Behnke

Constructor Summary
GroupDataList()
           
 
Method Summary
 void addGroup(GroupData data)
          Adds group data.
 void clear()
          Clears all group data from the list.
 GroupData getGroup(java.lang.String name)
          Returns the group of a given name.
 int getPermission(java.lang.String path, java.lang.String username, java.lang.String ftproot)
          The permission on a given path.
 long getUpperLimit(java.lang.String key)
          The upper limit of the constraints named by the passed key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupDataList

public GroupDataList()
Method Detail

addGroup

public void addGroup(GroupData data)
Adds group data.

Parameters:
data - group data.

clear

public void clear()
Clears all group data from the list.


getGroup

public GroupData getGroup(java.lang.String name)
Returns the group of a given name.

Parameters:
name - The group name.
Returns:
The group or null.

getUpperLimit

public long getUpperLimit(java.lang.String key)
The upper limit of the constraints named by the passed key.

Parameters:
key - The name of the constraint.
Returns:
The value.

getPermission

public int getPermission(java.lang.String path,
                         java.lang.String username,
                         java.lang.String ftproot)
                  throws FtpConfigException
The permission on a given path.

Parameters:
path - The path to check.
username - The user that wants to access the path.
ftproot - The absolute ftp root directory.
Returns:
The permission constant.
Throws:
FtpConfigException - Error in configuration.


Copyright © 2005-2007 Lars Behnke. All Rights Reserved.