org.gcube.soa3.connector.common.security.utils
Class CredentialsBindedTasks

java.lang.Object
  extended by org.gcube.soa3.connector.common.security.utils.CredentialsBindedTasks

public class CredentialsBindedTasks
extends Object

Utility to bind the execution of standard tasks to the current credentials.

Author:
Ciro Formisano

Constructor Summary
CredentialsBindedTasks()
           
 
Method Summary
static
<V> Callable<V>
bind(Callable<V> task)
          Binds a Callable task to the current credentials.
static
<V> Runnable
bind(Runnable task)
          Binds a Runnable task to the current credentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialsBindedTasks

public CredentialsBindedTasks()
Method Detail

bind

public static <V> Callable<V> bind(Callable<V> task)
Binds a Callable task to the current credentials.

Parameters:
task - the task
Returns:
an equivalent Callable task bound to the current credentials

bind

public static <V> Runnable bind(Runnable task)
Binds a Runnable task to the current credentials.

Parameters:
task - the task
Returns:
an equivalent Runnable task bound to the current credentials


Copyright © 2013. All Rights Reserved.