Skip to content
Snippets Groups Projects

Draft: F acm permissions2

Closed Timm Fitschen requested to merge f-acm-permissions2 into dev
10 files
+ 254
27
Compare changes
  • Side-by-side
  • Inline

Files

/*
* ** header v3.0
* This file is a part of the CaosDB Project.
*
* Copyright (C) 2020 IndiScale GmbH <info@indiscale.com>
* Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* ** end header
*/
package org.caosdb.server.entity;
import java.util.HashMap;
@@ -12,7 +35,7 @@ import org.jdom2.Element;
*
* <p>If no plug-in handles the client message, it is printed back to the response unaltered.
*
* <p>Client message can have arbitrary key-value tuples {@link #properties}.
* <p>Client message can have arbitrary key-value (string-string typed) tuples {@link #properties}.
*
* @author Timm Fitschen (t.fitschen@indiscale.com)
*/
@@ -40,6 +63,7 @@ public class ClientMessage extends Message {
parent.addContent(e);
}
/** NB: This is the only place where properties are set in this class. */
public static ClientMessage fromXML(Element pe) {
ClientMessage result = new ClientMessage(pe.getName(), pe.getText());
for (Attribute a : pe.getAttributes()) {
Loading