com.stratelia.webactiv.util.publication.control
Class PublicationBmEJB

java.lang.Object
  extended by com.stratelia.webactiv.util.publication.control.PublicationBmEJB
All Implemented Interfaces:
PublicationBm

public class PublicationBmEJB
extends Object
implements PublicationBm

Class declaration

Author:

Constructor Summary
PublicationBmEJB()
          Constructor declaration
 
Method Summary
 void addAlias(PublicationPK pubPK, List<Alias> aliases)
           
 void addFather(PublicationPK pubPK, NodePK fatherPK)
          add a new father (designed by "fatherPK") to a publication ("pubPK") The publication will be visible from its new father node.
 void addLinks(PublicationPK pubPK, List<ForeignPK> links)
          Updates the publication links
 void addValidationStep(ValidationStep step)
           
 void changePublicationOrder(PublicationPK pubPK, NodePK nodePK, int direction)
          Change order of the given publication identified by pubPK in the given nodePK. direction less than 0 means "up" else it means "down"
 void changePublicationsOrder(List<String> ids, NodePK nodePK)
           
 void createIndex(PublicationDetail pubDetail)
           
 void createIndex(PublicationPK pubPK)
          Method declaration
 PublicationPK createPublication(PublicationDetail detail)
          Create a new publication A new line will be added in publication table.
 void deleteIndex(PublicationPK pubPK)
          Called on : - deletePublication()
 void deleteInfoLinks(PublicationPK pubPK, List<ForeignPK> links)
          Removes links between publications and the specified publication
 void deleteOrphanPublicationsByCreatorId(PublicationPK pubPK, String creatorId)
          Method declaration
 Collection<Alias> getAlias(PublicationPK pubPK)
          return the publication's collection of Alias
 Collection<NodePK> getAllFatherPK(PublicationPK pubPK)
          return a collection, containing all node primary key from where the publication is visible
 Collection<PublicationDetail> getAllPublications(PublicationPK pubPK)
          Method declaration
 Collection<PublicationDetail> getAllPublications(PublicationPK pubPK, String sorting)
          Method declaration
 List<SocialInformation> getAllPublicationsWithStatusbyUserid(String userId, Date begin, Date end)
          get my list of SocialInformationPublication according to options and number of Item and the first Index
 CompletePublication getCompletePublication(PublicationPK pubPK)
           
 Collection<Coordinate> getCoordinates(String pubId, String componentId)
          Recupere les coordonnees de la publication (collection de nodePK)
 PublicationDetail getDetail(PublicationPK pubPK)
          get details on the publication specified by the primary key given in pubPK parameter
 Collection<PublicationDetail> getDetailBetweenDate(String beginDate, String endDate, String instanceId)
           
 PublicationDetail getDetailByName(PublicationPK pubPK, String pubName)
          Looking for, in the instance identified by pubPK, a publication named pubName.
 PublicationDetail getDetailByNameAndNodeId(PublicationPK pubPK, String pubName, int nodeId)
           
 Collection<PublicationDetail> getDetailsByBeginDateDesc(PublicationPK pk, int nbPubs)
          return a PublicationDetail collection of x last publications
 Collection<PublicationDetail> getDetailsByBeginDateDescAndStatus(PublicationPK pk, String status, int nbPubs)
          return a PublicationDetail collection of x last publications
 Collection<PublicationDetail> getDetailsByBeginDateDescAndStatusAndNotLinkedToFatherId(PublicationPK pk, String status, int nbPubs, String fatherId)
          Method declaration
 Collection<PublicationDetail> getDetailsByFatherIds(List<String> fatherIds, PublicationPK pubPK)
          Method declaration
 Collection<PublicationDetail> getDetailsByFatherIds(List<String> fatherIds, PublicationPK pubPK, boolean filterOnVisibilityPeriod)
           
 Collection<PublicationDetail> getDetailsByFatherIds(List<String> fatherIds, PublicationPK pubPK, String sorting)
           
 Collection<PublicationDetail> getDetailsByFatherIdsAndStatus(List<String> fatherIds, PublicationPK pubPK, String sorting, String status)
           
 Collection<PublicationDetail> getDetailsByFatherIdsAndStatusList(List<String> fatherIds, PublicationPK pubPK, String sorting, List<String> status)
           
 Collection<PublicationDetail> getDetailsByFatherIdsAndStatusList(List<String> fatherIds, PublicationPK pubPK, String sorting, List<String> status, boolean filterOnVisibilityPeriod)
           
 Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK)
          return a PublicationDetail collection of all publication visible from the node identified by "fatherPK" parameter
 Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK, String sorting)
           
 Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK, String sorting, boolean filterOnVisibilityPeriod)
           
 Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK, String sorting, boolean filterOnVisibilityPeriod, String userId)
           
 Collection<PublicationDetail> getDetailsNotInFatherPK(NodePK fatherPK)
          return a PublicationDetail collection of all publications not in the node identified by "fatherPK" parameter
 Collection<PublicationDetail> getDetailsNotInFatherPK(NodePK fatherPK, String sorting)
           
 Map<String,Integer> getDistributionTree(String instanceId, String statusSubQuery, boolean checkVisibility)
          * Return the tree of nodes with the number of publication per node.
 Collection<PublicationDetail> getDraftsByUser(String userId)
          get all publications of given user in state 'Draft'.
 int getNbPubByFatherPath(NodePK fatherPK, String fatherPath)
          Method declaration
 int getNbPubInFatherPKs(Collection<NodePK> fatherPKs)
          Method declaration
 Collection<PublicationDetail> getNotOrphanPublications(PublicationPK pubPK)
          return the Detail of publication which are linked to at least one father
 Collection<PublicationDetail> getOrphanPublications(PublicationPK pubPK)
          return the Detail of publication which are not linked to a father
 Collection<PublicationPK> getPublicationPKsByStatus(String status, List<String> componentIds)
           
 Collection<PublicationDetail> getPublications(Collection<PublicationPK> publicationPKs)
           
 Collection<PublicationDetail> getPublicationsByStatus(String status, List<String> componentIds)
           
 Collection<PublicationDetail> getPublicationsByStatus(String status, PublicationPK pubPK)
          Method declaration
 Collection<PublicationDetail> getPublicationsToDraftOut(boolean useClone)
           
 Collection<PublicationPK> getPubPKsInFatherPK(NodePK fatherPK)
          Method declaration
 Collection<PublicationPK> getPubPKsInFatherPKs(Collection<WAPrimaryKey> fatherPKs)
          Method declaration
 List<SocialInformationPublication> getSocialInformationsListOfMyContacts(List<String> myContactsIds, List<String> options, Date begin, Date end)
          Get list of SocialInformationPublication of my contacts according to options and number of Item and the first Index.
 Collection<PublicationDetail> getUnavailablePublicationsByPublisherId(PublicationPK pubPK, String publisherId, String nodeId)
          return the publications : - which take place in the basket - which are out of the visibility period
 Collection<PublicationPK> getUpdatedPublicationPKsByStatus(String status, Date since, int maxSize, List<String> componentIds)
          Return the list of publications with a maxSize as specified, each publication has the specified status and has been updated since the specified date
 ValidationStep getValidationStepByUser(PublicationPK pubPK, String userId)
           
 List<ValidationStep> getValidationSteps(PublicationPK pubPK)
           
 void movePublication(PublicationPK pk, NodePK fatherPK, boolean indexIt)
           
 void processWysiwyg(PublicationPK pubPK)
          A wysiwyg's content has been added or modified to a publication.
 void removeAlias(PublicationPK pubPK, List<Alias> aliases)
           
 void removeAllFather(PublicationPK pubPK)
          remove all father from a publication ("pubPK") The publication won't be visible.
 void removeFather(NodePK fatherPK)
          remove a father (designed by "fatherPK") from a publication ("pubPK") The publication won't be visible from its old father node.
 void removeFather(PublicationPK pubPK, NodePK fatherPK)
          remove a father (designed by "fatherPK") from a publication ("pubPK") The publication won't be visible from its old father node.
 void removeFathers(PublicationPK pubPK, Collection<String> fatherIds)
          remove a father (designed by "fatherPK") from a publication ("pubPK") The publication won't be visible from its old father node.
 void removePublication(PublicationPK pk)
          remove the publication designed by pubPK parameter.
 void removeValidationSteps(PublicationPK pubPK)
           
 Collection<PublicationDetail> searchByKeywords(String query, PublicationPK pubPK)
          Method declaration
 List<Alias> setAlias(PublicationPK pubPK, List<Alias> alias)
           
 void setDetail(PublicationDetail detail)
          update the publication content.
 void setDetail(PublicationDetail detail, boolean forceUpdateDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicationBmEJB

public PublicationBmEJB()
Constructor declaration

See Also:
Method Detail

getDetail

public PublicationDetail getDetail(PublicationPK pubPK)
Description copied from interface: PublicationBm
get details on the publication specified by the primary key given in pubPK parameter

Specified by:
getDetail in interface PublicationBm

createPublication

public PublicationPK createPublication(PublicationDetail detail)
Description copied from interface: PublicationBm
Create a new publication A new line will be added in publication table. The "id" in "detail" is not used (a new one will be computed). The "ed" is used to know the table name.

Specified by:
createPublication in interface PublicationBm

movePublication

public void movePublication(PublicationPK pk,
                            NodePK fatherPK,
                            boolean indexIt)
Specified by:
movePublication in interface PublicationBm

changePublicationsOrder

public void changePublicationsOrder(List<String> ids,
                                    NodePK nodePK)
Specified by:
changePublicationsOrder in interface PublicationBm

changePublicationOrder

public void changePublicationOrder(PublicationPK pubPK,
                                   NodePK nodePK,
                                   int direction)
Description copied from interface: PublicationBm
Change order of the given publication identified by pubPK in the given nodePK. direction less than 0 means "up" else it means "down"

Specified by:
changePublicationOrder in interface PublicationBm
Parameters:
pubPK - the publication's id to move
nodePK - the publication's place
direction - must be different to 0

removePublication

public void removePublication(PublicationPK pk)
Description copied from interface: PublicationBm
remove the publication designed by pubPK parameter.

Specified by:
removePublication in interface PublicationBm

setDetail

public void setDetail(PublicationDetail detail)
Description copied from interface: PublicationBm
update the publication content.

Specified by:
setDetail in interface PublicationBm

setDetail

public void setDetail(PublicationDetail detail,
                      boolean forceUpdateDate)
Specified by:
setDetail in interface PublicationBm

getValidationSteps

public List<ValidationStep> getValidationSteps(PublicationPK pubPK)
Specified by:
getValidationSteps in interface PublicationBm

getValidationStepByUser

public ValidationStep getValidationStepByUser(PublicationPK pubPK,
                                              String userId)
Specified by:
getValidationStepByUser in interface PublicationBm

addValidationStep

public void addValidationStep(ValidationStep step)
Specified by:
addValidationStep in interface PublicationBm

removeValidationSteps

public void removeValidationSteps(PublicationPK pubPK)
Specified by:
removeValidationSteps in interface PublicationBm

addFather

public void addFather(PublicationPK pubPK,
                      NodePK fatherPK)
Description copied from interface: PublicationBm
add a new father (designed by "fatherPK") to a publication ("pubPK") The publication will be visible from its new father node.

Specified by:
addFather in interface PublicationBm

removeFather

public void removeFather(PublicationPK pubPK,
                         NodePK fatherPK)
Description copied from interface: PublicationBm
remove a father (designed by "fatherPK") from a publication ("pubPK") The publication won't be visible from its old father node.

Specified by:
removeFather in interface PublicationBm

removeFather

public void removeFather(NodePK fatherPK)
Description copied from interface: PublicationBm
remove a father (designed by "fatherPK") from a publication ("pubPK") The publication won't be visible from its old father node.

Specified by:
removeFather in interface PublicationBm

removeFathers

public void removeFathers(PublicationPK pubPK,
                          Collection<String> fatherIds)
Description copied from interface: PublicationBm
remove a father (designed by "fatherPK") from a publication ("pubPK") The publication won't be visible from its old father node.

Specified by:
removeFathers in interface PublicationBm

removeAllFather

public void removeAllFather(PublicationPK pubPK)
Description copied from interface: PublicationBm
remove all father from a publication ("pubPK") The publication won't be visible.

Specified by:
removeAllFather in interface PublicationBm

getOrphanPublications

public Collection<PublicationDetail> getOrphanPublications(PublicationPK pubPK)
Description copied from interface: PublicationBm
return the Detail of publication which are not linked to a father

Specified by:
getOrphanPublications in interface PublicationBm

getNotOrphanPublications

public Collection<PublicationDetail> getNotOrphanPublications(PublicationPK pubPK)
Description copied from interface: PublicationBm
return the Detail of publication which are linked to at least one father

Specified by:
getNotOrphanPublications in interface PublicationBm

deleteOrphanPublicationsByCreatorId

public void deleteOrphanPublicationsByCreatorId(PublicationPK pubPK,
                                                String creatorId)
Description copied from interface: PublicationBm
Method declaration

Specified by:
deleteOrphanPublicationsByCreatorId in interface PublicationBm
See Also:

getUnavailablePublicationsByPublisherId

public Collection<PublicationDetail> getUnavailablePublicationsByPublisherId(PublicationPK pubPK,
                                                                             String publisherId,
                                                                             String nodeId)
Description copied from interface: PublicationBm
return the publications : - which take place in the basket - which are out of the visibility period

Specified by:
getUnavailablePublicationsByPublisherId in interface PublicationBm

getAllFatherPK

public Collection<NodePK> getAllFatherPK(PublicationPK pubPK)
Description copied from interface: PublicationBm
return a collection, containing all node primary key from where the publication is visible

Specified by:
getAllFatherPK in interface PublicationBm

getAlias

public Collection<Alias> getAlias(PublicationPK pubPK)
Description copied from interface: PublicationBm
return the publication's collection of Alias

Specified by:
getAlias in interface PublicationBm

setAlias

public List<Alias> setAlias(PublicationPK pubPK,
                            List<Alias> alias)
Specified by:
setAlias in interface PublicationBm

addAlias

public void addAlias(PublicationPK pubPK,
                     List<Alias> aliases)
Specified by:
addAlias in interface PublicationBm

removeAlias

public void removeAlias(PublicationPK pubPK,
                        List<Alias> aliases)
Specified by:
removeAlias in interface PublicationBm

getDetailsByFatherPK

public Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK)
Description copied from interface: PublicationBm
return a PublicationDetail collection of all publication visible from the node identified by "fatherPK" parameter

