Examples of JdcpPermission


Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      Subject.doAsPrivileged(user, new PrivilegedExceptionAction<Object>() {

        public Object run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("reportException"));
          service.reportException(jobId, taskId, ex);
          return null;
        }

      }, null);
View Full Code Here

Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      return (BitSet) Subject.doAsPrivileged(user, new PrivilegedExceptionAction<BitSet>() {

        public BitSet run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("getFinishedTasks"));
          return service.getFinishedTasks(jobIds, taskIds);
        }

      }, null);
    } catch (PrivilegedActionException e) {
View Full Code Here

Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      Subject.doAsPrivileged(user, new PrivilegedExceptionAction<Object>() {

        public Object run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("registerTaskService"));
          service.registerTaskService(name, taskService);
          return null;
        }

      }, null);
View Full Code Here

Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      Subject.doAsPrivileged(user, new PrivilegedExceptionAction<Object>() {

        public Object run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("unregisterTaskService"));
          service.unregisterTaskService(name);
          return null;
        }

      }, null);
View Full Code Here

Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      return (JobStatus) Subject.doAsPrivileged(user, new PrivilegedExceptionAction<JobStatus>() {

        public JobStatus run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("waitForJobStatusChange"));
          return service.waitForJobStatusChange(lastEventId, timeoutMillis);
        }

      }, null);
    } catch (PrivilegedActionException e) {
View Full Code Here

Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      return (JobStatus) Subject.doAsPrivileged(user, new PrivilegedExceptionAction<JobStatus>() {

        public JobStatus run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("waitForJobStatusChange"));
          return service.waitForJobStatusChange(jobId, lastEventId, timeoutMillis);
        }

      }, null);
    } catch (PrivilegedActionException e) {
View Full Code Here

Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      return (JobStatus) Subject.doAsPrivileged(user, new PrivilegedExceptionAction<JobStatus>() {

        public JobStatus run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("getJobStatus"));
          return service.getJobStatus(jobId);
        }

      }, null);
    } catch (PrivilegedActionException e) {
View Full Code Here

Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      Subject.doAsPrivileged(user, new PrivilegedExceptionAction<Object>() {

        public Object run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("cancelJob"));
          service.cancelJob(jobId);
          return null;
        }

      }, null);
View Full Code Here

Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      return (UUID) Subject.doAsPrivileged(user, new PrivilegedExceptionAction<UUID>() {

        public UUID run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("createJob"));
          return service.createJob(description);
        }

      }, null);
    } catch (PrivilegedActionException e) {
View Full Code Here

Examples of ca.eandb.jdcp.security.JdcpPermission

    try {
      return (byte[]) Subject.doAsPrivileged(user, new PrivilegedExceptionAction<byte[]>() {

        public byte[] run() throws Exception {
          AccessController.checkPermission(new JdcpPermission("getJobClassDefinition"));
          return service.getClassDefinition(name, jobId);
        }

      }, null);
    } catch (PrivilegedActionException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.