This repository has been archived by the owner on Aug 20, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48f140b
commit 5b79dac
Showing
25 changed files
with
1,498 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
...tee-management-api-model/src/main/java/io/gravitee/management/model/ImportPageEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/** | ||
* 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.management.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Size; | ||
import java.util.Date; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author Nicolas GERAUD (nicolas.geraud at graviteesource.com) | ||
* @author GraviteeSource Team | ||
*/ | ||
public class ImportPageEntity { | ||
|
||
@NotNull | ||
private PageType type; | ||
private boolean published; | ||
private String lastContributor; | ||
private PageSourceEntity source; | ||
private Map<String, String> configuration; | ||
@JsonProperty("excluded_groups") | ||
private List<String> excludedGroups; | ||
|
||
public PageType getType() { | ||
return type; | ||
} | ||
|
||
public void setType(PageType type) { | ||
this.type = type; | ||
} | ||
|
||
public boolean isPublished() { | ||
return published; | ||
} | ||
|
||
public void setPublished(boolean published) { | ||
this.published = published; | ||
} | ||
|
||
public String getLastContributor() { | ||
return lastContributor; | ||
} | ||
|
||
public void setLastContributor(String lastContributor) { | ||
this.lastContributor = lastContributor; | ||
} | ||
|
||
public PageSourceEntity getSource() { | ||
return source; | ||
} | ||
|
||
public void setSource(PageSourceEntity source) { | ||
this.source = source; | ||
} | ||
|
||
public Map<String, String> getConfiguration() { | ||
return configuration; | ||
} | ||
|
||
public void setConfiguration(Map<String, String> configuration) { | ||
this.configuration = configuration; | ||
} | ||
|
||
public List<String> getExcludedGroups() { | ||
return excludedGroups; | ||
} | ||
|
||
public void setExcludedGroups(List<String> excludedGroups) { | ||
this.excludedGroups = excludedGroups; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
final StringBuilder sb = new StringBuilder("Page{"); | ||
sb.append("type='").append(type).append('\''); | ||
sb.append(", published='").append(published).append('\''); | ||
sb.append(", lastContributor='").append(lastContributor).append('\''); | ||
sb.append('}'); | ||
return sb.toString(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...n/java/io/gravitee/management/model/descriptor/GraviteeDescriptorDocumentationEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* 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.management.model.descriptor; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author Nicolas GERAUD (nicolas.geraud at graviteesource.com) | ||
* @author GraviteeSource Team | ||
*/ | ||
public class GraviteeDescriptorDocumentationEntity { | ||
private List<GraviteeDescriptorPageEntity> pages; | ||
|
||
public List<GraviteeDescriptorPageEntity> getPages() { | ||
return pages; | ||
} | ||
|
||
public void setPages(List<GraviteeDescriptorPageEntity> pages) { | ||
this.pages = pages; | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...model/src/main/java/io/gravitee/management/model/descriptor/GraviteeDescriptorEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* 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.management.model.descriptor; | ||
|
||
/** | ||
* @author Nicolas GERAUD (nicolas.geraud at graviteesource.com) | ||
* @author GraviteeSource Team | ||
*/ | ||
public class GraviteeDescriptorEntity { | ||
private int version; | ||
private GraviteeDescriptorDocumentationEntity documentation; | ||
|
||
public int getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(int version) { | ||
this.version = version; | ||
} | ||
|
||
public GraviteeDescriptorDocumentationEntity getDocumentation() { | ||
return documentation; | ||
} | ||
|
||
public void setDocumentation(GraviteeDescriptorDocumentationEntity documentation) { | ||
this.documentation = documentation; | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...l/src/main/java/io/gravitee/management/model/descriptor/GraviteeDescriptorPageEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/** | ||
* 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.management.model.descriptor; | ||
|
||
/** | ||
* @author Nicolas GERAUD (nicolas.geraud at graviteesource.com) | ||
* @author GraviteeSource Team | ||
*/ | ||
public class GraviteeDescriptorPageEntity { | ||
private String src; | ||
private String dest; | ||
private String name; | ||
private boolean homepage; | ||
|
||
public String getSrc() { | ||
return src; | ||
} | ||
|
||
public void setSrc(String src) { | ||
this.src = src; | ||
} | ||
|
||
public String getDest() { | ||
return dest; | ||
} | ||
|
||
public void setDest(String dest) { | ||
this.dest = dest; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public boolean isHomepage() { | ||
return homepage; | ||
} | ||
|
||
public void setHomepage(boolean homepage) { | ||
this.homepage = homepage; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.