|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.contentManager.ContentManager
@Named(value="contentManager") public class ContentManager
This class represents the ContentManager API It is the gateway to all the silverpeas contents (documentation, ....)
Constructor Summary | |
---|---|
ContentManager()
|
Method Summary | |
---|---|
int |
addSilverContent(Connection connection,
String sInternalContentId,
String sComponentId,
String sAuthorId)
Add a silver content Called when a content add a document and register it to get its SilverContentId in return |
int |
addSilverContent(Connection connection,
String sInternalContentId,
String sComponentId,
String sAuthorId,
SilverContentVisibility scv)
Add a silver content Called when a content add a document and register it to get its SilverContentId in return |
int |
getContentInstanceId(String sComponentId)
Return the content instance Id corresponding to the componentId |
ContentPeas |
getContentPeas(String sComponentId)
Return the ContentPeas corresponding to the given componentId |
List<URLIcone> |
getContentURLIcones(String sContentType,
List<String> asUserContentRoles)
Return a list of URLIcones corresponding to the rights of the given roles It is the gateway to all the silverpeas contents (documentation, ....) |
List<String> |
getInstanceId(List<Integer> alSilverContentId)
retourne une liste d'instanceID a partir d'une Liste de silvercontentId |
String |
getInternalContentId(int nSilverContentId)
Return the InternalContentId corresponding to the given SilverContentId Called when a content remove a document |
JoinStatement |
getPositionsByGenericSearch(String authorId,
String afterDate,
String beforeDate)
|
List<SilverContent> |
getSilverContentBySilverContentIds(List<Integer> alSilverContentIds)
|
SortedSet<Integer> |
getSilverContentId(List<String> documentFeature)
Return the sorted list containing SilverContentIds corresponding to the list containing id et instanceId The list is not null and not empty !! |
int |
getSilverContentId(String sInternalContentId,
String sComponentId)
Return the SilverContentId corresponding to the given internalContentId Called when a content remove a document |
List<Integer> |
getSilverContentIdByInstanceId(String instanceId)
Cette méthode retourne une liste de SilverContentId qui se trouve sous une instance de jobPeas. |
SilverContentVisibility |
getSilverContentVisibility(int silverObjectId)
|
int |
registerNewContentInstance(Connection connection,
String sComponentId,
String sContainerType,
String sContentType)
When a generic component is instanciate, this function is called to register the association between container and content |
void |
removeSilverContent(Connection connection,
int nSilverContentId,
String sComponentId)
Remove a silver content Called when a content remove a document |
void |
unregisterNewContentInstance(Connection connection,
String sComponentId,
String sContainerType,
String sContentType)
When a generic component is uninstanciate, this function is called to unregister the association between container and content |
void |
updateSilverContentVisibilityAttributes(SilverContentVisibility scv,
String instanceId,
int silverObjectId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentManager() throws ContentManagerException
ContentManagerException
Method Detail |
---|
public int registerNewContentInstance(Connection connection, String sComponentId, String sContainerType, String sContentType) throws ContentManagerException
connection
- sComponentId
- sContainerType
- sContentType
-
ContentManagerException
public void unregisterNewContentInstance(Connection connection, String sComponentId, String sContainerType, String sContentType) throws ContentManagerException
connection
- sComponentId
- sContainerType
- sContentType
-
ContentManagerException
public ContentPeas getContentPeas(String sComponentId) throws ContentManagerException
sComponentId
-
ContentManagerException
public List<URLIcone> getContentURLIcones(String sContentType, List<String> asUserContentRoles)
sContentType
- asUserContentRoles
-
public int addSilverContent(Connection connection, String sInternalContentId, String sComponentId, String sAuthorId) throws ContentManagerException
ContentManagerException
public int addSilverContent(Connection connection, String sInternalContentId, String sComponentId, String sAuthorId, SilverContentVisibility scv) throws ContentManagerException
ContentManagerException
public void removeSilverContent(Connection connection, int nSilverContentId, String sComponentId) throws ContentManagerException
ContentManagerException
public int getSilverContentId(String sInternalContentId, String sComponentId) throws ContentManagerException
ContentManagerException
public SortedSet<Integer> getSilverContentId(List<String> documentFeature) throws ContentManagerException
ContentManagerException
public String getInternalContentId(int nSilverContentId) throws ContentManagerException
ContentManagerException
public int getContentInstanceId(String sComponentId) throws ContentManagerException
ContentManagerException
public JoinStatement getPositionsByGenericSearch(String authorId, String afterDate, String beforeDate) throws ContentManagerException
ContentManagerException
public List<String> getInstanceId(List<Integer> alSilverContentId) throws ContentManagerException
alSilverContentId
- - la liste de silvercontentId silvercontentId
ContentManagerException
public List<Integer> getSilverContentIdByInstanceId(String instanceId) throws ContentManagerException
instanceId
- - l'id de l'instance (trucsAstuces978)
ContentManagerException
public List<SilverContent> getSilverContentBySilverContentIds(List<Integer> alSilverContentIds) throws ContentManagerException
ContentManagerException
public void updateSilverContentVisibilityAttributes(SilverContentVisibility scv, String instanceId, int silverObjectId) throws ContentManagerException
ContentManagerException
public SilverContentVisibility getSilverContentVisibility(int silverObjectId) throws ContentManagerException
ContentManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |