51 lines
1012 B
Java
51 lines
1012 B
Java
package afryca.structure.service;
|
|
|
|
import java.util.List;
|
|
|
|
import afryca.structure.definition.StructureRegistry;
|
|
|
|
public interface IStructureService {
|
|
|
|
public static final String CONTEXT = "structure.service.context"; //$NON-NLS-1$
|
|
|
|
// Selected structure
|
|
public static final String SELECTED_PR = "SELECTED "; //$NON-NLS-1$
|
|
|
|
|
|
/**
|
|
* Return all registers id
|
|
*
|
|
* @return Registers id
|
|
*/
|
|
String[] getIds();
|
|
|
|
/**
|
|
* Return a StructureRegistry
|
|
*
|
|
* @param id
|
|
* Id of the StructureRegistry
|
|
* @return StructureRegistry
|
|
*/
|
|
StructureRegistry getRegistry(String id);
|
|
|
|
/**
|
|
* Return a StructureRegistry id
|
|
*
|
|
* @param name
|
|
* Name of the StructureRegistry
|
|
* @return Registry id
|
|
*/
|
|
String getRegistryIdByName(String name);
|
|
|
|
|
|
/**
|
|
* Return a list of domains id
|
|
*
|
|
* @param id
|
|
* id of the StructureRegistry
|
|
* @return List of available domains id
|
|
*/
|
|
List<String> getDomains(String id);
|
|
|
|
}
|