|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.confluence.security.ContentPermissionSet
public class ContentPermissionSet
| Constructor Summary | |
|---|---|
ContentPermissionSet()
|
|
ContentPermissionSet(java.lang.String type,
ContentEntityObject owningContent)
|
|
| Method Summary | |
|---|---|
void |
addContentPermission(ContentPermission contentPermission)
|
boolean |
contains(ContentPermission contentPermission)
|
boolean |
containsAll(ContentPermissionSet permissionSet)
|
java.util.Collection<ContentPermission> |
getAllExcept(java.util.Collection<ContentPermission> exclusions)
Retrieve all the ContentPermissions in this set that do not exist in the
given collection. |
java.util.List<java.lang.String> |
getGroupNames()
Returns the names of all groups in this Content Permission Set as a list of Strings. |
ContentEntityObject |
getOwningContent()
|
java.lang.String |
getType()
|
java.util.List<com.atlassian.sal.api.user.UserKey> |
getUserKeys()
Returns the names of all users in this Content Permission Set as a list of Strings. |
java.util.List<java.lang.String> |
getUserNames()
Deprecated. since 5.3 Use #getUserKeys) |
boolean |
isEmpty()
|
boolean |
isPermitted(com.atlassian.user.User user)
|
java.util.Iterator<ContentPermission> |
iterator()
|
void |
removeContentPermission(ContentPermission contentPermission)
Remove the given content permission from this set. |
void |
setOwningContent(ContentEntityObject owningContent)
Hibernate setter. |
void |
setType(java.lang.String type)
|
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class com.atlassian.core.bean.EntityObject |
|---|
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContentPermissionSet()
public ContentPermissionSet(java.lang.String type,
ContentEntityObject owningContent)
| Method Detail |
|---|
public void addContentPermission(ContentPermission contentPermission)
public void removeContentPermission(ContentPermission contentPermission)
public boolean isPermitted(com.atlassian.user.User user)
public java.lang.String getType()
public void setType(java.lang.String type)
public boolean isEmpty()
public int size()
public boolean contains(ContentPermission contentPermission)
public boolean containsAll(ContentPermissionSet permissionSet)
public ContentEntityObject getOwningContent()
public void setOwningContent(ContentEntityObject owningContent)
public java.util.Iterator<ContentPermission> iterator()
iterator in interface java.lang.Iterable<ContentPermission>ContentPermissions in the set.public java.util.List<java.lang.String> getGroupNames()
Strings.
Strings.@Deprecated public java.util.List<java.lang.String> getUserNames()
#getUserKeys)
Strings.
public java.util.List<com.atlassian.sal.api.user.UserKey> getUserKeys()
Strings.
public java.util.Collection<ContentPermission> getAllExcept(java.util.Collection<ContentPermission> exclusions)
ContentPermissions in this set that do not exist in the
given collection. The comparison is done according to Comparable.compareTo(Object).
exclusions - a collection of ContentPermissions
ContentPermissions that are in this object and not given collection.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||