public interface ContentSyncManager
ContentSyncManager
listens for changes to content
sync configurations stored in the repository and updates
the zip content cache accordingly.Modifier and Type | Method and Description |
---|---|
void |
clearCache(Config config,
Session session)
Clears the cache for the given config and using
the session for personalized content.
|
java.util.Iterator<Config> |
getConfigs()
Deprecated.
|
java.util.Iterator<Config> |
getConfigs(ResourceResolver resolver)
Get the list of available configs.
|
java.lang.Long |
getLatestTimestamp(Config config,
Session session)
Returns the latest update timestamp for the given
config and user (for personalized configs).
|
java.lang.String |
getZip(Resource config,
java.util.Date ifModifiedSince,
Session session)
This method builds a zip file according to the given config,
last modified date and session and returns a URI for identification.
|
boolean |
hasUpdates(Resource resource,
java.util.Date ifModifiedSince)
Checks if there are any updates for the given config
by comparing to the last modified date.
|
void |
sendZip(HttpServletResponse response,
java.lang.String requestURI)
Deprecated.
|
void |
sendZip(Session session,
HttpServletResponse response,
java.lang.String requestURI)
Sets the correct content type and copies the zip file
to the response's output stream.
|
void |
sendZip(Session session,
java.io.OutputStream out,
java.lang.String requestURI)
Sets the correct content type and copies the zip file
to the response's output stream.
|
boolean |
updateCache(Config config,
Session session)
Update the cache for the given config and using
the session for personalized content.
|
void |
updateCache(Resource resource,
Session session)
Update the cache for the given config resource and using
the session for personalized content.
|
void updateCache(Resource resource, Session session)
resource
- The config resourcesession
- The sessionboolean updateCache(Config config, Session session)
config
- The configsession
- The sessionvoid clearCache(Config config, Session session)
config
- The configsession
- The sessionboolean hasUpdates(Resource resource, java.util.Date ifModifiedSince)
resource
- The config's resourceifModifiedSince
- The last modified datetrue
when updates available, false
otherwisejava.lang.Long getLatestTimestamp(Config config, Session session)
config
- The configurationsession
- The session0
if none existsjava.lang.String getZip(Resource config, java.util.Date ifModifiedSince, Session session) throws RepositoryException, java.io.IOException
sendZip(HttpServletResponse, java.lang.String)
for actual delivery of the file.config
- The config resourceifModifiedSince
- The last modified datesession
- The sessionjava.io.IOException
- if an I/O error occurrs.RepositoryException
- if an error accessing the repository occurrs.@Deprecated void sendZip(HttpServletResponse response, java.lang.String requestURI)
response
- The responserequestURI
- Request URI of the zip filevoid sendZip(Session session, java.io.OutputStream out, java.lang.String requestURI)
session
- The sessionout
- The output to copy torequestURI
- Request URI of the zip file.void sendZip(Session session, HttpServletResponse response, java.lang.String requestURI)
session
- The session for reading the zipresponse
- The responserequestURI
- Request URI of the zip file@Deprecated java.util.Iterator<Config> getConfigs()
java.util.Iterator<Config> getConfigs(ResourceResolver resolver)
resolver
- The resource resolver"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"