public interface OpportuniteService extends IService, ServiceWithLastCreatedRecordSearch
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_ID |
Modifier and Type | Method and Description |
---|---|
FOpportunite |
abandonOpportuniteAnnulerSessions(FOpportunite opportunite,
Date dateAbandon,
String motifAbandon)
Cancels the training sessions of a lead while this one is abandoned
|
CtxOpportunite |
abandonOpportuniteDesassocierSessions(CtxOpportunite ctxOpportunite)
Suppresses all the links between the lead and its training sessions
|
void |
associerCollaborateur(FOpportunite opportunite,
String codeCollab)
Associate a collab to a lead
|
void |
associerContactClient(FOpportunite opportunite,
FPContact contact,
String identTiers,
Double indicateurParDefaut)
Associates a customer contact to a lead
|
void |
associerEvenementOpportunite(FEvents event,
FOpportunite opportunite)
Associates an event to an opportunity
|
FcSession |
associerSession(CtxOpportunite ctxOpportunite,
FcSession session)
Adds a training session to a lead
|
CtxOpportunite |
changerEtatOpportunite(CtxOpportunite ctxOpportunite,
Double ancienStatut)
Changes the state of a lead
|
FLigneopport |
creerLigneOpportunite(FLigneopport ligneOpportunite)
Insert a new line of lead
|
CtxOpportunite |
creerOpportunite(CtxOpportunite context)
Create a lead
|
FOpportunite |
creerOpportunite(FOpportunite opportunite)
Create a lead
|
CtxOpportunite |
creerTypeVenteOpp(CtxOpportunite context) |
List<ContactOpportunite> |
findAllContactsOpportunite(FOpportunite opportunite)
Returns a list with all contacts of an opportunity
|
Collection<TTypeOppven> |
findAllTypesVente() |
List<FOpportunite> |
findByCodeAndSociete(String codeOpportunite,
String codeSociete)
Returns the list of leads which code is the one in parameter and which are on the company in parameter
|
List<FOpportunite> |
findByCodeLike(String string) |
List<FOpportunite> |
findByNomAppelLike(String string) |
FOpportunite |
findByPrimaryKey(Double identOpportunite)
Searchs an opportunity by its identifier
|
List<FPCollaborateur> |
findCollaborateursOpportunite(FOpportunite opportunite)
Returns the list of collaborators linked to the opportunity
|
List<FPContact> |
findContactsOpportunite(FOpportunite opportunite)
Returns the list of the contacts of an opportunity except the collaborators
|
List<TParstdParam> |
findEtatAvancementPossibles()
Returns the liste of lead states which are possible and valid at the current date
|
List<TParstdParam> |
findEtatAvancementPossiblesLikeCode(String codeParam)
Returns the list of lead states that are valid at the current date and that correspond to the code given
in parameter.
|
List<FLigneopport> |
findLignesByOpport(Double ident)
Retourne la liste des lignes d'opportunité dont l'ident est passé en paramétre
|
List<FOpportunite> |
findLikeCodeAndSociete(String codeOpportunite,
String codeSociete)
Returns the list of leads which code is the one in parameter and which are on the company in parameter
|
List<TParstdParam> |
findTypesOrigineLikeCode(String codeParam)
Returns the list of possible origins for a lead and that correspond to the code given in parameter.
|
List<TParstdParam> |
findTypesOriginePossibles()
Returns the list of origins for a lead (for example : direct, campaign...) which are valid at the current date
|
List<org.jfree.data.category.CategoryDataset> |
listeOpportunite(CtxIndicateurs context,
boolean bMontant,
boolean cumul)
graphique opportunité par origine et status par montant/quantité cumulé et non cumulé
|
CtxOpportunite |
loadByIdent(Double identOpportunite)
Loads a lead by its identifier
|
FLigneopport |
loadLigneOppByIdent(Double ident) |
CtxOpportunite |
loadOpportuniteByIdent(Double identOpportunite) |
TTypeOppven |
loadTypeVenteByIdent(Double ident) |
FLigneopport |
modifierLigneOpportunite(FLigneopport ligneOpportunite)
Update a line of lead
|
CtxOpportunite |
modifierOpportunite(CtxOpportunite opportunite)
Update a lead
|
FOpportunite |
modifierOpportunite(FOpportunite opportunite)
Update a lead
|
List<OpportuniteResultatRecherche> |
rechercheMultiCriteres(OpportuniteCriteresRecherche critere)
Recherche multi critéres des opportunités de vente
|
List<OpportuniteFCResultatRecherche> |
rechercheMultiCriteresFC(OpportuniteFCCriteresRecherche critere)
Recherche multi critères des opportunités de formation continue
|
List<FOpportunite> |
rechercheMultiCriteresPersistent(OpportuniteCriteresRecherche critere) |
void |
supprimerCollaborateur(Double identOpp,
String codeCollab) |
void |
supprimerCollaborateur(FOpportunite opportunite,
FPCollaborateur collab)
Removes a collaborator from a lead
|
void |
supprimerContactClient(Double identOpp,
Double identCnt) |
void |
supprimerContactClient(FOpportunite opportunite,
FPContact contact)
Removes a customer contact from a lead
|
void |
supprimerEvenementOpportunite(FEvents event)
Removes an event from a lead.
|
void |
supprimerLigneOpportunite(FLigneopport ligneOpportunite)
Suppress a line of lead
|
void |
supprimerOpportunite(FOpportunite opportunite)
Suppress a lead.
|
FcSession |
supprimerSession(FOpportunite opportunite,
FcSession session)
Removes the link between a lead and a training session
|
void |
supprimerTypeVentesOpp(CtxOpportunite context) |
List<OpportuniteResultatRecherche> |
syntheseRechercheMultiCriteres(List<OpportuniteResultatRecherche> listeResultats)
Synthetise une liste de résultats de recherche obtenue apres avoir effectué une recherche multi critéres sur les
opportunités.
|
getServerMessages, resetServerMessages
getLastCreatedRecord
static final String SERVICE_ID
FLigneopport creerLigneOpportunite(FLigneopport ligneOpportunite)
ligneOpportunite
- line of leadFLigneopport modifierLigneOpportunite(FLigneopport ligneOpportunite)
ligneOpportunite
- line of leadvoid supprimerLigneOpportunite(FLigneopport ligneOpportunite)
ligneOpportunite
- line of leadFOpportunite creerOpportunite(FOpportunite opportunite)
opportunite
- FOpportunite modifierOpportunite(FOpportunite opportunite)
opportunite
- CtxOpportunite modifierOpportunite(CtxOpportunite opportunite)
opportunite
- void supprimerOpportunite(FOpportunite opportunite)
opportunite
- void associerCollaborateur(FOpportunite opportunite, String codeCollab)
opportunite
- codeCollab
- void associerContactClient(FOpportunite opportunite, FPContact contact, String identTiers, Double indicateurParDefaut)
opportunite
- the leadcontact
- the contact to linkidentTiers
- for the comments, can be null
indicateurParDefaut
- 1 : by default 0 : elsevoid supprimerContactClient(FOpportunite opportunite, FPContact contact)
opportunite
- the leadcontact
- the customer contact to removevoid supprimerCollaborateur(FOpportunite opportunite, FPCollaborateur collab)
opportunite
- the leadcollab
- the collaborator to removeList<ContactOpportunite> findAllContactsOpportunite(FOpportunite opportunite)
opportunite
- FOpportunite findByPrimaryKey(Double identOpportunite)
identOpportunite
- CtxOpportunite loadByIdent(Double identOpportunite)
identOpportunite
- CtxOpportunite loadOpportuniteByIdent(Double identOpportunite)
identOpportunite
- FLigneopport loadLigneOppByIdent(Double ident)
ident
- List<FPContact> findContactsOpportunite(FOpportunite opportunite)
opportunite
- Null
if nothing is found.List<FPCollaborateur> findCollaborateursOpportunite(FOpportunite opportunite)
opportunite
- Null
if nothing is found.void associerEvenementOpportunite(FEvents event, FOpportunite opportunite)
event
- the event. If it's not created, creates it.opportunite
- the leadvoid supprimerEvenementOpportunite(FEvents event)
event
- event to removeList<TParstdParam> findEtatAvancementPossibles()
TParstdParam
foundList<TParstdParam> findEtatAvancementPossiblesLikeCode(String codeParam)
codeParam
- lead state code. You can use the character '%' to make a search like
.List<FOpportunite> findByCodeAndSociete(String codeOpportunite, String codeSociete)
codeOpportunite
- the lead codecodeSociete
- the company codeList<FOpportunite> findLikeCodeAndSociete(String codeOpportunite, String codeSociete)
codeOpportunite
- the lead codecodeSociete
- the company codeList<TParstdParam> findTypesOriginePossibles()
List<TParstdParam> findTypesOrigineLikeCode(String codeParam)
codeParam
- Lead origin code. You can use the character '%' to make a search like
.List<OpportuniteResultatRecherche> rechercheMultiCriteres(OpportuniteCriteresRecherche critere)
critere
- Critéres de recherche des opportunitésList<FOpportunite> rechercheMultiCriteresPersistent(OpportuniteCriteresRecherche critere)
critere
- List<OpportuniteResultatRecherche> syntheseRechercheMultiCriteres(List<OpportuniteResultatRecherche> listeResultats)
listeResultats
- Liste synthétiséeList<FLigneopport> findLignesByOpport(Double ident)
ident
- CtxOpportunite creerOpportunite(CtxOpportunite context)
context
- TTypeOppven loadTypeVenteByIdent(Double ident)
Collection<TTypeOppven> findAllTypesVente()
CtxOpportunite creerTypeVenteOpp(CtxOpportunite context)
void supprimerTypeVentesOpp(CtxOpportunite context)
List<org.jfree.data.category.CategoryDataset> listeOpportunite(CtxIndicateurs context, boolean bMontant, boolean cumul)
context
- FcSession associerSession(CtxOpportunite ctxOpportunite, FcSession session)
opportunite
- the leadsession
- the training sessionFOpportunite abandonOpportuniteAnnulerSessions(FOpportunite opportunite, Date dateAbandon, String motifAbandon)
opportunite
- the lead needs to have be load with its attributes (FetchMode.JOIN)dateAbandon
- motifAbandon
- the reasonCtxOpportunite abandonOpportuniteDesassocierSessions(CtxOpportunite ctxOpportunite)
opportunite
- the lead needs to have be load with its attributes (FetchMode.JOIN)List<OpportuniteFCResultatRecherche> rechercheMultiCriteresFC(OpportuniteFCCriteresRecherche critere)
critere
- Critères de rechercheCtxOpportunite changerEtatOpportunite(CtxOpportunite ctxOpportunite, Double ancienStatut)
opportunite
- the lead to updateancienStatut
- identifier of the old lead stateFcSession supprimerSession(FOpportunite opportunite, FcSession session)
opportunite
- the lead needs to have be load with its attributes (FetchMode.JOIN)session
- the training sessionList<FOpportunite> findByCodeLike(String string)
List<FOpportunite> findByNomAppelLike(String string)
Copyright © 2016. All rights reserved.