public interface PackageShareSession
PackageShareSession...| Modifier and Type | Method and Description |
|---|---|
Proxy |
createProxy(boolean suppressId)
Returns a proxy to the package share server
|
java.util.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.
|
java.lang.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.
|
java.util.Set<java.lang.String> |
getSharedGroups()
Returns a list of groups this use is allowed to write
|
java.lang.String |
getUserId()
Returns the id of the user that own this session
|
java.lang.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(java.io.File file,
java.lang.String name,
ProxyTracker tracker,
java.lang.String group)
Uploads a package to the package share
|
JSONResponse |
uploadPackage(Node file,
ProxyTracker tracker,
java.lang.String group)
Uploads a package to the package share
|
boolean isAnonymous()
true if this session is the anonymous sessionPackageShare getService()
java.lang.String getId()
long getCreationTime()
boolean isNew()
true if new.java.lang.String getUserId()
java.lang.String getUserName()
java.util.Set<java.lang.String> getSharedGroups()
java.util.Set<PackageInfo> getAvailablePackages()
JSONObject getSessionInfo()
nullvoid logout()
Proxy createProxy(boolean suppressId)
suppressId - true to suppress automatic addition of the daypsidJSONResponse uploadPackage(Node file, ProxyTracker tracker, java.lang.String group) throws java.io.IOException, RepositoryException
file - the file nodetracker - the trackergroup - desired package groupjava.io.IOException - if an error occursRepositoryException - if a repository error occursJSONResponse uploadPackage(java.io.File file, java.lang.String name, ProxyTracker tracker, java.lang.String group) throws java.io.IOException, RepositoryException
file - the filename - the nametracker - the trackergroup - desired package groupjava.io.IOException - if an error occursRepositoryException - if a repository error occurs"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"