public abstract class StartupDataGenerator extends ChannelListener
| Modifier and Type | Field and Description |
|---|---|
protected Channel |
channel |
protected static org.apache.log4j.Logger |
logger |
protected static java.lang.String |
NAME_SUFFIX |
protected JProperties |
propToSave |
order, REVISION| Constructor and Description |
|---|
StartupDataGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected AccessControlList |
buildAcl(java.lang.String vid,
java.lang.String resource) |
protected Category |
buildCategory(java.lang.String vid,
Category parent) |
protected Group |
buildGroup(java.lang.String vid,
java.util.HashMap<java.lang.String,DataRight> rightFromClassMap,
AccessControlList acl,
int visibility) |
protected AccessControlList |
createAcl(java.lang.String vid,
java.lang.String resource)
Create an ACL
|
protected Category |
createCategory(java.lang.String vid) |
protected Category |
createCategory(java.lang.String vid,
Category parent)
Crate a category
|
protected abstract void |
createData()
This method is called to generate the Data
|
protected Group |
createGroup(java.lang.String vid)
Create a group
|
protected Group |
createGroup(java.lang.String vid,
AccessControlList acl)
Create a group
|
protected Group |
createGroup(java.lang.String vid,
java.util.HashMap<java.lang.String,DataRight> rightFromClassMap)
Create a group
|
protected Group |
createGroup(java.lang.String vid,
java.util.HashMap<java.lang.String,DataRight> rightFromClassMap,
AccessControlList acl,
int visibility)
Create a group
|
void |
handleFinalize()
Called when the channel is finalized
|
void |
initAfterStartup()
Called at the end of JPlatform startup.
|
void |
initAfterStoreLoad()
Called just after the store has been loaded and
the channel has been initialized.
|
void |
initBeforeStoreLoad()
Called just before the store has been loaded.
|
protected <T extends Data> |
saveData(java.lang.String vid,
T data)
Save a Data
|
protected <T extends Data> |
saveData(T data) |
protected void |
setProperty(java.lang.String key,
java.lang.String value)
Set a property to save
|
compareTo, equals, init, initBeforeHibernateFactoryBuildprotected static final org.apache.log4j.Logger logger
protected static final java.lang.String NAME_SUFFIX
protected Channel channel
protected JProperties propToSave
public void initAfterStartup()
ChannelListenerinitAfterStartup in class ChannelListenerprotected abstract void createData()
protected Category createCategory(java.lang.String vid)
protected Category createCategory(java.lang.String vid, Category parent)
vid - the virtual IDparent - the parent categoryprotected AccessControlList createAcl(java.lang.String vid, java.lang.String resource)
vid - the virtual IDresource - the resource controled by this ACLprotected AccessControlList buildAcl(java.lang.String vid, java.lang.String resource)
protected Group createGroup(java.lang.String vid)
vid - the virtual IDprotected Group createGroup(java.lang.String vid, AccessControlList acl)
vid - the virtual IDacl - the ACLprotected Group createGroup(java.lang.String vid, java.util.HashMap<java.lang.String,DataRight> rightFromClassMap)
vid - the virtual IDrightFromClassMap - the map of DataRightprotected Group createGroup(java.lang.String vid, java.util.HashMap<java.lang.String,DataRight> rightFromClassMap, AccessControlList acl, int visibility)
vid - the virtual IDrightFromClassMap - the map of DataRightacl - the ACLvisibility - the group visibilityprotected Group buildGroup(java.lang.String vid, java.util.HashMap<java.lang.String,DataRight> rightFromClassMap, AccessControlList acl, int visibility)
protected <T extends Data> T saveData(java.lang.String vid, T data)
T - A class inherited from Datavid - the virtual IDdata - the Dataprotected void setProperty(java.lang.String key,
java.lang.String value)
key - the keyvalue - the valueprotected <T extends Data> ControllerStatus saveData(T data)
public void handleFinalize()
ChannelListenerhandleFinalize in class ChannelListenerpublic void initBeforeStoreLoad()
throws java.lang.Exception
ChannelListenerinitBeforeStoreLoad in class ChannelListenerjava.lang.Exception - any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.public void initAfterStoreLoad()
throws java.lang.Exception
ChannelListenerinitAfterStoreLoad in class ChannelListenerjava.lang.Exception - any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.Copyright © 2001-2022 Jalios SA. All Rights Reserved.