public interface PackageShare
PackageShare...| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COOKIE_ID_NAME |
static java.lang.String |
PARAM_CLIENT_ID_NAME |
| Modifier and Type | Method and Description |
|---|---|
PackageShareSession |
getSession(HttpServletRequest req)
Returns the session with the id provided with the cookie in the given
request.
|
PackageShareSession |
getSession(HttpServletRequest req,
HttpServletResponse resp)
Returns the session with the id provided with the cookie in the given
request.
|
PackageShareSession |
getSession(java.lang.String id)
Returns the session of the given id.
|
PackageShareSession |
login(Session session,
HttpServletRequest req,
HttpServletResponse resp,
java.lang.String user,
java.lang.String pass)
Performs a login on the package share server.
|
static final java.lang.String COOKIE_ID_NAME
static final java.lang.String PARAM_CLIENT_ID_NAME
PackageShareSession getSession(java.lang.String id)
id - the idnullPackageShareSession getSession(HttpServletRequest req)
null if no such cookiereq - the requestPackageShareSession getSession(HttpServletRequest req, HttpServletResponse resp)
req - the requestresp - the responsePackageShareSession login(Session session, HttpServletRequest req, HttpServletResponse resp, java.lang.String user, java.lang.String pass) throws java.io.IOException
null
is returned. otherwise the session data will have:
{
server: {
host: "https://dev.day.com",
message: "Welcome. Server Ready..."
},
user: {
anonymous: false,
userId: "tripod",
name: "Toby",
company: "Day"
},
shares: {
day: {
title: "Day",
readOnly: false
},
...
}
session - jcr sessionreq - the requestresp - the responseuser - user namepass - pass wordnull if the login is invalidjava.io.IOException - if there was an error during I/O with the server."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"