| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.pdc.service.DefaultPdcClassificationService
@Transactional @Named(value="pdcClassificationService") public class DefaultPdcClassificationService
The default implementation of the PdcClassificationService by using both the JPA-based repository and the older business services on the PdC to find, save, update or delete some classifications or some positions on the PdC.
| Constructor Summary | |
|---|---|
DefaultPdcClassificationService()
 | 
|
| Method Summary | |
|---|---|
 void | 
axisDeleted(String axisId)
An axis comes to be removed from the PdC.  | 
 void | 
axisValuesDeleted(List<PdcAxisValue> deletedValues)
Some values come to be removed from the PdC.  | 
 void | 
classifyContent(SilverpeasContent content,
                PdcClassification withClassification)
Classifies the specified content on the PdC with the specified classification.  | 
 void | 
classifyContent(SilverpeasContent content,
                PdcClassification withClassification,
                boolean alertSubscribers)
Classifies the specified content on the PdC with the specified classification.  | 
 void | 
deletePreDefinedClassification(String nodeId,
                               String instanceId)
Deletes the predefined classification set for the specified node in the specified component instance.  | 
 PdcClassification | 
findAPreDefinedClassification(String nodeId,
                              String instanceId)
Finds a predefined classification on the PdC that was set for any new contents in the specified node of the specified component instance.  | 
protected  NodeBm | 
getNodeBm()
 | 
 PdcClassification | 
getPreDefinedClassification(String instanceId)
Gets the predefined classification on the PdC that was set for any new contents managed in the specified component instance.  | 
 PdcClassification | 
getPreDefinedClassification(String nodeId,
                            String instanceId)
Gets the predefined classification on the PdC that was set for any new contents in the specified node of the specified component instance.  | 
 PdcClassification | 
savePreDefinedClassification(PdcClassification classification)
Saves the specified predefined classification on the PdC.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DefaultPdcClassificationService()
| Method Detail | 
|---|
public PdcClassification findAPreDefinedClassification(String nodeId,
                                                       String instanceId)
getPreDefinedClassification(java.lang.String, java.lang.String method.
findAPreDefinedClassification in interface PdcClassificationServicenodeId - the unique identifier of the node.instanceId - the unique identifier of the Silverpeas component instance.
public PdcClassification getPreDefinedClassification(String nodeId,
                                                     String instanceId)
getPreDefinedClassification in interface PdcClassificationServicenodeId - the unique node identifier.instanceId - the unique component instance identifier.
public PdcClassification getPreDefinedClassification(String instanceId)
getPreDefinedClassification in interface PdcClassificationServiceinstanceId - the unique identifier of the Silverpeas component instance.
public PdcClassification savePreDefinedClassification(PdcClassification classification)
savePreDefinedClassification in interface PdcClassificationServiceclassification - either the saved predefined classification or NONE_CLASSIFICATION.
public void deletePreDefinedClassification(String nodeId,
                                           String instanceId)
deletePreDefinedClassification in interface PdcClassificationServicenodeId - the unique identifier of the node for which the predefined classification has to
 be deleted.instanceId - the unique identifier of the component instance to which the node belongs.
public void classifyContent(SilverpeasContent content,
                            PdcClassification withClassification)
                     throws PdcRuntimeException
classifyContent in interface PdcClassificationServicecontent - the Silverpeas content to classify.withClassification - the classification with which the content is positioned on the PdC.
PdcRuntimeException
public void classifyContent(SilverpeasContent content,
                            PdcClassification withClassification,
                            boolean alertSubscribers)
                     throws PdcRuntimeException
classifyContent in interface PdcClassificationServicecontent - the Silverpeas content to classify.withClassification - the classification with which the content is positioned on the PdC.alertSubscribers - indicates if subscribers must be notified or not
PdcRuntimeExceptionpublic void axisValuesDeleted(List<PdcAxisValue> deletedValues)
axisValuesDeleted in interface PdcClassificationServicedeletedValues - the values that are removed from a PdC's axis.public void axisDeleted(String axisId)
axisDeleted in interface PdcClassificationServiceaxisId - the unique identifier of the axis.protected NodeBm getNodeBm()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||