libreccm-legacy/ccm-portalserver/pdl/com/arsdigita/portalserver/Role.pdl

40 lines
1.5 KiB
Plaintext

//
// Copyright (C) 2001-2004 Red Hat Inc. All Rights Reserved.
//
// This library 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 2.1 of
// the License, or (at your option) any later version.
//
// This library 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 this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// $Id: Role.pdl pboy $
model com.arsdigita.workspace;
import com.arsdigita.kernel.Group;
object type Role extends Group {
String[1..1] roleName = ps_workspace_roles.role_name VARCHAR(100);
String[1..1] assigneeTitle = ps_workspace_roles.assignee_title VARCHAR(100);
String[0..1] description = ps_workspace_roles.description VARCHAR(4000);
Boolean[1..1] isSystem = ps_workspace_roles.is_system CHAR(1);
String[0..1] type = ps_workspace_roles.type VARCHAR(100);
reference key (ps_workspace_roles.role_id);
}
association {
Workspace[1..1] workspace =
join ps_workspace_roles.workspace_id to ps_workspaces.workspace_id;
component Role[0..n] roles =
join ps_workspaces.workspace_id to ps_workspace_roles.workspace_id;
}