com.basecmp.core.usecasesteps.assetmanagement
Class CreateParentReferences
java.lang.Object
BaseCmpUsecaseStep
com.basecmp.core.usecasesteps.assetmanagement.CreateParentReferences
- public class CreateParentReferences
- extends BaseCmpUsecaseStep
Creates new bindings for a list of assets (parents) of to another asset
(child).
If you want to add a category-assignement to any asset, this step may be used
by setting the configkey 'ReferenceType' to value 'asset_cat'. Note that the
step does not check the assettypes of the asset to link with the reference!
- See Also:
- Serialized Form
- Step-Configuration-Parameters:
| Parameter | Description |
ReferenceType (pflicht) | Referencetype of the references
(bindings) to be stored. |
ReferenceCaption (optional) | Caption for the references to be
used. Defaults to given ReferenceType if not given explicitly. |
AssetListContextKey (optional) | Alternative attributname for
contextin 'AssetList' |
ChildAssetContextKey (optional) | Alternative attributname for
contextin 'PersistentAsset' |
ForceParentAssetType (optional) | If given, the assettypes of
contextin 'AssetList' has to be of the given type, otherwise the
step is left over it's error-id. |
ForceChildAssetType (optional) | If given, the assettype of
contextin 'PersistentAsset' has to be of the given type, otherwise
the step is left over it's error-id. |
- Expected UsecaseContext-Attributes:
| Parameter | Description |
AssetList | Attributname where to find the List (Collection
containing objects of type PeristentAsset) of parentassets for the
references to be stored. For convenience it is also allowed, to
store a single instance of a PersistentAsset instead of a
Collection. Type {@link java.util.Collection} or
{@link com.basecmp.core.persistence.impl.PersistentAsset} |
PersistentAsset | Attributname where to find the childasset for the
references to be stored. Type
{@link com.basecmp.core.persistence.impl.PersistentAsset}
Created on 23.04.2007 |
- Author:
- Wolfgang Schröder
|
Method Summary |
void |
execute(UsecaseContext uc,
int unlockKey)
|
protected void |
initStep(java.lang.Integer stepId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_KEY_ASSET_LIST_CONTEXT_KEY
public static final java.lang.String CONFIG_KEY_ASSET_LIST_CONTEXT_KEY
- See Also:
- Constant Field Values
CONFIG_KEY_CHILD_ASSET_CONTEXT_KEY
public static final java.lang.String CONFIG_KEY_CHILD_ASSET_CONTEXT_KEY
- See Also:
- Constant Field Values
CONFIG_KEY_FORCE_CHILD_ASSETTYPE
public static final java.lang.String CONFIG_KEY_FORCE_CHILD_ASSETTYPE
- See Also:
- Constant Field Values
CONFIG_KEY_FORCE_PARENT_ASSETTYPE
public static final java.lang.String CONFIG_KEY_FORCE_PARENT_ASSETTYPE
- See Also:
- Constant Field Values
CONFIG_KEY_REFCAPTION
public static final java.lang.String CONFIG_KEY_REFCAPTION
- See Also:
- Constant Field Values
CONFIG_KEY_REFTYPE
public static final java.lang.String CONFIG_KEY_REFTYPE
- See Also:
- Constant Field Values
CreateParentReferences
public CreateParentReferences()
execute
public void execute(UsecaseContext uc,
int unlockKey)
throws java.lang.Exception
- Throws:
java.lang.Exception
initStep
protected void initStep(java.lang.Integer stepId)
Copyright © 2004 by basecmp® - Professional Web Solutions