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(java.util.Map<java.lang.String,java.lang.String> params,
JspContext jspc) |
void |
createProjectData(java.util.Map<java.lang.String,java.lang.String> params,
JspContext jspc) |
void |
createSampleData(java.util.Map<java.lang.String,java.lang.String> params,
JspContext jspc) |
java.lang.String |
getCreatorDescription()
Part of
DataCreator interface. |
java.lang.String |
getCreatorName()
The name of the creator will be shown to the user during data creation.
|
java.lang.String |
getCreatorParameterDefault(java.lang.String param)
Override this method to provide default value for the given creator parameter.
|
java.util.Collection<java.lang.String> |
getCreatorParameterNames()
Override this method to provide parameters for the system creator.
|
java.util.List<java.lang.String> |
getCreatorParameterPossibleValues(java.lang.String param)
Override this method to provide a list of all possible values for the given creator parameter.
|
java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes(java.lang.Class<? extends Item> itemClass) |
abstract java.lang.String |
getName() |
ExtensionEJB |
getRemote() |
boolean |
isCreatorDisabled()
Part of
DataCreator interface. |
void |
notifyInitializationEnd(java.util.Map<java.lang.String,java.lang.String> params,
JspContext ctx) |
void |
notifyInitializationStart(java.util.Map<java.lang.String,java.lang.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.
|
java.lang.Object |
writeReplace() |
afterItemCreation, beforeItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, 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(java.util.Map<java.lang.String,java.lang.String> params,
JspContext jspc)
throws java.lang.Exception
java.lang.Exceptionpublic void createProjectData(java.util.Map<java.lang.String,java.lang.String> params,
JspContext jspc)
throws java.lang.Exception
java.lang.Exceptionpublic final void createSampleData(java.util.Map<java.lang.String,java.lang.String> params,
JspContext jspc)
throws java.lang.Exception
java.lang.Exceptionpublic void notifyInitializationEnd(java.util.Map<java.lang.String,java.lang.String> params,
JspContext ctx)
throws java.lang.Exception
java.lang.Exceptionpublic void notifyInitializationStart(java.util.Map<java.lang.String,java.lang.String> params,
JspContext ctx)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Collection<java.lang.String> getCreatorParameterNames()
public java.lang.String getCreatorParameterDefault(java.lang.String param)
param - the name of the parameternull when the parameter should have no
default valuepublic java.util.List<java.lang.String> getCreatorParameterPossibleValues(java.lang.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 java.lang.String getCreatorName()
public java.lang.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 java.lang.String getName()
public ExtensionEJB getRemote()
public java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes(java.lang.Class<? extends Item> itemClass)
public java.lang.Object writeReplace()
throws java.io.ObjectStreamException
writeReplace in class Managerjava.io.ObjectStreamExceptionCopyright © 2018 SAP SE. All Rights Reserved.