blob: 8ed4666d6b2f48f953933f32eb8ffd38ecc2ddb5 [file] [log] [blame]
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.onosproject.cord.gui.model;
/**
* Designates XOS Functions.
*/
public enum XosFunctionDescriptor {
/**
* Internet function.
*/
INTERNET("internet",
"Internet",
"Basic internet connectivity.",
false),
/**
* Firewall function.
*/
FIREWALL("firewall",
"Firewall",
"Normal firewall protection.",
true),
/**
* URL Filtering function (parental controls).
*/
URL_FILTER("url_filter",
"Parental Control",
"Variable levels of URL filtering.",
true),
/**
* Content Distribution function.
*/
CDN("cdn",
"CDN",
"Content Distribution Network service.",
true);
private final String id;
private final String displayName;
private final String description;
private final boolean backend;
XosFunctionDescriptor(String id, String displayName, String description,
boolean backend) {
this.id = id;
this.displayName = displayName;
this.description = description;
this.backend = backend;
}
/**
* Returns this function's internal identifier.
*
* @return the identifier
*/
public String id() {
return id;
}
/**
* Returns this function's display name.
*
* @return display name
*/
public String displayName() {
return displayName;
}
/**
* Returns a short, textual description of the function.
*
* @return textual description
*/
public String description() {
return description;
}
/**
* Returns true if this function is supported by the XOS backend.
*
* @return true if backend function exists
*/
public boolean backend() {
return backend;
}
}