it.eng.spagobi.services.content.service
Class ContentServiceImpl

java.lang.Object
  extended by it.eng.spagobi.services.common.AbstractServiceImpl
      extended by it.eng.spagobi.services.content.service.ContentServiceImpl

public class ContentServiceImpl
extends AbstractServiceImpl


Constructor Summary
ContentServiceImpl()
          Instantiates a new content service impl.
 
Method Summary
 it.eng.spagobi.services.content.bo.Content downloadAll(java.lang.String token, java.lang.String user, java.lang.String biobjectId, java.lang.String fileName)
          Download all.
 it.eng.spagobi.services.content.bo.Content readSubObjectContent(java.lang.String token, java.lang.String user, java.lang.String subObjectId)
          Read sub object content.
 it.eng.spagobi.services.content.bo.Content readSubObjectContent(java.lang.String token, java.lang.String user, java.lang.String subObjectName, java.lang.Integer objId)
          Read sub object content.
 it.eng.spagobi.services.content.bo.Content readTemplate(java.lang.String token, java.lang.String user, java.lang.String document, java.util.HashMap attributes)
          Read template.
 it.eng.spagobi.services.content.bo.Content readTemplateByLabel(java.lang.String token, java.lang.String user, java.lang.String label, java.util.HashMap attributes)
          Read template by label.
 java.lang.String saveObjectTemplate(java.lang.String token, java.lang.String user, java.lang.String documentiId, java.lang.String templateName, java.lang.String content)
          Save object template.
 java.lang.String saveSubObject(java.lang.String token, java.lang.String user, java.lang.String documentiId, java.lang.String analysisName, java.lang.String analysisDescription, java.lang.String visibilityBoolean, java.lang.String content)
          Save sub object.
 
Methods inherited from class it.eng.spagobi.services.common.AbstractServiceImpl
setTenantByUserId, setTenantByUserProfile, unsetTenant, validateTicket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentServiceImpl

public ContentServiceImpl()
Instantiates a new content service impl.

Method Detail

readTemplate

public it.eng.spagobi.services.content.bo.Content readTemplate(java.lang.String token,
                                                               java.lang.String user,
                                                               java.lang.String document,
                                                               java.util.HashMap attributes)
Read template.

Parameters:
token - the token
user - the user
document - the document
Returns:
the content

readTemplateByLabel

public it.eng.spagobi.services.content.bo.Content readTemplateByLabel(java.lang.String token,
                                                                      java.lang.String user,
                                                                      java.lang.String label,
                                                                      java.util.HashMap attributes)
Read template by label.

Parameters:
token - the token
user - the user
document - the document
Returns:
the content

readSubObjectContent

public it.eng.spagobi.services.content.bo.Content readSubObjectContent(java.lang.String token,
                                                                       java.lang.String user,
                                                                       java.lang.String subObjectId)
Read sub object content.

Parameters:
token - the token
user - the user
subObjectId - the sub object id
Returns:
the content

readSubObjectContent

public it.eng.spagobi.services.content.bo.Content readSubObjectContent(java.lang.String token,
                                                                       java.lang.String user,
                                                                       java.lang.String subObjectName,
                                                                       java.lang.Integer objId)
Read sub object content.

Parameters:
token - the token
user - the user
subObjectName - the sub object name
objId - the object id
Returns:
the content

saveSubObject

public java.lang.String saveSubObject(java.lang.String token,
                                      java.lang.String user,
                                      java.lang.String documentiId,
                                      java.lang.String analysisName,
                                      java.lang.String analysisDescription,
                                      java.lang.String visibilityBoolean,
                                      java.lang.String content)
Save sub object.

Parameters:
token - the token
user - the user
documentiId - the documenti id
analysisName - the analysis name
analysisDescription - the analysis description
visibilityBoolean - the visibility boolean
content - the content
Returns:
the string

saveObjectTemplate

public java.lang.String saveObjectTemplate(java.lang.String token,
                                           java.lang.String user,
                                           java.lang.String documentiId,
                                           java.lang.String templateName,
                                           java.lang.String content)
Save object template.

Parameters:
token - the token
user - the user
documentiId - the documenti id
templateName - the template name
content - the content
Returns:
the string

downloadAll

public it.eng.spagobi.services.content.bo.Content downloadAll(java.lang.String token,
                                                              java.lang.String user,
                                                              java.lang.String biobjectId,
                                                              java.lang.String fileName)
Download all.

Parameters:
token - the token
user - the user
biobjectId - the biobject id
fileName - the file name
Returns:
the content