Class TagCloudPublicationService
- java.lang.Object
-
- org.silverpeas.core.contribution.publication.service.DefaultPublicationService
-
- org.silverpeas.core.tagcloud.service.TagCloudPublicationService
-
- All Implemented Interfaces:
ComponentInstanceDeletion
,PublicationService
@Service @Singleton @Alternative @Priority(2010) public class TagCloudPublicationService extends DefaultPublicationService
This service extends the default implementation of the {@©ode org.silverpeas.core.contribution.publication.service.PublicationService} interface by adding tag cloud capabilities.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description TagCloudPublicationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicationPK
createPublication(PublicationDetail detail)
Creates in Silverpeas the specified publication.void
deleteIndex(PublicationPK pubPK)
Called on : - deletePublication()protected void
init()
void
setDetail(PublicationDetail detail)
Updates the specified publication.-
Methods inherited from class org.silverpeas.core.contribution.publication.service.DefaultPublicationService
addAliases, addFather, addLinks, addValidationStep, changePublicationOrder, changePublicationsOrder, createIndex, createIndex, delete, deleteLink, getAllAliases, getAllFatherPK, getAllFatherPKInSamePublicationComponentInstance, getAllLocations, getAllLocationsByPublicationIds, getAllPublications, getAllPublications, getAllPublicationsWithStatusbyUserid, getAuthorizedPublicationsForUserByCriteria, getByIds, getCompletePublication, getCoordinates, getDetail, getDetailBetweenDate, getDetailByName, getDetailByNameAndNodeId, getDetailsByFatherIds, getDetailsByFatherIdsAndStatus, getDetailsByFatherIdsAndStatusList, getDetailsByFatherIdsAndStatusList, getDetailsByFatherPK, getDetailsByFatherPK, getDetailsByFatherPK, getDetailsByFatherPK, getDetailsNotInFatherPK, getDetailsNotInFatherPK, getDistributionTree, getDraftsByUser, getLocationsInComponentInstance, getMainLocation, getMinimalDataByIds, getNbPubByFatherPath, getOrphanPublications, getPublications, getPublicationsByCriteria, getPubPKsInFatherPK, getSocialInformationsListOfMyContacts, getValidationStepByUser, getValidationSteps, movePublication, removeAliases, removeAllFathers, removeFather, removeFathers, removePublication, removeUserFromTargetValidators, removeValidationSteps, resetPublicationsOrder, setAliases, setDetail, setDetail
-
-
-
-
Method Detail
-
init
@PostConstruct protected void init()
- Overrides:
init
in classDefaultPublicationService
-
createPublication
public PublicationPK createPublication(PublicationDetail detail)
Description copied from interface:PublicationService
Creates in Silverpeas the specified publication. It persists it into the Silverpeas data source and a new identifier is set for this publication. AResourceEvent.Type.CREATION
event is sent once the publication is created.- Specified by:
createPublication
in interfacePublicationService
- Overrides:
createPublication
in classDefaultPublicationService
- Parameters:
detail
- the detail on the publication to persist.- Returns:
- the identifying key of the publication so that it can be retrieved later in the data source by this key.
-
setDetail
public void setDetail(PublicationDetail detail)
Description copied from interface:PublicationService
Updates the specified publication. The update date isn't updated in given the publication detail. TheResourceEvent.Type.UPDATE
event is sent once the publication is updated.- Specified by:
setDetail
in interfacePublicationService
- Overrides:
setDetail
in classDefaultPublicationService
- Parameters:
detail
- the detail of the publication from which it has to be updated.
-
deleteIndex
public void deleteIndex(PublicationPK pubPK)
Called on : - deletePublication()- Specified by:
deleteIndex
in interfacePublicationService
- Overrides:
deleteIndex
in classDefaultPublicationService
- Parameters:
pubPK
-
-
-