

|
Valid XHTML v1.0
Author Profile
Top Authors
Log In to set widget preferences
| Author | # |
|---|---|
|
185 |
|
148 |
Anonymous User
|
49 |
|
28 |
Kimberly Hieber
|
27 |
|
23 |
Note: some conversations may be proxied or secured, thereby causing # differences
Subscribe
Partners
Recent
Tags
Log In to set widget preferences
Recent
Log In to set widget preferences
Most Active
Log In to set widget preferences
Popular
Log In to set widget preferences
|
|
Basic user service security
belongs to Java Toolkit Info ![]() by Jonathan Bell on 2008-09-30 05:09 PM read 116 times |
I recently added support for very basic user service security. The user service now supports Group and Func entities for assigning security roles to users. Currently, the only supported Group/Role is "Admins". This group gives users full access to every user profile in the system.
The toolkit has been updated to take advantage of this new feature. The User object now has a property groups which is a list of all groups a user is assigned to. Since there is only 1 supported group currently, the way to make a user and admin would be:
user.setGroups(Collections.singletonList("Admins"));
Likewise, to stop a user from being an admin:
user.getGroups.clear();
Log In to Reply |
Log In to Copy |
Tell a Friend
|
Trackback URL: http://www.kalivo.com/trackback/1736-basic-user-service-security
|
|
re: Basic user service security
by terry on 2008-10-02 04:34 PM read 35 times |
this is just a test reply. trying to recreate brittain's explosion.
blah.
maybe i should lock it after all.
blah.
bored.
waiting4draft.
roar.
moo.
ruff.
meow.
woof.
ribbit.
i bet you get an email from this, jbell. sorry about that.
Log In to Reply | Log In to Copy | Tell a Friend |
Trackback URL: http://www.kalivo.com/trackback/1747-re-basic-user-service-security
