com.atlassian.jira.sharing
Class SharedEntity.SharePermissions

java.lang.Object
  extended by com.atlassian.jira.sharing.SharedEntity.SharePermissions
All Implemented Interfaces:
Iterable<SharePermission>
Enclosing interface:
SharedEntity

@Immutable
public static final class SharedEntity.SharePermissions
extends Object
implements Iterable<SharePermission>

Encapsulates the permissions that a SharedEntity has.

Since:
v3.13

Field Summary
static SharedEntity.SharePermissions GLOBAL
           
static SharedEntity.SharePermissions PRIVATE
           
 
Constructor Summary
SharedEntity.SharePermissions(Set<? extends SharePermission> permissions)
           
 
Method Summary
 boolean equals(Object obj)
           
 Set<SharePermission> getPermissionSet()
           
 int hashCode()
           
 boolean isEmpty()
           
 boolean isGlobal()
           
 boolean isPrivate()
           
 Iterator<SharePermission> iterator()
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GLOBAL

public static final SharedEntity.SharePermissions GLOBAL

PRIVATE

public static final SharedEntity.SharePermissions PRIVATE
Constructor Detail

SharedEntity.SharePermissions

public SharedEntity.SharePermissions(Set<? extends SharePermission> permissions)
Method Detail

iterator

public Iterator<SharePermission> iterator()
Specified by:
iterator in interface Iterable<SharePermission>

isGlobal

public boolean isGlobal()

isPrivate

public boolean isPrivate()

isEmpty

public boolean isEmpty()

size

public int size()

getPermissionSet

public Set<SharePermission> getPermissionSet()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2013 Atlassian. All Rights Reserved.