package pt.ist.groupmanager.domain; /* * @(#)group-manager.dml * * Copyright 2012 Instituto Superior Técnico * Founding Authors: João Figueiredo, Luis Cruz, Paulo Abrantes, Susana Fernandes * * https://fenix-ashes.ist.utl.pt/ * * This file is part of the Bennu web application infrastructure. * * Bennu is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version.* * * Bennu is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with MyOrg. If not, see . * */ class CustomGroup extends .pt.ist.bennu.core.domain.groups.PersistentGroup { String name; } relation MyOrgCustomGroup { .pt.ist.bennu.core.domain.MyOrg playsRole customGroupMyOrg; CustomGroup playsRole customGroups { multiplicity *; } } relation UserCustomGroups { .pt.ist.bennu.core.domain.User playsRole author; CustomGroup playsRole customGroups { multiplicity *; } } relation PersistentGroupInclusionCustomGroup { .pt.ist.bennu.core.domain.groups.UnionGroup playsRole inclusionGroup; CustomGroup playsRole includingCustomGroup { multiplicity *; } } relation PersistentGroupExclusionCustomGroup { .pt.ist.bennu.core.domain.groups.UnionGroup playsRole exclusionGroup; CustomGroup playsRole excludingCustomGroup { multiplicity *; } }