Specified by:
getDetailsByFatherPK in interface PublicationBm

getDetailsByFatherPK

public Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK,
                                                          String sorting)
Specified by:
getDetailsByFatherPK in interface PublicationBm

getDetailsByFatherPK

public Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK,
                                                          String sorting,
                                                          boolean filterOnVisibilityPeriod)
Specified by:
getDetailsByFatherPK in interface PublicationBm

getDetailsByFatherPK

public Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK,
                                                          String sorting,
                                                          boolean filterOnVisibilityPeriod,
                                                          String userId)
Specified by:
getDetailsByFatherPK in interface PublicationBm

getDetailsNotInFatherPK

public Collection<PublicationDetail> getDetailsNotInFatherPK(NodePK fatherPK)
Description copied from interface: PublicationBm
return a PublicationDetail collection of all publications not in the node identified by "fatherPK" parameter

Specified by:
getDetailsNotInFatherPK in interface PublicationBm

getDetailsNotInFatherPK

public Collection<PublicationDetail> getDetailsNotInFatherPK(NodePK fatherPK,
                                                             String sorting)
Specified by:
getDetailsNotInFatherPK in interface PublicationBm

getDetailsByBeginDateDescAndStatus

public Collection<PublicationDetail> getDetailsByBeginDateDescAndStatus(PublicationPK pk,
                                                                        String status,
                                                                        int nbPubs)
