2
* Copyright 2005-2012 Restlet S.A.S.
4
* The contents of this file are subject to the terms of one of the following
5
* open source licenses: Apache 2.0 or LGPL 3.0 or LGPL 2.1 or CDDL 1.0 or EPL
6
* 1.0 (the "Licenses"). You can select the license that you prefer but you may
7
* not use this file except in compliance with one of these Licenses.
9
* You can obtain a copy of the Apache 2.0 license at
10
* http://www.opensource.org/licenses/apache-2.0
12
* You can obtain a copy of the LGPL 3.0 license at
13
* http://www.opensource.org/licenses/lgpl-3.0
15
* You can obtain a copy of the LGPL 2.1 license at
16
* http://www.opensource.org/licenses/lgpl-2.1
18
* You can obtain a copy of the CDDL 1.0 license at
19
* http://www.opensource.org/licenses/cddl1
21
* You can obtain a copy of the EPL 1.0 license at
22
* http://www.opensource.org/licenses/eclipse-1.0
24
* See the Licenses for the specific language governing permissions and
25
* limitations under the Licenses.
27
* Alternatively, you can obtain a royalty free commercial license with less
28
* limitations, transferable or non-transferable, directly at
29
* http://www.restlet.com/products/restlet-framework
31
* Restlet is a registered trademark of Restlet S.A.S.
34
package org.restlet.example.book.rest.ch7;
36
import java.util.ArrayList;
37
import java.util.List;
42
* @author Jerome Louvel
48
private String fullName;
52
private String password;
54
private List<Bookmark> bookmarks;
56
public Bookmark getBookmark(String uri) {
57
for (final Bookmark bookmark : getBookmarks()) {
58
if (bookmark.getUri().equals(uri)) {
67
* @return the modifiable list of bookmarks
69
public List<Bookmark> getBookmarks() {
70
if (this.bookmarks == null) {
71
this.bookmarks = new ArrayList<Bookmark>();
73
return this.bookmarks;
79
public String getEmail() {
84
* @return the fullName
86
public String getFullName() {
93
public String getName() {
98
* @return the password
100
public String getPassword() {
101
return this.password;
108
public void setEmail(String email) {
114
* the fullName to set
116
public void setFullName(String fullName) {
117
this.fullName = fullName;
124
public void setName(String name) {
130
* the password to set
132
public void setPassword(String password) {
133
this.password = password;