|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.util.publication.control.PublicationBmEJB
public class PublicationBmEJB
Class declaration
| 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 |
|---|
public PublicationBmEJB()
| Method Detail |
|---|
public PublicationDetail getDetail(PublicationPK pubPK)
PublicationBm
getDetail in interface PublicationBmpublic PublicationPK createPublication(PublicationDetail detail)
PublicationBm
createPublication in interface PublicationBm
public void movePublication(PublicationPK pk,
NodePK fatherPK,
boolean indexIt)
movePublication in interface PublicationBm
public void changePublicationsOrder(List<String> ids,
NodePK nodePK)
changePublicationsOrder in interface PublicationBm
public void changePublicationOrder(PublicationPK pubPK,
NodePK nodePK,
int direction)
PublicationBm
changePublicationOrder in interface PublicationBmpubPK - the publication's id to movenodePK - the publication's placedirection - must be different to 0public void removePublication(PublicationPK pk)
PublicationBm
removePublication in interface PublicationBmpublic void setDetail(PublicationDetail detail)
PublicationBm
setDetail in interface PublicationBm
public void setDetail(PublicationDetail detail,
boolean forceUpdateDate)
setDetail in interface PublicationBmpublic List<ValidationStep> getValidationSteps(PublicationPK pubPK)
getValidationSteps in interface PublicationBm
public ValidationStep getValidationStepByUser(PublicationPK pubPK,
String userId)
getValidationStepByUser in interface PublicationBmpublic void addValidationStep(ValidationStep step)
addValidationStep in interface PublicationBmpublic void removeValidationSteps(PublicationPK pubPK)
removeValidationSteps in interface PublicationBm
public void addFather(PublicationPK pubPK,
NodePK fatherPK)
PublicationBm
addFather in interface PublicationBm
public void removeFather(PublicationPK pubPK,
NodePK fatherPK)
PublicationBm
removeFather in interface PublicationBmpublic void removeFather(NodePK fatherPK)
PublicationBm
removeFather in interface PublicationBm
public void removeFathers(PublicationPK pubPK,
Collection<String> fatherIds)
PublicationBm
removeFathers in interface PublicationBmpublic void removeAllFather(PublicationPK pubPK)
PublicationBm
removeAllFather in interface PublicationBmpublic Collection<PublicationDetail> getOrphanPublications(PublicationPK pubPK)
PublicationBm
getOrphanPublications in interface PublicationBmpublic Collection<PublicationDetail> getNotOrphanPublications(PublicationPK pubPK)
PublicationBm
getNotOrphanPublications in interface PublicationBm
public void deleteOrphanPublicationsByCreatorId(PublicationPK pubPK,
String creatorId)
PublicationBm
deleteOrphanPublicationsByCreatorId in interface PublicationBm
public Collection<PublicationDetail> getUnavailablePublicationsByPublisherId(PublicationPK pubPK,
String publisherId,
String nodeId)
PublicationBm
getUnavailablePublicationsByPublisherId in interface PublicationBmpublic Collection<NodePK> getAllFatherPK(PublicationPK pubPK)
PublicationBm
getAllFatherPK in interface PublicationBmpublic Collection<Alias> getAlias(PublicationPK pubPK)
PublicationBm
getAlias in interface PublicationBm
public List<Alias> setAlias(PublicationPK pubPK,
List<Alias> alias)
setAlias in interface PublicationBm
public void addAlias(PublicationPK pubPK,
List<Alias> aliases)
addAlias in interface PublicationBm
public void removeAlias(PublicationPK pubPK,
List<Alias> aliases)
removeAlias in interface PublicationBmpublic Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK)
PublicationBm
getDetailsByFatherPK in interface PublicationBm
public Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK,
String sorting)
getDetailsByFatherPK in interface PublicationBm
public Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK,
String sorting,
boolean filterOnVisibilityPeriod)
getDetailsByFatherPK in interface PublicationBm
public Collection<PublicationDetail> getDetailsByFatherPK(NodePK fatherPK,
String sorting,
boolean filterOnVisibilityPeriod,
String userId)
getDetailsByFatherPK in interface PublicationBmpublic Collection<PublicationDetail> getDetailsNotInFatherPK(NodePK fatherPK)
PublicationBm
getDetailsNotInFatherPK in interface PublicationBm
public Collection<PublicationDetail> getDetailsNotInFatherPK(NodePK fatherPK,
String sorting)
getDetailsNotInFatherPK in interface PublicationBm
public Collection<PublicationDetail> getDetailsByBeginDateDescAndStatus(PublicationPK pk,
String status,
int nbPubs)
PublicationBm
getDetailsByBeginDateDescAndStatus in interface PublicationBm
public Collection<PublicationDetail> getDetailsByBeginDateDescAndStatusAndNotLinkedToFatherId(PublicationPK pk,
String status,
int nbPubs,
String fatherId)
PublicationBm
getDetailsByBeginDateDescAndStatusAndNotLinkedToFatherId in interface PublicationBm
public Collection<PublicationDetail> getDetailsByBeginDateDesc(PublicationPK pk,
int nbPubs)
PublicationBm
getDetailsByBeginDateDesc in interface PublicationBm
public void deleteInfoLinks(PublicationPK pubPK,
List<ForeignPK> links)
deleteInfoLinks in interface PublicationBmpubPK - links - list of links to removepublic CompletePublication getCompletePublication(PublicationPK pubPK)
getCompletePublication in interface PublicationBm
public Collection<PublicationDetail> searchByKeywords(String query,
PublicationPK pubPK)
PublicationBm
searchByKeywords in interface PublicationBmpublic Collection<PublicationDetail> getPublications(Collection<PublicationPK> publicationPKs)
getPublications in interface PublicationBm
public Collection<PublicationDetail> getPublicationsByStatus(String status,
PublicationPK pubPK)
PublicationBm
getPublicationsByStatus in interface PublicationBm
public Collection<PublicationPK> getPublicationPKsByStatus(String status,
List<String> componentIds)
getPublicationPKsByStatus in interface PublicationBm
public Collection<PublicationDetail> getPublicationsByStatus(String status,
List<String> componentIds)
getPublicationsByStatus in interface PublicationBmpublic int getNbPubInFatherPKs(Collection<NodePK> fatherPKs)
PublicationBm
getNbPubInFatherPKs in interface PublicationBm
public Map<String,Integer> getDistributionTree(String instanceId,
String statusSubQuery,
boolean checkVisibility)
PublicationBm
getDistributionTree in interface PublicationBm
public int getNbPubByFatherPath(NodePK fatherPK,
String fatherPath)
PublicationBm
getNbPubByFatherPath in interface PublicationBm
public Collection<PublicationDetail> getDetailsByFatherIds(List<String> fatherIds,
PublicationPK pubPK,
boolean filterOnVisibilityPeriod)
getDetailsByFatherIds in interface PublicationBm
public Collection<PublicationDetail> getDetailsByFatherIds(List<String> fatherIds,
PublicationPK pubPK)
PublicationBm
getDetailsByFatherIds in interface PublicationBm
public Collection<PublicationDetail> getDetailsByFatherIds(List<String> fatherIds,
PublicationPK pubPK,
String sorting)
getDetailsByFatherIds in interface PublicationBm
public Collection<PublicationDetail> getDetailsByFatherIdsAndStatus(List<String> fatherIds,
PublicationPK pubPK,
String sorting,
String status)
getDetailsByFatherIdsAndStatus in interface PublicationBm
public Collection<PublicationDetail> getDetailsByFatherIdsAndStatusList(List<String> fatherIds,
PublicationPK pubPK,
String sorting,
List<String> status)
getDetailsByFatherIdsAndStatusList in interface PublicationBm
public Collection<PublicationDetail> getDetailsByFatherIdsAndStatusList(List<String> fatherIds,
PublicationPK pubPK,
String sorting,
List<String> status,
boolean filterOnVisibilityPeriod)
getDetailsByFatherIdsAndStatusList in interface PublicationBmpublic Collection<PublicationPK> getPubPKsInFatherPKs(Collection<WAPrimaryKey> fatherPKs)
PublicationBm
getPubPKsInFatherPKs in interface PublicationBmpublic Collection<PublicationPK> getPubPKsInFatherPK(NodePK fatherPK)
PublicationBm
getPubPKsInFatherPK in interface PublicationBmpublic void processWysiwyg(PublicationPK pubPK)
PublicationBm
processWysiwyg in interface PublicationBmpubPK - the identifier of the publication associated to the wysiwygpublic void createIndex(PublicationDetail pubDetail)
createIndex in interface PublicationBmpublic void createIndex(PublicationPK pubPK)
PublicationBm
createIndex in interface PublicationBmpublic void deleteIndex(PublicationPK pubPK)
deleteIndex in interface PublicationBm
public Collection<PublicationDetail> getAllPublications(PublicationPK pubPK,
String sorting)
getAllPublications in interface PublicationBmpubPK - sorting -
public Collection<PublicationDetail> getAllPublications(PublicationPK pubPK)
PublicationBm
getAllPublications in interface PublicationBm
public PublicationDetail getDetailByName(PublicationPK pubPK,
String pubName)
PublicationBm
getDetailByName in interface PublicationBmpubPK - the identifier of the instancepubName - the publication's name we are looking for
public PublicationDetail getDetailByNameAndNodeId(PublicationPK pubPK,
String pubName,
int nodeId)
getDetailByNameAndNodeId in interface PublicationBm
public Collection<PublicationDetail> getDetailBetweenDate(String beginDate,
String endDate,
String instanceId)
getDetailBetweenDate in interface PublicationBm
public Collection<Coordinate> getCoordinates(String pubId,
String componentId)
getCoordinates in interface PublicationBmpubId - componentId -
public void addLinks(PublicationPK pubPK,
List<ForeignPK> links)
addLinks in interface PublicationBmpubPK - publication identifier which you want to update linkslinks - list of publication to link with current.
public List<SocialInformation> getAllPublicationsWithStatusbyUserid(String userId,
Date begin,
Date end)
getAllPublicationsWithStatusbyUserid in interface PublicationBmuserId - begin - end -
public List<SocialInformationPublication> getSocialInformationsListOfMyContacts(List<String> myContactsIds,
List<String> options,
Date begin,
Date end)
getSocialInformationsListOfMyContacts in interface PublicationBmmyContactsIds - options - begin - end -
public Collection<PublicationDetail> getPublicationsToDraftOut(boolean useClone)
getPublicationsToDraftOut in interface PublicationBm
public Collection<PublicationPK> getUpdatedPublicationPKsByStatus(String status,
Date since,
int maxSize,
List<String> componentIds)
PublicationBm
getUpdatedPublicationPKsByStatus in interface PublicationBmstatus - : the publications status.since - : the last update of the publicationmaxSize - : the maximum size of the list. If 0 is specified, the limit is not used.
public Collection<PublicationDetail> getDraftsByUser(String userId)
PublicationBm
getDraftsByUser in interface PublicationBm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||