-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Showing
13 changed files
with
366 additions
and
50 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
27 changes: 27 additions & 0 deletions
27
src/main/java/com/viglet/shiohara/bean/security/ShConsoleSecurityBean.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,27 @@ | ||
package com.viglet.shiohara.bean.security; | ||
|
||
import java.util.Set; | ||
|
||
public class ShConsoleSecurityBean { | ||
|
||
private Set<String> shUsers; | ||
|
||
private Set<String> shGroups; | ||
|
||
public Set<String> getShUsers() { | ||
return shUsers; | ||
} | ||
|
||
public void setShUsers(Set<String> shUsers) { | ||
this.shUsers = shUsers; | ||
} | ||
|
||
public Set<String> getShGroups() { | ||
return shGroups; | ||
} | ||
|
||
public void setShGroups(Set<String> shGroups) { | ||
this.shGroups = shGroups; | ||
} | ||
|
||
} |
37 changes: 37 additions & 0 deletions
37
src/main/java/com/viglet/shiohara/bean/security/ShPageSecurityBean.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,37 @@ | ||
package com.viglet.shiohara.bean.security; | ||
|
||
import java.util.Set; | ||
|
||
public class ShPageSecurityBean { | ||
|
||
private boolean allowRegisterUser; | ||
|
||
private boolean allowGuestUser; | ||
|
||
private Set<String> shGroups; | ||
|
||
public boolean isAllowRegisterUser() { | ||
return allowRegisterUser; | ||
} | ||
|
||
public void setAllowRegisterUser(boolean allowRegisterUser) { | ||
this.allowRegisterUser = allowRegisterUser; | ||
} | ||
|
||
public boolean isAllowGuestUser() { | ||
return allowGuestUser; | ||
} | ||
|
||
public void setAllowGuestUser(boolean allowGuestUser) { | ||
this.allowGuestUser = allowGuestUser; | ||
} | ||
|
||
public Set<String> getShGroups() { | ||
return shGroups; | ||
} | ||
|
||
public void setShGroups(Set<String> shGroups) { | ||
this.shGroups = shGroups; | ||
} | ||
|
||
} |
25 changes: 12 additions & 13 deletions
25
src/main/java/com/viglet/shiohara/bean/security/ShSecurityBean.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 |
---|---|---|
@@ -1,26 +1,25 @@ | ||
package com.viglet.shiohara.bean; | ||
|
||
import java.util.Set; | ||
package com.viglet.shiohara.bean.security; | ||
|
||
public class ShSecurityBean { | ||
|
||
private Set<String> shUsers; | ||
private Set<String> shGroups; | ||
private ShConsoleSecurityBean console; | ||
|
||
private ShPageSecurityBean page; | ||
|
||
public Set<String> getShUsers() { | ||
return shUsers; | ||
public ShConsoleSecurityBean getConsole() { | ||
return console; | ||
} | ||
|
||
public void setShUsers(Set<String> shUsers) { | ||
this.shUsers = shUsers; | ||
public void setConsole(ShConsoleSecurityBean console) { | ||
this.console = console; | ||
} | ||
|
||
public Set<String> getShGroups() { | ||
return shGroups; | ||
public ShPageSecurityBean getPage() { | ||
return page; | ||
} | ||
|
||
public void setShGroups(Set<String> shGroups) { | ||
this.shGroups = shGroups; | ||
public void setPage(ShPageSecurityBean page) { | ||
this.page = page; | ||
} | ||
|
||
} |
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
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.