Package com.pnfsoftware.jeb.core.actions
Class ActionRenameData
java.lang.Object
com.pnfsoftware.jeb.core.actions.ActionData
com.pnfsoftware.jeb.core.actions.ActionRenameData
- All Implemented Interfaces:
IActionData
This action class holds information for the
Actions.RENAME action.
Unit plugins may support rename actions on items to allow clients to rename those items.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis error code may be set by plugins if the action failed because of a naming conflict (with naming conflict checks enforced).Fields inherited from class com.pnfsoftware.jeb.core.actions.ActionData
ERRCODE_UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether this action data object may be safely reused after aActionData.reset()invocation.Get the current name.Get the new name.Get the original name.booleanPlugins may retrieve this optional flag to determine whether naming conflict checks may be bypassed, if it is possible.voidreset()Reset this action data object.voidsetBypassNameChecks(boolean bypassNameConflictChecks) Clients may set this optional flag to let the plugin know that naming conflict checks may be bypassed, if it is possible.voidsetCurrentName(String name) Set the current name.voidsetNewName(String name) Set the new name.voidsetOriginalName(String originalName) Set the original name.Methods inherited from class com.pnfsoftware.jeb.core.actions.ActionData
getDescription, getExecutionErrorCode, getExecutionErrorMessage, getValue, isNoInfoRequest, setDescription, setExecutionError, setExecutionErrorCode, setExecutionErrorMessage, setValue
-
Field Details
-
ERRCODE_NAMING_CONFLICT
public static final int ERRCODE_NAMING_CONFLICTThis error code may be set by plugins if the action failed because of a naming conflict (with naming conflict checks enforced).- See Also:
-
-
Constructor Details
-
ActionRenameData
public ActionRenameData()
-
-
Method Details
-
reset
public void reset()Description copied from class:ActionDataReset this action data object. Sub-classes should override this method and invoke it as well.- Overrides:
resetin classActionData
-
canReuseObject
public boolean canReuseObject()Description copied from class:ActionDataDetermine whether this action data object may be safely reused after aActionData.reset()invocation.- Overrides:
canReuseObjectin classActionData- Returns:
-
getOriginalName
Get the original name. This method is used by clients.- Returns:
-
setOriginalName
Set the original name. This method is used by plugins.- Parameters:
originalName-
-
getCurrentName
Get the current name. This method is used by clients.- Returns:
- the current name
-
setCurrentName
Set the current name. This method is used by plugins.- Parameters:
name- current name
-
getNewName
Get the new name. This method is used by plugins.- Returns:
- the new name
-
setNewName
Set the new name. This method is used by clients.- Parameters:
name- new name
-
setBypassNameChecks
public void setBypassNameChecks(boolean bypassNameConflictChecks) Clients may set this optional flag to let the plugin know that naming conflict checks may be bypassed, if it is possible.- Parameters:
bypassNameConflictChecks-
-
isBypassNameChecks
public boolean isBypassNameChecks()Plugins may retrieve this optional flag to determine whether naming conflict checks may be bypassed, if it is possible.- Returns:
-