com.flexive.shared.interfaces
Interface TypeEngine

All Known Subinterfaces:
TypeEngineLocal

public interface TypeEngine

FxType management

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Method Summary
 java.lang.String export(long id)
          Export the type with the requested id as XML
 FxType importType(java.lang.String typeXML)
          Import a type fromt he given XML.
 void remove(long id)
          Completely remove a FxType and its assignments (exception will be thrown if instances or derived types exist)
 long save(FxTypeEdit type)
          Create a new or update an existing FxType
 

Method Detail

save

long save(FxTypeEdit type)
          throws FxApplicationException
Create a new or update an existing FxType

Parameters:
type - FxType to create or update
Returns:
id of the type
Throws:
FxApplicationException - on errors

remove

void remove(long id)
            throws FxApplicationException
Completely remove a FxType and its assignments (exception will be thrown if instances or derived types exist)

Parameters:
id - id of the type to remove
Throws:
FxApplicationException - on errors

export

java.lang.String export(long id)
                        throws FxApplicationException
Export the type with the requested id as XML

Parameters:
id - requested type id
Returns:
XML export
Throws:
FxApplicationException - on errors

importType

FxType importType(java.lang.String typeXML)
                  throws FxApplicationException
Import a type fromt he given XML. If the type exists, changes will be applied.

Parameters:
typeXML - the type as xml
Returns:
the imported type
Throws:
FxApplicationException - on errors