|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hermesftp.usermanager.model.PermissionData
public class PermissionData
Represents the permission on one or more file pathes. The paths a configured using ant style path naming conventions.
Constructor Summary | |
---|---|
PermissionData()
|
Method Summary | |
---|---|
int |
getPermission()
Getter method for the java bean permission . |
java.lang.String |
getTemplate()
Getter method for the java bean template . |
boolean |
matches(java.lang.String checkPath,
java.lang.String ftproot,
java.lang.String username)
Fills the placeholders in the path template and checks if the passed path matches the template. |
void |
setPermission(int permission)
Setter method for the java bean permission . |
void |
setTemplate(java.lang.String template)
Setter method for the java bean template . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PermissionData()
Method Detail |
---|
public int getPermission()
permission
.
permission
.public void setPermission(int permission)
permission
.
permission
- The value of permission to set.public java.lang.String getTemplate()
template
.
template
.public void setTemplate(java.lang.String template)
template
.
template
- The value of template to set.public boolean matches(java.lang.String checkPath, java.lang.String ftproot, java.lang.String username) throws FtpConfigException
checkPath
- The path to check.ftproot
- The ftp root folder.username
- The username.
FtpConfigException
- Error on reading or processing a configuration file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |