Package com.im.ijc.df.impl.db
Class ClonedItemNTO<D extends com.im.df.api.support.DFNewTypeWellKnownOptions.UserItemDescription,I extends com.im.df.api.ddl.DFItem>
- java.lang.Object
-
- com.chemaxon.dif.db.api.item.newtype.AbstractNTOImpl
-
- com.chemaxon.dif.db.api.item.newtype.SingleDFItemNTO<I>
-
- com.im.ijc.df.impl.db.ClonedItemNTO<D,I>
-
- Type Parameters:
D
- item description typeI
- created item type
- All Implemented Interfaces:
com.im.df.api.support.DFNewTypeOptions
,com.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
,com.im.df.api.support.DFNewTypeWellKnownOptions.SingleDFItem
- Direct Known Subclasses:
ClonedListNTO
,ClonedQueryNTO
,ClonedScriptNTO
,ClonedViewNTO
public abstract class ClonedItemNTO<D extends com.im.df.api.support.DFNewTypeWellKnownOptions.UserItemDescription,I extends com.im.df.api.ddl.DFItem> extends com.chemaxon.dif.db.api.item.newtype.SingleDFItemNTO<I> implements com.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
Options for cloning a DFItem from another user.- Author:
- Petr Hamernik
-
-
Constructor Summary
Constructors Constructor Description ClonedItemNTO(com.im.df.api.ddl.DFContainer<I> parentContainer, com.im.df.api.ddl.DFItem parentItem, com.chemaxon.dif.db.util.DBNameUtils.VType type, String defaultName)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
checkInit(com.im.commons.progress.DFEnvironmentRO env)
protected abstract List<D>
createUserItemsFor(com.im.ijcs.api.util.DFUser user, com.im.df.api.ddl.DFItem parent, com.im.commons.progress.DFEnvironmentRO env)
List<String>
getAllUsers()
protected abstract String
getErrorNoItemSelected()
D
getItemDescription()
List<D>
getItemDescriptionsFor(String user)
static boolean
isSupported(com.im.df.api.ddl.DFSchema schema)
void
setItemDescription(com.im.df.api.support.DFNewTypeWellKnownOptions.UserItemDescription itemDescription)
protected void
updateStatus()
-
Methods inherited from class com.chemaxon.dif.db.api.item.newtype.SingleDFItemNTO
getDescription, getNewDFItemName, getParentContainer, normalizeDFItemName, notifyNewDFItemNameChanged, setDescription, setNewDFItemName, setNewDFItemNameSafe
-
Methods inherited from class com.chemaxon.dif.db.api.item.newtype.AbstractNTOImpl
addPropertyChangeListener, firePropertyChange, getErrorMessage, isValid, removePropertyChangeListener, setErrorMessage, setValid
-
-
-
-
Method Detail
-
checkInit
public void checkInit(com.im.commons.progress.DFEnvironmentRO env)
-
isSupported
public static boolean isSupported(com.im.df.api.ddl.DFSchema schema)
-
createUserItemsFor
protected abstract List<D> createUserItemsFor(com.im.ijcs.api.util.DFUser user, com.im.df.api.ddl.DFItem parent, com.im.commons.progress.DFEnvironmentRO env)
- Parameters:
user
- the user willing to copyparent
- return only items under this oneenv
-- Returns:
- list of items the user can copy.
-
getAllUsers
public List<String> getAllUsers()
- Specified by:
getAllUsers
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
-
getItemDescriptionsFor
public List<D> getItemDescriptionsFor(String user)
- Specified by:
getItemDescriptionsFor
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
-
setItemDescription
public void setItemDescription(com.im.df.api.support.DFNewTypeWellKnownOptions.UserItemDescription itemDescription)
- Specified by:
setItemDescription
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
-
getItemDescription
public D getItemDescription()
- Specified by:
getItemDescription
in interfacecom.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
-
updateStatus
protected void updateStatus()
- Overrides:
updateStatus
in classcom.chemaxon.dif.db.api.item.newtype.SingleDFItemNTO<I extends com.im.df.api.ddl.DFItem>
-
getErrorNoItemSelected
protected abstract String getErrorNoItemSelected()
-
-