com.stratelia.webactiv.util.contact.control
Interface ContactBm

All Known Implementing Classes:
ContactBmEJB

public interface ContactBm


Method Summary
 void addFather(ContactPK pubPK, NodePK fatherPK)
          addFather() add a new father (designed by "fatherPK") to a contact ("pubPK") The contact will be visible from its new father node.
 ContactPK createContact(Contact contact)
          createContact() Create a new contact A new line will be added in contact table.
 void createInfoModel(ContactPK pubPK, String modelId)
           
 void deleteIndex(ContactPK pk)
           
 void deleteOrphanContactsByCreatorId(ContactPK pubPK, String creatorId)
           
 Collection<NodePK> getAllFatherPK(ContactPK pubPK)
          getAllFatherPK() return a collection, containing all node primary key from where the contact is visible
 CompleteContact getCompleteContact(ContactPK pubPK)
           
 CompleteContact getCompleteContact(ContactPK pubPK, String modelId)
           
 Collection<ContactDetail> getContacts(Collection<ContactPK> contactPKs)
           
 ContactDetail getDetail(ContactPK pubPK)
          getDetail() get details on the contact specified by the primary key given in pubPK parameter
 Collection<ContactDetail> getDetailsByFatherPK(NodePK fatherPK)
          getDetailsByFatherPK() return a ContactDetail collection of all contact visible from the node identified by "fatherPK" parameter
 Collection<ContactFatherDetail> getDetailsByFatherPKs(Collection<NodePK> fatherPKs, ContactPK pubPK, NodePK nodePK)
           
 Collection<ContactDetail> getDetailsByLastName(ContactPK pk, String query)
           
 Collection<ContactDetail> getDetailsByLastNameAndFirstName(ContactPK pk, String lastName, String firstName)
           
 Collection<ContactDetail> getDetailsByLastNameOrFirstName(ContactPK pk, String query)
           
 int getNbPubByFatherPath(NodePK fatherPK, String fatherPath)
           
 int getNbPubInFatherPKs(Collection<NodePK> fatherPKs)
           
 Collection<ContactDetail> getOrphanContacts(ContactPK pubPK)
          getOrphanContacts() return the Detail of contact which are not linked to a father
 Collection<ContactDetail> getUnavailableContactsByPublisherId(ContactPK pubPK, String publisherId, String nodeId)
           
 List<CompleteContact> getVisibleContacts(String instanceId)
          Gets all non transitive contacts from an component represented by the given identifier that are not in basket.
 void index(ContactPK pk)
           
 void removeAllFather(ContactPK pubPK)
          removeAllFather() remove all father from a contact ("pubPK") The contact won't be visible.
 void removeAllIssue(NodePK originPK, ContactPK pubPK)
          removeAllIssue() remove all links between contacts and node N N is a descendant of the node designed by originPK
 void removeContact(ContactPK pubPK)
          removeContact() remove the contact designed by pubPK parameter.
 void removeFather(ContactPK pubPK, NodePK fatherPK)
          removeFather() remove a father (designed by "fatherPK") from a contact ("pubPK") The contact won't be visible from its old father node.
 void setDetail(Contact detail)
          setDetail() update the contact content.
 

Method Detail

getDetail

ContactDetail getDetail(ContactPK pubPK)
getDetail() get details on the contact specified by the primary key given in pubPK parameter

Parameters:
pubPK -
Returns:

createContact

ContactPK createContact(Contact contact)
createContact() Create a new contact A new line will be added in contact table. The "id" in "detail" is not used (a new one will be computed). The "ed" is used to know the table name.

Parameters:
detail -
Returns:

removeContact

void removeContact(ContactPK pubPK)
removeContact() remove the contact designed by pubPK parameter.

Parameters:
pubPK -

setDetail

void setDetail(Contact detail)
setDetail() update the contact content.

Parameters:
detail -

addFather

void addFather(ContactPK pubPK,
               NodePK fatherPK)
addFather() add a new father (designed by "fatherPK") to a contact ("pubPK") The contact will be visible from its new father node.

Parameters:
pubPK -
fatherPK -

removeFather

void removeFather(ContactPK pubPK,
                  NodePK fatherPK)
removeFather() remove a father (designed by "fatherPK") from a contact ("pubPK") The contact won't be visible from its old father node.

Parameters:
pubPK -
fatherPK -

removeAllFather

void removeAllFather(ContactPK pubPK)
removeAllFather() remove all father from a contact ("pubPK") The contact won't be visible.

Parameters:
pubPK -

removeAllIssue

void removeAllIssue(NodePK originPK,
                    ContactPK pubPK)
removeAllIssue() remove all links between contacts and node N N is a descendant of the node designed by originPK

Parameters:
originPK -
pubPK -

getOrphanContacts

Collection<ContactDetail> getOrphanContacts(ContactPK pubPK)
getOrphanContacts() return the Detail of contact which are not linked to a father

Parameters:
pubPK -
Returns:

deleteOrphanContactsByCreatorId

void deleteOrphanContactsByCreatorId(ContactPK pubPK,
                                     String creatorId)

getUnavailableContactsByPublisherId

Collection<ContactDetail> getUnavailableContactsByPublisherId(ContactPK pubPK,
                                                              String publisherId,
                                                              String nodeId)

getAllFatherPK

Collection<NodePK> getAllFatherPK(ContactPK pubPK)
getAllFatherPK() return a collection, containing all node primary key from where the contact is visible

Parameters:
pubPK -
Returns:

getDetailsByFatherPK

Collection<ContactDetail> getDetailsByFatherPK(NodePK fatherPK)
getDetailsByFatherPK() return a ContactDetail collection of all contact visible from the node identified by "fatherPK" parameter

Parameters:
fatherPK -
Returns:

getDetailsByLastName

Collection<ContactDetail> getDetailsByLastName(ContactPK pk,
                                               String query)

getDetailsByLastNameOrFirstName

Collection<ContactDetail> getDetailsByLastNameOrFirstName(ContactPK pk,
                                                          String query)

getDetailsByLastNameAndFirstName

Collection<ContactDetail> getDetailsByLastNameAndFirstName(ContactPK pk,
                                                           String lastName,
                                                           String firstName)

createInfoModel

void createInfoModel(ContactPK pubPK,
                     String modelId)

getCompleteContact

CompleteContact getCompleteContact(ContactPK pubPK)

getCompleteContact

CompleteContact getCompleteContact(ContactPK pubPK,
                                   String modelId)

getContacts

Collection<ContactDetail> getContacts(Collection<ContactPK> contactPKs)

getNbPubInFatherPKs

int getNbPubInFatherPKs(Collection<NodePK> fatherPKs)

getDetailsByFatherPKs

Collection<ContactFatherDetail> getDetailsByFatherPKs(Collection<NodePK> fatherPKs,
                                                      ContactPK pubPK,
                                                      NodePK nodePK)

getNbPubByFatherPath

int getNbPubByFatherPath(NodePK fatherPK,
                         String fatherPath)

getVisibleContacts

List<CompleteContact> getVisibleContacts(String instanceId)
Gets all non transitive contacts from an component represented by the given identifier that are not in basket. A transitive contact is a contact of user type linked directly by a group.

Parameters:
instanceId - the identifier of the component instance into which contact are retrieved.
Returns:
the list of complete contact data. Empty list if none.

index

void index(ContactPK pk)

deleteIndex

void deleteIndex(ContactPK pk)


Copyright © 2016 Silverpeas. All Rights Reserved.