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, wait
getDefaultBasePath
getRequiredRoles
public void init()
public boolean prepareJcrTree(Session session)
AppMaintenanceService
Session.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 AppMaintenanceService
public void configurePrivileges(Session session)
AppMaintenanceService
Session.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 AppMaintenanceService
public 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.