public class DynamicSystemMaintenanceService extends java.lang.Object implements SystemMaintenanceService
Constructor and Description |
---|
DynamicSystemMaintenanceService() |
Modifier and Type | Method and Description |
---|---|
void |
addAppService(AppMaintenanceService appService,
java.util.Map<java.lang.String,java.lang.Object> properties) |
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 |
removeAppService(AppMaintenanceService appService,
java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
setRepository(Repository repository) |
void |
setUserAdminService(UserAdminService userAdminService) |
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 setUserAdminService(UserAdminService userAdminService)
public void addAppService(AppMaintenanceService appService, java.util.Map<java.lang.String,java.lang.Object> properties)
public void removeAppService(AppMaintenanceService appService, java.util.Map<java.lang.String,java.lang.Object> properties)
Copyright © 2007–2020. All rights reserved.