#ifndef __Entity_Idl__ #define __Entity_Idl__ /* * Copyright (C) 2001 CERN - European Organization for Nuclear Research * All rights reserved. * * @author $Author: abranson $ $Date: 2005/04/26 06:47:48 $ * @version $Revision: 1.24 $ */ #include #pragma prefix "c2kernel.com" module entity { /** * ManageableEntity is the CORBA super-interface for Entities. It is uniquely * identifiable by its system key, and contains XML fragments arranged * in a tree structure. **/ interface Item { /** * System generated unique key of the Entity. It is unique in the domain tree of the local centre in which is is contained. **/ unsigned long getSystemKey(); /** Initialises a new Item. Initial properties and the lifecycle are supplied. They should come from the Item's description. * * @param agentId the Agent doing the initialisation * @param itemProps The XML marshalled {@link com.c2kernel.Property.PropertyArrayList PropertyArrayList} containing the initial * Property objects of the Item * @param workflow The XML marshalled new lifecycle of the Item * @param collection The XML marshalled CollectionArrayList of the initial state of the Item's collections * @exception ObjectNotFoundException **/ void initialise( in unsigned long agentId, in string itemProps, in string workflow, in string collections ) raises( common::AccessRightsException, common::InvalidDataException, common::PersistencyException, common::ObjectNotFoundException ); /** * Returns a chunk of XML which may be a serialized C2KLocalObject, or in the case of Outcomes is merely a fragment of XML. * * @param path - All Entity data is arranged in a tree structure which uniquely identifies that object within the Entity it is contained, according to the following scheme: *