diff options
author | James Moger <james.moger@gitblit.com> | 2013-05-30 23:13:48 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-05-30 23:13:48 -0400 |
commit | 79d3240ea489067f3eb1af5e535b3687c507a249 (patch) | |
tree | 206ad6116ba02e837637f8f9c2b832ca0198408a /src/main/java/com/gitblit/models/UserRepositoryPreferences.java | |
parent | e17926272c849c920650b259107a41ca69046900 (diff) | |
download | gitblit-79d3240ea489067f3eb1af5e535b3687c507a249.tar.gz gitblit-79d3240ea489067f3eb1af5e535b3687c507a249.zip |
Added simple star/unstar function
Diffstat (limited to 'src/main/java/com/gitblit/models/UserRepositoryPreferences.java')
-rw-r--r-- | src/main/java/com/gitblit/models/UserRepositoryPreferences.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/models/UserRepositoryPreferences.java b/src/main/java/com/gitblit/models/UserRepositoryPreferences.java new file mode 100644 index 00000000..bc3a1845 --- /dev/null +++ b/src/main/java/com/gitblit/models/UserRepositoryPreferences.java @@ -0,0 +1,40 @@ +/* + * Copyright 2013 gitblit.com. + * + * 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 com.gitblit.models; + +import java.io.Serializable; + +/** + * User repository preferences. + * + * @author James Moger + * + */ +public class UserRepositoryPreferences implements Serializable { + + private static final long serialVersionUID = 1L; + + public String username; + + public String repositoryName; + + public boolean starred; + + @Override + public String toString() { + return username + ":" + repositoryName; + } +} |