Description copied from interface: PublicationBm
return a PublicationDetail collection of x last publications

Specified by:
getDetailsByBeginDateDescAndStatus in interface PublicationBm

getDetailsByBeginDateDescAndStatusAndNotLinkedToFatherId

public Collection<PublicationDetail> getDetailsByBeginDateDescAndStatusAndNotLinkedToFatherId(PublicationPK pk,
                                                                                              String status,
                                                                                              int nbPubs,
                                                                                              String fatherId)
Description copied from interface: PublicationBm
Method declaration

Specified by:
getDetailsByBeginDateDescAndStatusAndNotLinkedToFatherId in interface PublicationBm
Returns:
See Also:

getDetailsByBeginDateDesc

public Collection<PublicationDetail> getDetailsByBeginDateDesc(PublicationPK pk,
                                                               int nbPubs)
Description copied from interface: PublicationBm
return a PublicationDetail collection of x last publications

Specified by:
getDetailsByBeginDateDesc in interface PublicationBm

deleteInfoLinks

public void deleteInfoLinks(PublicationPK pubPK,
                            List<ForeignPK> links)
Removes links between publications and the specified publication

Specified by:
deleteInfoLinks in interface PublicationBm
Parameters:
pubPK -
links - list of links to remove

getCompletePublication

public CompletePublication getCompletePublication(PublicationPK pubPK)
Specified by:
getCompletePublication in interface PublicationBm
Returns:

