Changeset 28985

Show
Ignore:
Timestamp:
01/12/08 14:55:11 (11 months ago)
Author:
bstefanescu
Message:

working on put

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.client/trunk/nuxeo-client-commands/src/main/java/org/nuxeo/ecm/client/commands/repository/PutCommand.java

    r28984 r28985  
    5959        RepositoryInstance repo = context.getRepositoryInstance(); 
    6060 
    61         String name = localFile.getName() + "_" + System.currentTimeMillis(); 
     61        String name = localFile.getName();// + "_" + System.currentTimeMillis(); 
    6262        DocumentModel file = new DocumentModelImpl(parent.getPathAsString(), name, "File"); 
    6363        file = repo.createDocument(file); 
  • org.nuxeo.ecm.client/trunk/nuxeo-client-commands/src/main/resources/OSGI-INF/Commands.xml

    r28984 r28985  
    7070    <command name="rm" class="org.nuxeo.ecm.client.commands.repository.RmCommand"> 
    7171        <description>Remove specified (or current) document</description> 
     72        <params> 
     73            <param index="0" type="doc"/> 
     74        </params> 
    7275        <help> 
    7376            TODO 
     
    7780    <command name="put" class="org.nuxeo.ecm.client.commands.repository.PutCommand"> 
    7881        <description>Create a new file document from a local file</description> 
     82        <params> 
     83            <param index="0" type="file"/> 
     84            <param index="1" type="doc"/> 
     85        </params> 
    7986        <help> 
    8087            TODO