KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > partmappersistence > ParticipantMappingManager


1 package org.enhydra.shark.api.internal.partmappersistence;
2
3 import org.enhydra.shark.api.ParticipantMappingTransaction;
4 import org.enhydra.shark.api.RootException;
5 import org.enhydra.shark.api.TransactionException;
6 import org.enhydra.shark.api.internal.working.CallbackUtilities;
7 import java.util.List JavaDoc;
8
9 /**
10  * Interface represents mappings between participants and shak users.
11  * @author Zoran Milakovic
12  */

13 public interface ParticipantMappingManager
14 {
15    void configure (CallbackUtilities cus) throws RootException;
16
17    public boolean saveParticipantMapping( ParticipantMappingTransaction trans, ParticipantMap pm ) throws RootException;
18
19    public boolean deleteParticipantMapping( ParticipantMappingTransaction trans, ParticipantMap pm ) throws RootException;
20
21    public List JavaDoc getAllParticipantMappings( ParticipantMappingTransaction trans ) throws RootException;
22
23    public boolean doesParticipantMappingExist (ParticipantMappingTransaction trans,ParticipantMap pm) throws RootException;
24
25    public ParticipantMap createParticipantMap ();
26
27    public List JavaDoc getParticipantMappings(
28       ParticipantMappingTransaction trans,
29       String JavaDoc packageId,
30       String JavaDoc processDefinitionId,
31       String JavaDoc participantId ) throws RootException;
32
33    public boolean deleteParticipantMappings(
34       ParticipantMappingTransaction trans,
35       String JavaDoc packageId,
36       String JavaDoc processDefinitionId,
37       String JavaDoc participantId ) throws RootException;
38
39    public boolean deleteParticipantMappings( ParticipantMappingTransaction trans, String JavaDoc username ) throws RootException;
40
41    public ParticipantMappingTransaction getParticipantMappingTransaction() throws TransactionException;
42 }
43
44
Popular Tags