net.sf.hermesftp.usermanager.model
Class GroupData

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

public class GroupData
extends java.lang.Object

Model data of a user group including the configured limits and path permissions. Note that the order of the configured permission entries is important, since the first path match provides the permission value.

Author:
Lars Behnke

Field Summary
static long UNLIMITED
          Control code for unlimited.
 
Constructor Summary
GroupData()
           
 
Method Summary
 long getLimit(java.lang.String name)
          Convenience method for returning the limit specified by the passed name.
 java.util.Map<java.lang.String,java.lang.Long> getLimits()
          Getter method for the java bean limits.
 java.lang.String getName()
          Getter method for the java bean name.
 int getPermission(java.lang.String path, java.lang.String ftproot, java.lang.String user)
          Returns the group permission on the passed path.
 java.util.List<PermissionData> getPermissions()
          Getter method for the java bean permissions.
 void setName(java.lang.String name)
          Setter method for the java bean name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNLIMITED

public static final long UNLIMITED
Control code for unlimited.

See Also:
Constant Field Values
Constructor Detail

GroupData

public GroupData()
Method Detail

getLimits

public java.util.Map<java.lang.String,java.lang.Long> getLimits()
Getter method for the java bean limits.

Returns:
Returns the value of the java bean limits.

getLimit

public long getLimit(java.lang.String name)
Convenience method for returning the limit specified by the passed name.

Parameters:
name - The limit name.
Returns:
The value.

getPermissions

public java.util.List<PermissionData> getPermissions()
Getter method for the java bean permissions.

Returns:
Returns the value of the java bean permissions.

getPermission

public int getPermission(java.lang.String path,
                         java.lang.String ftproot,
                         java.lang.String user)
                  throws FtpConfigException
Returns the group permission on the passed path.

Parameters:
path - The path to check.
ftproot - The FTP root folder.
user - The user's name.
Returns:
The permission.
Throws:
FtpConfigException - Error on reading or processing a configuration file.

getName

public java.lang.String getName()
Getter method for the java bean name.

Returns:
Returns the value of the java bean name.

setName

public void setName(java.lang.String name)
Setter method for the java bean name.

Parameters:
name - The value of name to set.


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