@Name(value="appsViews") @Scope(value=CONVERSATION) public class AppCenterViewsManager extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
AppCenterViewsManager.SnapshotStatus
FIXME JC: should follow or simply reuse
PackageState |
protected class |
AppCenterViewsManager.StudioAutoInstaller |
Modifier and Type | Field and Description |
---|---|
protected String |
currentAdminSubViewId |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected boolean |
isStudioSnapshopUpdateInProgress |
protected static org.apache.commons.logging.Log |
log |
protected Map<String,String> |
messages |
protected NuxeoSeamHotReloadContextKeeper |
seamReloadContext |
protected String |
searchString |
protected SetupWizardActionBean |
setupWizardAction |
protected int |
studioSnapshotDownloadProgress |
protected org.nuxeo.connect.data.DownloadablePackage |
studioSnapshotPackage |
protected Boolean |
studioSnapshotPackageCached
Using a dedicated property because studioSnapshotPackage might be null.
|
protected AppCenterViewsManager.SnapshotStatus |
studioSnapshotStatus |
protected String |
studioSnapshotUpdateError |
protected org.nuxeo.connect.update.ValidationStatus |
studioSnapshotValidationStatus
Last validation status of the Studio snapshot package
|
protected Boolean |
validateStudioSnapshot
Boolean indicating is Studio snapshot package validation should be done.
|
protected static Map<String,String> |
view2PackageListName |
Constructor and Description |
---|
AppCenterViewsManager() |
Modifier and Type | Method and Description |
---|---|
void |
flushCache() |
protected FileTime |
getLastUpdateDate() |
protected String |
getListName() |
boolean |
getOnlyRemote() |
String |
getPackageTypeFilter() |
List<javax.faces.model.SelectItem> |
getPackageTypes() |
boolean |
getPlatformFilter() |
String |
getSearchString() |
String |
getSnapshotStudioProjectName() |
String |
getStudioInstallationStatus() |
org.nuxeo.connect.data.DownloadablePackage |
getStudioProjectSnapshot() |
org.nuxeo.connect.update.ValidationStatus |
getStudioSnapshotValidationStatus() |
String |
getStudioUrl() |
Boolean |
getValidateStudioSnapshot()
Returns true if validation should be performed
|
void |
installStudioSnapshot() |
String |
installStudioSnapshotAndRedirect()
Method binding for the update button: needs to perform a real redirection (as ajax context is broken after hot
reload) and to provide an outcome so that redirection through the URL service goes ok (even if it just reset its
navigation handler cache).
|
boolean |
isStudioSnapshopUpdateInProgress() |
void |
resetStudioSnapshotValidationStatus() |
void |
setDevMode(boolean value) |
void |
setOnlyRemote(boolean onlyRemote) |
void |
setPackageTypeFilter(String filter) |
void |
setPlatformFilter(boolean doFilter) |
void |
setSearchString(String searchString) |
protected void |
setStatus(AppCenterViewsManager.SnapshotStatus status,
String errorMessage) |
protected void |
setStatus(AppCenterViewsManager.SnapshotStatus status,
String errorMessage,
org.nuxeo.connect.update.ValidationStatus validationStatus) |
void |
setStudioSnapshotValidationStatus(org.nuxeo.connect.update.ValidationStatus status) |
void |
setValidateStudioSnapshot(Boolean validateStudioSnapshot) |
protected boolean |
shouldValidateStudioSnapshot()
Returns true if Studio snapshot module should be validated.
|
protected static String |
translate(String label,
Object... params) |
protected static final org.apache.commons.logging.Log log
protected static final Map<String,String> view2PackageListName
@In(create=true) protected String currentAdminSubViewId
@In(create=true) protected NuxeoSeamHotReloadContextKeeper seamReloadContext
@In(create=true) protected SetupWizardActionBean setupWizardAction
@In(create=true, required=false) protected org.jboss.seam.faces.FacesMessages facesMessages
protected String searchString
protected AppCenterViewsManager.SnapshotStatus studioSnapshotStatus
protected int studioSnapshotDownloadProgress
protected boolean isStudioSnapshopUpdateInProgress
protected String studioSnapshotUpdateError
protected Boolean validateStudioSnapshot
protected org.nuxeo.connect.update.ValidationStatus studioSnapshotValidationStatus
protected org.nuxeo.connect.data.DownloadablePackage studioSnapshotPackage
protected Boolean studioSnapshotPackageCached
public AppCenterViewsManager()
public String getSearchString()
public void setSearchString(String searchString)
public boolean getOnlyRemote()
public void setOnlyRemote(boolean onlyRemote)
protected String getListName()
public void setPlatformFilter(boolean doFilter)
public boolean getPlatformFilter()
public String getPackageTypeFilter()
public void setPackageTypeFilter(String filter)
public List<javax.faces.model.SelectItem> getPackageTypes()
public void flushCache()
public String installStudioSnapshotAndRedirect()
public void installStudioSnapshot()
public boolean isStudioSnapshopUpdateInProgress()
public Boolean getValidateStudioSnapshot()
public void setValidateStudioSnapshot(Boolean validateStudioSnapshot)
protected boolean shouldValidateStudioSnapshot()
Validation can be skipped by user, or can be globally disabled by setting framework property "studio.snapshot.disablePkgValidation" to true.
protected FileTime getLastUpdateDate()
public String getStudioUrl()
public org.nuxeo.connect.data.DownloadablePackage getStudioProjectSnapshot()
public String getSnapshotStudioProjectName()
public String getStudioInstallationStatus()
protected void setStatus(AppCenterViewsManager.SnapshotStatus status, String errorMessage)
protected void setStatus(AppCenterViewsManager.SnapshotStatus status, String errorMessage, org.nuxeo.connect.update.ValidationStatus validationStatus)
public org.nuxeo.connect.update.ValidationStatus getStudioSnapshotValidationStatus()
public void setStudioSnapshotValidationStatus(org.nuxeo.connect.update.ValidationStatus status)
public void resetStudioSnapshotValidationStatus()
public void setDevMode(boolean value)
Copyright © 2018 Nuxeo. All rights reserved.