--  SQL file representing changes to the functionalities model
--  Generated at Fri Sep 29 18:19:28 WEST 2006
--  DO NOT EDIT THIS FILE, run the generating script instead

--  Preamble

START TRANSACTION;

-- 
--  Deleting functionalities
-- 

--  ID: 22 UUID: '25c5a057-ad71-4280-b5df-7dd893e2260a'
DELETE FROM ap, f USING `AVAILABILITY_POLICY` AS ap, `FUNCTIONALITY` AS f WHERE f.`UUID` = '25c5a057-ad71-4280-b5df-7dd893e2260a' AND ap.`KEY_FUNCTIONALITY` = f.`ID_INTERNAL`;

-- 
--  Inserting new functionalities
-- 

--  ID: 259 UUID: 'bbee9544-1ece-4c02-b44b-9666db711ad5'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT 'bbee9544-1ece-4c02-b44b-9666db711ad5', 'net.sourceforge.fenixedu.domain.functionalities.Module', 1, `ID_INTERNAL`, `ID_INTERNAL`, NULL, 'pt27:Gestão de Unidades e Cargos', NULL, NULL, '/organizationalStructureManagament/listAllUnits.faces', '/organizationalStructureManagament', 1, 1, NULL, 1, 0, 0, 0 FROM `FUNCTIONALITY` WHERE `UUID` = 'f0ce9502-abeb-4f54-96e8-0aafa607d119';

--  ID: 260 UUID: 'b803b190-293a-439e-bfb2-8831f586b6ba'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT 'b803b190-293a-439e-bfb2-8831f586b6ba', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt23:Ver Detalhes de Unidade', NULL, NULL, '/unitDetails.faces', NULL, 1, 1, NULL, 2, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

--  ID: 261 UUID: '427fb6e0-52a6-415d-acf9-31923c268e39'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT '427fb6e0-52a6-415d-acf9-31923c268e39', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt14:Editar Unidade', NULL, NULL, '/editUnit.faces', NULL, 1, 1, NULL, 3, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

--  ID: 262 UUID: 'a4b037ab-1c71-4015-a7a0-385e27dba21a'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT 'a4b037ab-1c71-4015-a7a0-385e27dba21a', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt20:Escolher Unidade Pai', NULL, NULL, '/listUnitParentUnits.faces', NULL, 1, 1, NULL, 5, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

--  ID: 263 UUID: 'd091e4cb-549b-4c90-aa64-19316dde8da9'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT 'd091e4cb-549b-4c90-aa64-19316dde8da9', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt16:Criar Novo Cargo', NULL, NULL, '/createNewFunction.faces', NULL, 1, 1, NULL, 7, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

--  ID: 264 UUID: '51c9d0f5-3380-46b3-94b2-2b202ea28a00'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT '51c9d0f5-3380-46b3-94b2-2b202ea28a00', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt12:Editar Cargo', NULL, NULL, '/editFunction.faces', NULL, 1, 1, NULL, 8, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

--  ID: 265 UUID: '926ee120-1cd2-4b92-ba2a-c6b7590ee4f6'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT '926ee120-1cd2-4b92-ba2a-c6b7590ee4f6', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt16:Escolha do Cargo', NULL, NULL, '/chooseFunction.faces', NULL, 1, 1, NULL, 9, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

--  ID: 266 UUID: 'd74bab3c-2541-42f4-9b62-306a9cb7e8ba'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT 'd74bab3c-2541-42f4-9b62-306a9cb7e8ba', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt20:Escolher Unidade Pai', NULL, NULL, '/chooseParentUnit.faces', NULL, 1, 1, NULL, 6, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

--  ID: 267 UUID: '4ed4d84c-263f-4847-bedc-5f7df53f845f'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT '4ed4d84c-263f-4847-bedc-5f7df53f845f', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt20:Escolher Unidade Pai', NULL, NULL, '/listAllUnitsToChooseParentUnit.faces', NULL, 1, 1, NULL, 4, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

--  ID: 268 UUID: 'c1f83c82-e52c-4ef3-a990-0f7966aacf16'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT 'c1f83c82-e52c-4ef3-a990-0f7966aacf16', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt18:Criar Nova Unidade', NULL, NULL, '/createNewUnit.faces', NULL, 1, 1, NULL, 0, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

--  ID: 269 UUID: '5f5a6bff-4265-46d8-8935-e2066eb0b05d'
INSERT INTO `FUNCTIONALITY` (`UUID`, `OJB_CONCRETE_CLASS`, `KEY_ROOT_DOMAIN_OBJECT`, `KEY_PARENT`, `KEY_MODULE`, `KEY_AVAILABILITY_POLICY`, `NAME`, `TITLE`, `DESCRIPTION`, `PATH`, `PREFIX`, `RELATIVE`, `ENABLED`, `PARAMETERS`, `ORDER_IN_MODULE`, `VISIBLE`, `MAXIMIZED`, `PRINCIPAL`) SELECT '5f5a6bff-4265-46d8-8935-e2066eb0b05d', 'net.sourceforge.fenixedu.domain.functionalities.ConcreteFunctionality', 1, NULL, `ID_INTERNAL`, NULL, 'pt21:Criar Nova SubUnidade', NULL, NULL, '/createNewSubUnit.faces', NULL, 1, 1, NULL, 1, 1, 0, 1 FROM `FUNCTIONALITY` WHERE `UUID` = 'bbee9544-1ece-4c02-b44b-9666db711ad5';

COMMIT;