searchByKeywords

public Collection<PublicationDetail> searchByKeywords(String query,
                                                      PublicationPK pubPK)
Description copied from interface: PublicationBm
Method declaration

Specified by:
searchByKeywords in interface PublicationBm
Returns:
See Also:

getPublications

public Collection<PublicationDetail> getPublications(Collection<PublicationPK> publicationPKs)
Specified by:
getPublications in interface PublicationBm
Returns:

getPublicationsByStatus

public Collection<PublicationDetail> getPublicationsByStatus(String status,
                                                             PublicationPK pubPK)
Description copied from interface: PublicationBm
Method declaration

Specified by:
getPublicationsByStatus in interface PublicationBm
Returns:
See Also:

getPublicationPKsByStatus

public Collection<PublicationPK> getPublicationPKsByStatus(String status,
                                                           List<String> componentIds)
Specified by:
getPublicationPKsByStatus in interface PublicationBm

getPublicationsByStatus

public Collection<PublicationDetail> getPublicationsByStatus(String status,
                                                             List<String> componentIds)
Specified by:
getPublicationsByStatus in interface PublicationBm

getNbPubInFatherPKs

public int getNbPubInFatherPKs(Collection<NodePK> fatherPKs)
Description copied from interface: PublicationBm
Method declaration

Specified by:
getNbPubInFatherPKs in interface PublicationBm
Returns:
See Also:

