Skip to content

Commit

Permalink
Merge pull request gravitee-io#6 from M3lkior/master
Browse files Browse the repository at this point in the history
enhancement(page): add PageType to Page model
  • Loading branch information
brasseld committed Feb 1, 2016
2 parents 0cecede + bb8f08a commit 597e42e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Page {

private String name;

private String type;
private PageType type;

private String content;

Expand All @@ -57,7 +57,7 @@ public void setId(String id) {
this.id = id;
}

public String getType() {
public PageType getType() {
return type;
}

Expand All @@ -69,7 +69,7 @@ public void setName(String name) {
this.name = name;
}

public void setType(String type) {
public void setType(PageType type) {
this.type = type;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 io.gravitee.repository.management.model;

/**
* @author Ludovic Dussart (ludovic.dussart at gmail.com)
* Managed types for page documentation
*
*/
public enum PageType {

MARKDOWN,
RAML,
SWAGGER

}

0 comments on commit 597e42e

Please sign in to comment.