com.atlassian.confluence.hosted
Class SpaceGroupPermission

java.lang.Object
  extended by com.atlassian.confluence.hosted.SpaceGroupPermission

public class SpaceGroupPermission
extends java.lang.Object

Represents a permission for a SpaceGroup.


Field Summary
static java.lang.String ADMINISTER_PERMISSION
           
static java.lang.String VIEW_PERMISSION
           
 
Constructor Summary
SpaceGroupPermission()
           
SpaceGroupPermission(SpaceGroup spaceGroup, java.lang.String permType, ConfluenceUser user, java.lang.String group)
           
SpaceGroupPermission(SpaceGroup spaceGroup, java.lang.String permType, java.lang.String userName, java.lang.String group)
          Deprecated. since 5.2. See SpaceGroupPermission(SpaceGroup, String, ConfluenceUser, String)
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getGroupName()
           
 long getId()
           
 SpaceGroup getSpaceGroup()
           
 long getSpaceGroupId()
           
 java.lang.String getType()
           
 java.lang.String getUserName()
          Deprecated. since 5.2. See getUserSubject()
 ConfluenceUser getUserSubject()
           
 int hashCode()
           
 void setGroupName(java.lang.String groupName)
           
 void setId(long id)
           
 void setSpaceGroup(SpaceGroup spaceGroup)
           
 void setType(java.lang.String type)
           
 void setUserName(java.lang.String userName)
          Deprecated. since 5.2. See setUserSubject(ConfluenceUser)
 void setUserSubject(ConfluenceUser userSubject)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW_PERMISSION

public static final java.lang.String VIEW_PERMISSION
See Also:
Constant Field Values

ADMINISTER_PERMISSION

public static final java.lang.String ADMINISTER_PERMISSION
See Also:
Constant Field Values
Constructor Detail

SpaceGroupPermission

public SpaceGroupPermission()

SpaceGroupPermission

@Deprecated
public SpaceGroupPermission(SpaceGroup spaceGroup,
                                       java.lang.String permType,
                                       java.lang.String userName,
                                       java.lang.String group)
Deprecated. since 5.2. See SpaceGroupPermission(SpaceGroup, String, ConfluenceUser, String)

Parameters:
spaceGroup -
permType -
userName -
group -

SpaceGroupPermission

public SpaceGroupPermission(SpaceGroup spaceGroup,
                            java.lang.String permType,
                            ConfluenceUser user,
                            java.lang.String group)
Method Detail

getId

public long getId()

setId

public void setId(long id)

getSpaceGroup

public SpaceGroup getSpaceGroup()

setSpaceGroup

public void setSpaceGroup(SpaceGroup spaceGroup)

getSpaceGroupId

public long getSpaceGroupId()

getUserName

@Deprecated
public java.lang.String getUserName()
Deprecated. since 5.2. See getUserSubject()

Returns:

setUserName

@Deprecated
public void setUserName(java.lang.String userName)
Deprecated. since 5.2. See setUserSubject(ConfluenceUser)

Parameters:
userName -

setUserSubject

public void setUserSubject(ConfluenceUser userSubject)
Since:
5.2

getUserSubject

public ConfluenceUser getUserSubject()
Since:
5.2

getGroupName

public java.lang.String getGroupName()

setGroupName

public void setGroupName(java.lang.String groupName)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.