public interface PackageShareSession
PackageShareSession
...Modifier and Type | Method and Description |
---|---|
Proxy |
createProxy(boolean suppressId)
Returns a proxy to the package share server
|
Set<PackageInfo> |
getAvailablePackages()
Returns the packages the user of this session can access.
|
long |
getCreationTime()
Returns the time in milliseconds when this session was aquired.
|
String |
getId()
Returns the id of this session
|
PackageShare |
getService()
Returns the package share service
|
JSONObject |
getSessionInfo()
Returns the JSON object of the session info provided by the server.
|
Set<String> |
getSharedGroups()
Returns a list of groups this use is allowed to write
|
String |
getUserId()
Returns the id of the user that own this session
|
String |
getUserName()
Returns the name of the user
|
boolean |
isAnonymous()
Checks if this session is the anonymous session.
|
boolean |
isNew()
Checks if the session is new and never connected to the packageshare.
|
void |
logout()
Logs this session out and discards it from the session pool
|
JSONResponse |
uploadPackage(File file,
String name,
ProxyTracker tracker,
String group)
Uploads a package to the package share
|
JSONResponse |
uploadPackage(Node file,
ProxyTracker tracker,
String group)
Uploads a package to the package share
|
boolean isAnonymous()
true
if this session is the anonymous sessionPackageShare getService()
String getId()
long getCreationTime()
boolean isNew()
true
if new.String getUserId()
String getUserName()
Set<String> getSharedGroups()
Set<PackageInfo> getAvailablePackages()
JSONObject getSessionInfo()
null
void logout()
Proxy createProxy(boolean suppressId)
suppressId
- true
to suppress automatic addition of the daypsidJSONResponse uploadPackage(Node file, ProxyTracker tracker, String group) throws IOException, RepositoryException
file
- the file nodetracker
- the trackergroup
- desired package groupIOException
- if an error occursRepositoryException
- if a repository error occursJSONResponse uploadPackage(File file, String name, ProxyTracker tracker, String group) throws IOException, RepositoryException
file
- the filename
- the nametracker
- the trackergroup
- desired package groupIOException
- if an error occursRepositoryException
- if a repository error occurs"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"