getDistributionTree

public Map<String,Integer> getDistributionTree(String instanceId,
                                               String statusSubQuery,
                                               boolean checkVisibility)
Description copied from interface: PublicationBm
* Return the tree of nodes with the number of publication per node.

Specified by:
getDistributionTree in interface PublicationBm
Returns:
the tree of nodes with the number of publication per node

getNbPubByFatherPath

public int getNbPubByFatherPath(NodePK fatherPK,
                                String fatherPath)
Description copied from interface: PublicationBm
Method declaration

Specified by:
getNbPubByFatherPath in interface PublicationBm
Returns:
See Also:

getDetailsByFatherIds

public Collection<PublicationDetail> getDetailsByFatherIds(List<String> fatherIds,
                                                           PublicationPK pubPK,
                                                           boolean filterOnVisibilityPeriod)
Specified by:
getDetailsByFatherIds in interface PublicationBm

getDetailsByFatherIds

public Collection<PublicationDetail> getDetailsByFatherIds(List<String> fatherIds,
                                                           PublicationPK pubPK)
Description copied from interface: PublicationBm
Method declaration

Specified by:
getDetailsByFatherIds in interface PublicationBm
Returns:
See Also:

getDetailsByFatherIds

public Collection<PublicationDetail> getDetailsByFatherIds(List<String> fatherIds,
                                                           PublicationPK pubPK,
                                                           String sorting)
