Document Requests

1. Document retrieval - icc.db.File

Retrieve the document information for the specified identifier
    public static DataRequest retrieve(Integer id);     Service:   File.QUERY
    Result:   File
    Arguments:   Integer id

Retrieve the document information for the specified identifier
    public static DataRequest retrieve(Integer id, Cube cube);     Service:   File.QUERY
    Result:   File
    Arguments:   Integer id, Cube cube

Retrieve an array of document informations for the specified identifiers
    public static DataRequest retrieve(Integer[] ids);     Service:   File.QUERY
    Result:   File[]
    Arguments:   Integer[] ids

Find and retrieve the document corresponding the specified document name and with respect to the specified project cube
    public static DataRequest find(Cube cube, String name);     Service:   File.QUERY
    Result:   File
    Arguments:   Integer id

2. Document creation - icc.db.File

Create this document with respect to the specified project cube
    public DataRequest create(Cube cube);     Service:   File.ENTRY
    Result:   Integer
    Arguments:   icc.net.IDCard user, Cube cube, File file
    Events:   Event.file(Event.CREATION, {cube, file.id()}, user);
         Event.file(Event.EDIT, ids, null);

Create this document with respect to the specified project cube
    public DataRequest create(Cube cube, String content);     Service:   File.ENTRY
    Result:   Integer
    Arguments:   icc.net.IDCard user, Cube cube, File file
    Events:   Event.file(Event.CREATION, {cube, file.id()}, user);
         Event.file(Event.EDIT, ids, null);

Create this document with respect to the specified project cube
    public DataRequest upload(Cube cube, String filename);     Service:   File.ENTRY
    Result:   Integer
    Arguments:   icc.net.IDCard user, Cube cube, File file
    Events:   Event.file(Event.CREATION, {cube, file.id()}, user);
         Event.file(Event.EDIT, ids, null);

3. Document deletion - icc.db.File

Delete the document with the specified identifier from the project database
    public static DataRequest delete(Integer id);     Service:   File.ENTRY
    Result:   icc.net.Event
    Arguments:   Object[], Integer id
    Events:   Event.file(Event.DELETION, {cube, id}, user);
         Event.file(Event.EDIT, ids, null);

Delete this document from the project database
    public DataRequest delete();     Service:  File.ENTRY
    Result:  icc.net.Event
    Arguments:  Object[], Integer id
    Events:   Event.file(Event.DELETION, {cube, id}, user);
         Event.file(Event.EDIT, ids, null);

4. Document modification - icc.db.File

Modify this document information
    public DataRequest alter();     Service:   File.QUERY
    Result:   File
    Arguments:   Integer id
    Events:   Event.file(Event.EDIT, id, user);
         Event.file(Event.MODIFICATION, id, user);
         Event.file(Event.EDIT, ids, null);

Modify this document information
    public DataRequest alter(String content);     Service:   File.QUERY
    Result:   File
    Arguments:   Integer id
    Events:   Event.file(Event.EDIT, id, user);
         Event.file(Event.MODIFICATION, id, user);
         Event.file(Event.EDIT, ids, null);

Modify this document information
    public DataRequest upload(String filename);     Service:   File.QUERY
    Result:   File
    Arguments:   Integer id
    Events:   Event.file(Event.EDIT, id, user);
         Event.file(Event.MODIFICATION, id, user);
         Event.file(Event.EDIT, ids, null);

5. Document locking - icc.db.WorkFile

Update the lock of this document
    public DataRequest locking();     Service:   File.ENTRY
    Result:   icc.net.Event
    Arguments:   Object[] {icc.net.IDCard user, WorkFile file}
    Events:   Event.file(Event.EDIT, file.id(), user);


Last modified on 5 May 1999 by Rudi Stouffs

This website has been archived and is no longer maintained.