public class DefaultSystemMaintenanceService extends java.lang.Object implements SystemMaintenanceService
| Constructor and Description |
|---|
DefaultSystemMaintenanceService() |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePrivileges(Session session)
Adds app specific default privileges.
|
void |
destroy() |
void |
init() |
boolean |
prepareJcrTree(Session session)
Creates the base JCR tree structure expected for this app if necessary.
|
void |
setMaintenanceServices(java.util.List<AppMaintenanceService> maintenanceServices) |
void |
setRepository(Repository repository) |
void |
setWorkspaceName(java.lang.String workspaceName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultBasePathgetRequiredRolespublic void init()
public boolean prepareJcrTree(Session session)
AppMaintenanceServiceSession.hasPendingChanges() should return
false) and saves it once the changes have been done. Thus the session can be
rolled back if an exception occurs.prepareJcrTree in interface AppMaintenanceServicepublic void configurePrivileges(Session session)
AppMaintenanceServiceSession.hasPendingChanges() should return
false} and saves it once the changes have been done. Thus the session can be
rolled back if an exception occurs.
Warning: no check is done and corresponding privileges are always added, so
only call this when necessaryconfigurePrivileges in interface AppMaintenanceServicepublic void destroy()
public void setRepository(Repository repository)
public void setWorkspaceName(java.lang.String workspaceName)
public void setMaintenanceServices(java.util.List<AppMaintenanceService> maintenanceServices)
Copyright © 2007–2020. All rights reserved.