Specified by:
getDetailsByFatherIds in interface PublicationBm

getDetailsByFatherIdsAndStatus

public Collection<PublicationDetail> getDetailsByFatherIdsAndStatus(List<String> fatherIds,
                                                                    PublicationPK pubPK,
                                                                    String sorting,
                                                                    String status)
Specified by:
getDetailsByFatherIdsAndStatus in interface PublicationBm

getDetailsByFatherIdsAndStatusList

public Collection<PublicationDetail> getDetailsByFatherIdsAndStatusList(List<String> fatherIds,
                                                                        PublicationPK pubPK,
                                                                        String sorting,
                                                                        List<String> status)
Specified by:
getDetailsByFatherIdsAndStatusList in interface PublicationBm

getDetailsByFatherIdsAndStatusList

public Collection<PublicationDetail> getDetailsByFatherIdsAndStatusList(List<String> fatherIds,
                                                                        PublicationPK pubPK,
                                                                        String sorting,
                                                                        List<String> status,
                                                                        boolean filterOnVisibilityPeriod)
Specified by:
getDetailsByFatherIdsAndStatusList in interface PublicationBm

getPubPKsInFatherPKs

public Collection<PublicationPK> getPubPKsInFatherPKs(Collection<WAPrimaryKey> fatherPKs)
Description copied from interface: PublicationBm
Method declaration

Specified by:
getPubPKsInFatherPKs in interface PublicationBm
Returns:
See Also:

getPubPKsInFatherPK

public Collection<PublicationPK> getPubPKsInFatherPK(NodePK fatherPK)
Description copied from interface: PublicationBm
Method declaration

Specified by:
getPubPKsInFatherPK in interface PublicationBm
Returns:
See Also:

processWysiwyg

public void processWysiwyg(PublicationPK pubPK)
Description copied from interface: PublicationBm
A wysiwyg's content has been added or modified to a publication. Its content must be added to the indexed content of the publication

Specified by:
processWysiwyg in interface PublicationBm
Parameters:
pubPK - the identifier of the publication associated to the wysiwyg

createIndex

public void createIndex(PublicationDetail pubDetail)
Specified by:
createIndex in interface PublicationBm

createIndex

public void createIndex(PublicationPK pubPK)
Description copied from interface: PublicationBm
Method declaration

Specified by:
createIndex in interface PublicationBm
See Also:

deleteIndex

public void deleteIndex(PublicationPK pubPK)
Called on : - deletePublication()

Specified by:
deleteIndex in interface PublicationBm
See Also:

getAllPublications

public Collection<PublicationDetail> getAllPublications(PublicationPK pubPK,
                                                        String sorting)
Method declaration

Specified by:
getAllPublications in interface PublicationBm
Parameters:
pubPK -
sorting -
Returns:
See Also:

