Class ClonedItemNTO<D extends com.im.df.api.support.DFNewTypeWellKnownOptions.UserItemDescription,​I extends com.im.df.api.ddl.DFItem>

  • Type Parameters:
    D - item description type
    I - 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
    • Field Summary

      • Fields inherited from interface com.im.df.api.support.DFNewTypeOptions

        PROP_ERROR_MESSAGE, PROP_VALID
      • Fields inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem

        PROP_ITEM_DESCRIPTION
      • Fields inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.SingleDFItem

        PROP_DESCRIPTION, PROP_NEW_DFITEM_NAME
    • 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)  
    • Constructor Detail

      • ClonedItemNTO

        public 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 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 copy
        parent - return only items under this one
        env -
        Returns:
        list of items the user can copy.
      • getAllUsers

        public List<String> getAllUsers()
        Specified by:
        getAllUsers in interface com.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
      • getItemDescriptionsFor

        public List<D> getItemDescriptionsFor​(String user)
        Specified by:
        getItemDescriptionsFor in interface com.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
      • setItemDescription

        public void setItemDescription​(com.im.df.api.support.DFNewTypeWellKnownOptions.UserItemDescription itemDescription)
        Specified by:
        setItemDescription in interface com.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
      • getItemDescription

        public D getItemDescription()
        Specified by:
        getItemDescription in interface com.im.df.api.support.DFNewTypeWellKnownOptions.ClonedUserItem
      • updateStatus

        protected void updateStatus()
        Overrides:
        updateStatus in class com.chemaxon.dif.db.api.item.newtype.SingleDFItemNTO<I extends com.im.df.api.ddl.DFItem>
      • getErrorNoItemSelected

        protected abstract String getErrorNoItemSelected()