public class Distribution extends ModuleRoot
| Modifier and Type | Field and Description |
|---|---|
static String |
DIST_ID |
protected static org.apache.commons.logging.Log |
log |
httpHeaders, request, uriInfo| Constructor and Description |
|---|
Distribution() |
| Modifier and Type | Method and Description |
|---|---|
Object |
doGet() |
Object |
doSave() |
Object |
doSaveExtended() |
javax.ws.rs.core.Response |
downloadDistrib(String distribId) |
javax.ws.rs.core.Response |
downloadDoc() |
List<DistributionSnapshotDesc> |
getAvailableDistributions() |
DistributionSnapshot |
getCurrentDistribution() |
String |
getDocumentationInfo() |
protected File |
getExportTmpFile() |
Resource |
getLatest() |
String |
getNavigationPoint() |
Map<String,DistributionSnapshot> |
getPersistedDistributions() |
DistributionSnapshot |
getRuntimeDistribution() |
String |
getRuntimeDistributionName() |
protected SnapshotManager |
getSnapshotManager() |
Object |
handleError(javax.ws.rs.WebApplicationException e) |
boolean |
isEditor() |
boolean |
isEmbeddedMode() |
List<DistributionSnapshot> |
listPersistedDistributions() |
Object |
uploadDistrib() |
Object |
uploadDistribTmp() |
Object |
uploadDistribTmpValid() |
Object |
uploadDoc() |
Resource |
viewDistribution(String distributionId) |
getLink, getSkinResource, setHttpHeaders, setHttpRequest, setUriInfodisptachAdapter, isAdaptercheckGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRootgetAdapterpublic static final String DIST_ID
protected static final org.apache.commons.logging.Log log
public Distribution()
public Object handleError(javax.ws.rs.WebApplicationException e)
handleError in interface ModuleResourcehandleError in class ModuleRootprotected SnapshotManager getSnapshotManager()
public String getNavigationPoint()
public Resource viewDistribution(String distributionId)
public List<DistributionSnapshotDesc> getAvailableDistributions()
public String getRuntimeDistributionName()
public DistributionSnapshot getRuntimeDistribution()
public List<DistributionSnapshot> listPersistedDistributions()
public Map<String,DistributionSnapshot> getPersistedDistributions()
public DistributionSnapshot getCurrentDistribution()
public Object doSave() throws NamingException, NotSupportedException, SystemException, OperationException, RollbackException, HeuristicMixedException, HeuristicRollbackException
public Object doSaveExtended() throws NamingException, NotSupportedException, SystemException, OperationException, SecurityException, RollbackException, HeuristicMixedException, HeuristicRollbackException
public String getDocumentationInfo()
protected File getExportTmpFile()
public javax.ws.rs.core.Response downloadDoc() throws IOException
IOExceptionpublic javax.ws.rs.core.Response downloadDistrib(String distribId) throws IOException
IOExceptionpublic Object uploadDistrib() throws IOException
IOExceptionpublic Object uploadDistribTmp() throws IOException
IOExceptionpublic Object uploadDistribTmpValid()
public Object uploadDoc() throws IOException
IOExceptionpublic boolean isEmbeddedMode()
public boolean isEditor()
Copyright © 2015 Nuxeo SA. All rights reserved.