getAllPublications

public Collection<PublicationDetail> getAllPublications(PublicationPK pubPK)
Description copied from interface: PublicationBm
Method declaration

Specified by:
getAllPublications in interface PublicationBm
Returns:
See Also:

getDetailByName

public PublicationDetail getDetailByName(PublicationPK pubPK,
                                         String pubName)
Description copied from interface: PublicationBm
Looking for, in the instance identified by pubPK, a publication named pubName.

Specified by:
getDetailByName in interface PublicationBm
Parameters:
pubPK - the identifier of the instance
pubName - the publication's name we are looking for
Returns:
the pubId if a publication already exists in this component's instance. null otherwise.

getDetailByNameAndNodeId

public PublicationDetail getDetailByNameAndNodeId(PublicationPK pubPK,
                                                  String pubName,
                                                  int nodeId)
Specified by:
getDetailByNameAndNodeId in interface PublicationBm

getDetailBetweenDate

public Collection<PublicationDetail> getDetailBetweenDate(String beginDate,
                                                          String endDate,
                                                          String instanceId)
Specified by:
getDetailBetweenDate in interface PublicationBm
Returns:
Collection of PublicationDetail.

getCoordinates

public Collection<Coordinate> getCoordinates(String pubId,
                                             String componentId)
Recupere les coordonnees de la publication (collection de nodePK)

Specified by:
getCoordinates in interface PublicationBm
Parameters:
pubId -
componentId -
Returns:

addLinks

public void addLinks(PublicationPK pubPK,
                     List<ForeignPK> links)
Updates the publication links

Specified by:
addLinks in interface PublicationBm
Parameters:
pubPK - publication identifier which you want to update links
links - list of publication to link with current.

getAllPublicationsWithStatusbyUserid

public List<SocialInformation> getAllPublicationsWithStatusbyUserid(String userId,
                                                                    Date begin,
                                                                    Date end)
get my list of SocialInformationPublication according to options and number of Item and the first Index

Specified by:
getAllPublicationsWithStatusbyUserid in interface PublicationBm
Parameters:
userId -
begin -
end -
Returns:
List

getSocialInformationsListOfMyContacts

public List<SocialInformationPublication> getSocialInformationsListOfMyContacts(List<String> myContactsIds,
                                                                                List<String> options,
                                                                                Date begin,
                                                                                Date end)
Get list of SocialInformationPublication of my contacts according to options and number of Item and the first Index.

Specified by:
getSocialInformationsListOfMyContacts in interface PublicationBm
Parameters:
myContactsIds -
options -
begin -
end -
Returns:

getPublicationsToDraftOut

public Collection<PublicationDetail> getPublicationsToDraftOut(boolean useClone)
Specified by:
getPublicationsToDraftOut in interface PublicationBm

getUpdatedPublicationPKsByStatus

public Collection<PublicationPK> getUpdatedPublicationPKsByStatus(String status,
                                                                  Date since,
                                                                  int maxSize,
                                                                  List<String> componentIds)
Description copied from interface: PublicationBm
Return the list of publications with a maxSize as specified, each publication has the specified status and has been updated since the specified date

Specified by:
getUpdatedPublicationPKsByStatus in interface PublicationBm
Parameters:
status - : the publications status.
since - : the last update of the publication
maxSize - : the maximum size of the list. If 0 is specified, the limit is not used.
Returns:
a list of publications with the specified maxSize or none if 0 or less is specified.

getDraftsByUser

public Collection<PublicationDetail> getDraftsByUser(String userId)
Description copied from interface: PublicationBm
get all publications of given user in state 'Draft'. It returns simple publications in state 'Draft' and cloned publications with a clone in state 'Draft'.

Specified by:
getDraftsByUser in interface PublicationBm
Returns:
all PublicationDetail in state 'Draft' according to given userId


Copyright © 2016 Silverpeas. All Rights Reserved.