Package org.apache.ftpserver.usermanager

Examples of org.apache.ftpserver.usermanager.WriteRequest


        StringBuffer sb = new StringBuffer(128);
        sb.append("\n");
        sb.append("userid          : ").append(user.getName()).append("\n");
        sb.append("userpassword    : ********\n");
        sb.append("homedirectory   : ").append(user.getHomeDirectory()).append("\n");
        sb.append("writepermission : ").append(user.authorize(new WriteRequest())).append("\n");
        sb.append("enableflag      : ").append(user.getEnabled()).append("\n");
        sb.append("idletime        : ").append(user.getMaxIdleTime()).append("\n");
       
        TransferRateRequest transferRateRequest = new TransferRateRequest();
        transferRateRequest = (TransferRateRequest) session.getUser().authorize(transferRateRequest);
View Full Code Here


    /**
     * Check file write permission.
     */
    public boolean hasWritePermission() {
        if (user.authorize(new WriteRequest(getFullName())) == null) {
            return false;
        }

        if (file.exists()) {
            return file.canWrite();
View Full Code Here

    /**
     * Check file write permission.
     */
    public boolean hasWritePermission() {
        LOG.debug("Checking authorization for " + getFullName());
        if (user.authorize(new WriteRequest(getFullName())) == null) {
            LOG.debug("Not authorized");
            return false;
        }

        LOG.debug("Checking if file exists");
View Full Code Here

         * be deleted when their parent directory is writable.
        */
        String fullName=getFullName();
       
        // we check FTPServer's write permission for this file.
        if (user.authorize(new WriteRequest(fullName)) == null) {
            return false;
        }
        // In order to maintain consistency, when possible we delete the last '/' character in the String
        int indexOfSlash=fullName.lastIndexOf('/');
        String parentFullName;
View Full Code Here

        sb.append("userid          : ").append(user.getName()).append("\n");
        sb.append("userpassword    : ********\n");
        sb.append("homedirectory   : ").append(user.getHomeDirectory()).append(
                "\n");
        sb.append("writepermission : ").append(
                user.authorize(new WriteRequest())).append("\n");
        sb.append("enableflag      : ").append(user.getEnabled()).append("\n");
        sb.append("idletime        : ").append(user.getMaxIdleTime()).append(
                "\n");

        TransferRateRequest transferRateRequest = new TransferRateRequest();
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.usermanager.WriteRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.