blob: a7439d67cbb7983ba39e0b025e2724d8000e804e [file] [log] [blame]
jaegonkim6a7b5242018-09-12 23:09:42 +09001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.workflow.api;
17
18import java.util.Collection;
19
20/**
21 * Abstract class for workplace. A common workflow data container for multiple work-flows.
22 */
23public abstract class Workplace extends WorkflowData {
24
25 public static final String SYSTEM_WORKPLACE = "system-workplace";
26
27 /**
28 * Constructor of workplace.
29 * @param data data model tree
30 */
31 public Workplace(DataModelTree data) {
32 super(data);
33 }
34
35 /**
36 * Gets workflow contexts of workplace.
37 * @return collection of workflow context
38 * @throws WorkflowException workflow exception
39 */
40 abstract Collection<WorkflowContext> getContexts() throws WorkflowException;
41
42}