Searched refs:permissions (Results 126 - 150 of 435) sorted by path

1234567891011>>

/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
H A DUnixDirectoryListingFormatter.java13 * See the License for the specific language governing permissions and
58 Permissions permissions = fileSystemEntry.getPermissions() != null ? fileSystemEntry.getPermissions() : Permissions.DEFAULT;
59 String permissionsStr = StringUtil.padRight(permissions.asRwxString(), 9);
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/
H A DUserAccountTest.groovy13 * See the License for the specific language governing permissions and
102 // No file permissions - readable by all
105 // UserAccount has no username or group; use World permissions
126 // No file permissions - writable by all
129 // UserAccount has no username or group; use World permissions
150 // No file permissions - executable by all
153 // UserAccount has no username or group; use World permissions
198 def permissions = permissionsString ? new Permissions(permissionsString) : null
199 return new FileEntry(path: '', owner: owner, group: group, permissions: permissions)
[all...]
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/
H A DAbstractStoreFileCommandHandlerTestCase.groovy13 * See the License for the specific language governing permissions and
46 fileSystem.getEntry(FILE).permissions = Permissions.NONE
52 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x')
59 fileSystem.getEntry(DIR).permissions = new Permissions('rw-rw-rw-')
97 assert fileEntry.permissions == userAccount.defaultPermissionsForNewFile
H A DCdupCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
54 dir.permissions = new Permissions('rw-rw-rw-')
H A DCwdCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
67 dir.permissions = new Permissions('rw-rw-rw-')
H A DDeleCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
79 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x')
H A DListCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
97 fileSystem.getEntry(DIR).permissions = new Permissions('-wx-wx-wx')
H A DMkdCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
47 assert dirEntry.permissions == PERMISSIONS
56 assert dirEntry.permissions == UserAccount.DEFAULT_PERMISSIONS_FOR_NEW_DIRECTORY
76 fileSystem.getEntry(PARENT).permissions = new Permissions('r-xr-xr-x')
82 fileSystem.getEntry(PARENT).permissions = new Permissions('rw-rw-rw-')
H A DNlstCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
81 fileSystem.getEntry(DIR).permissions = new Permissions('-wx-wx-wx')
H A DRetrCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
75 fileSystem.getEntry(FILE).permissions = Permissions.NONE
81 fileSystem.getEntry(DIR).permissions = Permissions.NONE
H A DRmdCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
95 fileSystem.getEntry(PARENT).permissions = new Permissions('r-xr-xr-x')
H A DRnfrCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
67 fileSystem.getEntry(FILE).permissions = new Permissions('-wx-wx-wx')
H A DRntoCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
110 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x')
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
H A DAbstractFakeFileSystemTestCase.groovy13 * See the License for the specific language governing permissions and
123 def permissions = new Permissions('-wxrwx---')
125 group: 'group', permissions: permissions)
134 assert entry.permissions == permissions
H A DAbstractFileSystemEntryTestCase.groovy13 * See the License for the specific language governing permissions and
73 assert entry.permissions == new Permissions(PERM)
H A DDirectoryEntryTest.groovy13 * See the License for the specific language governing permissions and
33 entry.permissions = PERMISSIONS
41 assert clone.permissions == PERMISSIONS
H A DFileEntryTest.groovy13 * See the License for the specific language governing permissions and
115 entry.permissions = PERMISSIONS
124 assert clone.permissions == PERMISSIONS
H A DPermissionsTest.groovy13 * See the License for the specific language governing permissions and
78 def permissions = new Permissions(rwxString)
79 LOG.info("Testing can read/write/execute for $permissions")
80 assert permissions.canUserRead() == canUserRead
81 assert permissions.canUserWrite() == canUserWrite
82 assert permissions.canUserExecute() == canUserExecute
83 assert permissions.canGroupRead() == canGroupRead
84 assert permissions.canGroupWrite() == canGroupWrite
85 assert permissions.canGroupExecute() == canGroupExecute
86 assert permissions
[all...]
H A DUnixDirectoryListingFormatterTest.groovy13 * See the License for the specific language governing permissions and
53 owner: OWNER, group: GROUP, permissions: FILE_PERMISSIONS)
83 owner: OWNER, group: GROUP, permissions: DIR_PERMISSIONS)
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/
H A DUserAccount.java13 * See the License for the specific language governing permissions and
26 * directory, list of groups to which this user belongs, and default permissions applied to
37 * The default value for <code>defaultPermissionsForNewFile</code> is read and write permissions for
39 * write and execute permissions for all (user/group/world).
214 Permissions permissions = entry.getPermissions();
215 if (permissions == null) {
220 return permissions.canUserRead();
223 return permissions.canGroupRead();
225 return permissions.canWorldRead();
235 Permissions permissions
[all...]
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
H A DAbstractFileSystemEntry.java13 * See the License for the specific language governing permissions and
62 return permissions;
65 public void setPermissions(Permissions permissions) { argument
66 this.permissions = permissions;
69 private Permissions permissions; field in class:AbstractFileSystemEntry
119 this.permissions = new Permissions(permissionsString);
H A DUnixDirectoryListingFormatter.java13 * See the License for the specific language governing permissions and
54 Permissions permissions = fileSystemEntry.getPermissions() != null ? fileSystemEntry.getPermissions() : Permissions.DEFAULT;
55 String permissionsStr = StringUtil.padRight(permissions.asRwxString(), 9);
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/
H A DUserAccountTest.groovy13 * See the License for the specific language governing permissions and
104 // No file permissions - readable by all
107 // UserAccount has no username or group; use World permissions
128 // No file permissions - writable by all
131 // UserAccount has no username or group; use World permissions
152 // No file permissions - executable by all
155 // UserAccount has no username or group; use World permissions
200 def permissions = permissionsString ? new Permissions(permissionsString) : null
201 return new FileEntry(path: '', owner: owner, group: group, permissions: permissions)
[all...]
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/
H A DAbstractStoreFileCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
46 fileSystem.getEntry(FILE).permissions = Permissions.NONE
52 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x')
59 fileSystem.getEntry(DIR).permissions = new Permissions('rw-rw-rw-')
97 assert fileEntry.permissions == userAccount.defaultPermissionsForNewFile
H A DCdupCommandHandlerTest.groovy13 * See the License for the specific language governing permissions and
54 dir.permissions = new Permissions('rw-rw-rw-')

Completed in 4538 milliseconds

1234567891011>>