public abstract class Extension extends Manager
ExtensionInfo
object.
There might be extensions which are not visible on jalo layer, so they don't need such an object. | Modifier and Type | Class and Description |
|---|---|
static interface |
Extension.RestrictedLanguagesProvider
Implement this interface at your Manager class to restrict the access for an item for specific languages.
|
static interface |
Extension.RightsProvider
Implement this interface at your Manager class to restrict the modifying access to a specific attribute for a
specific item.
|
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator| Constructor and Description |
|---|
Extension() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkBeforeItemRemoval(SessionContext ctx,
Item item)
TODO improve API doc Override this method to implement pre-removal consistency checks.
|
void |
createEssentialData(Map<String,String> params,
JspContext jspc) |
void |
createProjectData(Map<String,String> params,
JspContext jspc) |
void |
createSampleData(Map<String,String> params,
JspContext jspc) |
String |
getCreatorDescription()
Part of
DataCreator interface. |
String |
getCreatorName()
The name of the creator will be shown to the user during data creation.
|
String |
getCreatorParameterDefault(String param)
Override this method to provide default value for the given creator parameter.
|
Collection<String> |
getCreatorParameterNames()
Override this method to provide parameters for the system creator.
|
List<String> |
getCreatorParameterPossibleValues(String param)
Override this method to provide a list of all possible values for the given creator parameter.
|
Map<String,Item.AttributeMode> |
getDefaultAttributeModes(Class<? extends Item> itemClass) |
abstract String |
getName() |
ExtensionEJB |
getRemote() |
boolean |
isCreatorDisabled()
Part of
DataCreator interface. |
void |
notifyInitializationEnd(Map<String,String> params,
JspContext ctx) |
void |
notifyInitializationStart(Map<String,String> params,
JspContext ctx) |
protected void |
notifyItemRemoval(SessionContext ctx,
Item item)
TODO improve API doc Is called just before a item is being removed.
|
void |
onFirstSessionCreation()
Is called on first session creation (while startup) exactly one time.
|
Object |
writeReplace() |
afterItemCreation, beforeItemCreation, destroy, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, unwrap, unwrap, wrappublic void onFirstSessionCreation()
protected void checkBeforeItemRemoval(SessionContext ctx, Item item) throws ConsistencyCheckException
ManagerManager and allows aborting removal by throwing a ConsistencyCheckException. If no manager
did so each one is notified by calling Manager.notifyItemRemoval(SessionContext, Item).
This method does nothing and may be overridden.
checkBeforeItemRemoval in class Managerctx - the current session contextitem - the item which should be removedConsistencyCheckException - thrown to abort removal due to consistency errorsprotected void notifyItemRemoval(SessionContext ctx, Item item)
ManagerManager.checkBeforeItemRemoval(SessionContext, Item) instead.
This method does nothing and may be overridden.
notifyItemRemoval in class Managerctx - the currency session contextitem - the item which is going to be removedpublic void createEssentialData(Map<String,String> params, JspContext jspc) throws Exception
Exceptionpublic void createProjectData(Map<String,String> params, JspContext jspc) throws Exception
Exceptionpublic final void createSampleData(Map<String,String> params, JspContext jspc) throws Exception
Exceptionpublic void notifyInitializationEnd(Map<String,String> params, JspContext ctx) throws Exception
Exceptionpublic void notifyInitializationStart(Map<String,String> params, JspContext ctx) throws Exception
Exceptionpublic Collection<String> getCreatorParameterNames()
public String getCreatorParameterDefault(String param)
param - the name of the parameternull when the parameter should have no
default valuepublic List<String> getCreatorParameterPossibleValues(String param)
null the list of these values will be shown to the user of system creator and no other values will be
possible to set.param - the name of the parameternull when this parameter
should have no restriction of possible valuespublic String getCreatorName()
public String getCreatorDescription()
DataCreator interface. The description of the creator will be shown to the
user during data creation.public boolean isCreatorDisabled()
DataCreator interface. This default implementation returns
falsefalsepublic abstract String getName()
public ExtensionEJB getRemote()
public Map<String,Item.AttributeMode> getDefaultAttributeModes(Class<? extends Item> itemClass)
public Object writeReplace() throws ObjectStreamException
writeReplace in class ManagerObjectStreamExceptionCopyright © 2017 SAP SE. All Rights Reserved.