View Javadoc

1   package fr.in2p3.jsaga.impl.permissions;
2   
3   import fr.in2p3.jsaga.impl.task.AbstractAsyncTaskImpl;
4   import org.ogf.saga.error.*;
5   import org.ogf.saga.job.Job;
6   import org.ogf.saga.permissions.Permissions;
7   import org.ogf.saga.session.Session;
8   import org.ogf.saga.task.Task;
9   import org.ogf.saga.task.TaskMode;
10  
11  /* ***************************************************
12  * *** Centre de Calcul de l'IN2P3 - Lyon (France) ***
13  * ***             http://cc.in2p3.fr/             ***
14  * ***************************************************
15  * File:   AbstractJobPermissionsImpl
16  * Author: Sylvain Reynaud (sreynaud@in2p3.fr)
17  * Date:   26 oct. 2007
18  * ***************************************************
19  * Description:                                      */
20  /**
21   *
22   */
23  public abstract class AbstractJobPermissionsImpl extends AbstractAsyncTaskImpl<Job> implements Permissions<Job> {
24      /** constructor */
25      public AbstractJobPermissionsImpl(Session session, boolean create) throws NotImplementedException, BadParameterException, TimeoutException, NoSuccessException {
26          super(session, create);
27      }
28  
29      public void permissionsAllow(String id, int permissions) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException {
30          throw new NotImplementedException("Not implemented by the SAGA engine", this);
31      }
32  
33      public void permissionsDeny(String id, int permissions) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, TimeoutException, NoSuccessException {
34          throw new NotImplementedException("Not implemented by the SAGA engine", this);
35      }
36  
37      public boolean permissionsCheck(String id, int permissions) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException {
38          throw new NotImplementedException("Not implemented by the SAGA engine", this);
39      }
40  
41      public String getOwner() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException {
42          throw new NotImplementedException("Not implemented by the SAGA engine", this);
43      }
44  
45      public String getGroup() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException {
46          throw new NotImplementedException("Not implemented by the SAGA engine", this);
47      }
48  
49      public Task<Job, Void> permissionsAllow(TaskMode mode, String id, int permissions) throws NotImplementedException {
50          throw new NotImplementedException("Not implemented by the SAGA engine", this);
51      }
52  
53      public Task<Job, Void> permissionsDeny(TaskMode mode, String id, int permissions) throws NotImplementedException {
54          throw new NotImplementedException("Not implemented by the SAGA engine", this);
55      }
56  
57      public Task<Job, Boolean> permissionsCheck(TaskMode mode, String id, int permissions) throws NotImplementedException {
58          throw new NotImplementedException("Not implemented by the SAGA engine", this);
59      }
60  
61      public Task<Job, String> getOwner(TaskMode mode) throws NotImplementedException {
62          throw new NotImplementedException("Not implemented by the SAGA engine", this);
63      }
64  
65      public Task<Job, String> getGroup(TaskMode mode) throws NotImplementedException {
66          throw new NotImplementedException("Not implemented by the SAGA engine", this);
67      }
68  }