@Component(value="consumer-operation") public class ConsumerOperation extends Object implements IConsumerOperation
Constructor and Description |
---|
ConsumerOperation() |
Modifier and Type | Method and Description |
---|---|
fj.data.Either<ConsumerData,StorageOperationStatus> |
createCredentials(ConsumerData consumerData)
the method creates a new nod in the grape representing the supplied
credential object
|
fj.data.Either<ConsumerData,StorageOperationStatus> |
createCredentials(ConsumerData consumerData,
boolean inTransaction)
the method creates a new nod in the grape representing the supplied
credential object
|
fj.data.Either<ConsumerData,StorageOperationStatus> |
deleteCredentials(String consumerName)
the method deletes the node with the given unique id
|
fj.data.Either<ConsumerData,StorageOperationStatus> |
deleteCredentials(String consumerName,
boolean inTransaction)
the method deletes the node with the given unique id
|
fj.data.Either<ConsumerData,StorageOperationStatus> |
getCredentials(String consumerName)
the method retrieves the credential for the given consumer name
|
fj.data.Either<ConsumerData,StorageOperationStatus> |
updateCredentials(ConsumerData consumerData)
the method updates the node in the graph with the given ConsumerData
|
fj.data.Either<ConsumerData,StorageOperationStatus> |
updateCredentials(ConsumerData consumerData,
boolean inTransaction)
the method updates the node in the graph with the given ConsumerData
|
public fj.data.Either<ConsumerData,StorageOperationStatus> getCredentials(String consumerName)
IConsumerOperation
getCredentials
in interface IConsumerOperation
consumerName
- the unique id by witch we will look up the credentialpublic fj.data.Either<ConsumerData,StorageOperationStatus> createCredentials(ConsumerData consumerData)
IConsumerOperation
createCredentials
in interface IConsumerOperation
consumerData
- the object we want to storepublic fj.data.Either<ConsumerData,StorageOperationStatus> createCredentials(ConsumerData consumerData, boolean inTransaction)
IConsumerOperation
createCredentials
in interface IConsumerOperation
consumerData
- the object we want to storeinTransaction
- is the operation part of a transaction, in case the value is
false the action will be committed in the end of the methodpublic fj.data.Either<ConsumerData,StorageOperationStatus> deleteCredentials(String consumerName)
IConsumerOperation
deleteCredentials
in interface IConsumerOperation
consumerName
- the unique id by witch we will look up the credential we want
to deletepublic fj.data.Either<ConsumerData,StorageOperationStatus> deleteCredentials(String consumerName, boolean inTransaction)
IConsumerOperation
deleteCredentials
in interface IConsumerOperation
consumerName
- the unique id by witch we will look up the credential we want
to deleteinTransaction
- inTransaction is the operation part of a transaction, in case
the value is false the action will be committed in the end of
the methodpublic fj.data.Either<ConsumerData,StorageOperationStatus> updateCredentials(ConsumerData consumerData)
IConsumerOperation
updateCredentials
in interface IConsumerOperation
consumerData
- the object we want to storepublic fj.data.Either<ConsumerData,StorageOperationStatus> updateCredentials(ConsumerData consumerData, boolean inTransaction)
IConsumerOperation
updateCredentials
in interface IConsumerOperation
consumerData
- the object we want to storeinTransaction
- inTransaction is the operation part of a transaction, in case
the value is false the action will be committed in the end of
the methodCopyright © 2017. All rights reserved.