Code example for FilePermission

Methods: getActions

0
			FilePermission filePermission = (FilePermission) perm;
			// Get the fileSystemManager 
			RobotFileSystemManager fileSystemManager = robotProxy.getRobotFileSystemManager();
 
			// Robot wants access to read something 
			if (filePermission.getActions().equals("read")) {
				return impliesRobotFileRead(robotProxy, fileSystemManager, filePermission);
 
			} // Robot wants access to write something 
			else if (filePermission.getActions().equals("write")) {
				return impliesRobotFileWrite(robotProxy, fileSystemManager, filePermission);
 
			} // Robot wants access to write something 
			else if (filePermission.getActions().equals("delete")) {
				return impliesRobotFileDelete(robotProxy, fileSystemManager, filePermission);
 
			} 
		} 
 
		// check package access 
Contextual code suggestions in your IDE  Get Codota for Java