Package | Description |
---|---|
org.gatein.api |
The Portal Public API classes
|
org.gatein.api.page | |
org.gatein.api.security | |
org.gatein.api.site |
Modifier and Type | Method and Description |
---|---|
boolean |
Portal.hasPermission(User user,
Permission permission)
Returns true if the given user has the rights represented by the permission
|
Modifier and Type | Method and Description |
---|---|
Permission |
Page.getAccessPermission()
The permissions that represents what users are allowed to access the page
|
Permission |
Page.getEditPermission()
The permissions that represents what users are allowed to modify the page
|
Modifier and Type | Method and Description |
---|---|
void |
Page.setAccessPermission(Permission permission)
Sets the access permission
|
void |
Page.setEditPermission(Permission permission)
Sets the edit permission
|
Modifier and Type | Method and Description |
---|---|
Permission |
Permission.addMembership(Membership membership)
Creates a new permission that includes all memberships of this permission and the specified membership
|
static Permission |
Permission.any(String... group)
Returns a permission where users with any membership type in the specified group can access the resource
|
static Permission |
Permission.everyone()
Returns a permission where everyone can access the resource (public)
|
Modifier and Type | Method and Description |
---|---|
Permission |
Site.getAccessPermission()
The permissions that represents what users are allowed to access the site
|
Permission |
Site.getEditPermission()
The permissions that represents what users are allowed to modify the site
|
Modifier and Type | Method and Description |
---|---|
void |
Site.setAccessPermission(Permission permission)
Changes the access permission for the site
|
void |
Site.setEditPermission(Permission permission)
Changes the edit permission for the site
|
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.