public class ContentPermissionSet extends com.atlassian.core.bean.EntityObject implements Iterable<ContentPermission>, Serializable
| Constructor and Description |
|---|
ContentPermissionSet() |
ContentPermissionSet(String type,
ContentEntityObject owningContent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContentPermission(ContentPermission contentPermission) |
boolean |
contains(ContentPermission contentPermission) |
boolean |
containsAll(ContentPermissionSet permissionSet) |
Collection<ContentPermission> |
getAllExcept(Collection<ContentPermission> exclusions)
Retrieve all the
ContentPermissions in this set that do not exist in the
given collection. |
List<String> |
getGroupNames()
Returns the names of all groups in this Content Permission Set as a list of
Strings. |
ContentEntityObject |
getOwningContent() |
String |
getType() |
List<com.atlassian.sal.api.user.UserKey> |
getUserKeys()
Returns the names of all users in this Content Permission Set as a list of
Strings. |
List<String> |
getUserNames()
Deprecated.
since 5.3 Use
#getUserKeys) |
boolean |
isEmpty() |
boolean |
isPermitted(com.atlassian.user.User user) |
Iterator<ContentPermission> |
iterator() |
void |
removeContentPermission(ContentPermission contentPermission)
Remove the given content permission from this set.
|
void |
setOwningContent(ContentEntityObject owningContent)
Hibernate setter.
|
void |
setType(String type) |
int |
size() |
String |
toString() |
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDatefinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ContentPermissionSet()
public ContentPermissionSet(String type, ContentEntityObject owningContent)
public void addContentPermission(ContentPermission contentPermission)
public void removeContentPermission(ContentPermission contentPermission)
public boolean isPermitted(com.atlassian.user.User user)
public String getType()
public void setType(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 Iterator<ContentPermission> iterator()
iterator in interface Iterable<ContentPermission>ContentPermissions in the set.public List<String> getGroupNames()
Strings.Strings.@Deprecated public List<String> getUserNames()
#getUserKeys)Strings.public List<com.atlassian.sal.api.user.UserKey> getUserKeys()
Strings.public Collection<ContentPermission> getAllExcept(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 ContentPermissionsContentPermissions that are in this object and not given collection.Copyright © 2003–2015 Atlassian. All rights reserved.