com.jamasoftware.contour.ws.v3.domain
Class WsPermissions

java.lang.Object
  extended by com.jamasoftware.contour.ws.v3.domain.WsPermissions

public class WsPermissions
extends java.lang.Object

This object is used to get the permissions of a user in relation to a specific element.

Author:
Dylan

Constructor Summary
WsPermissions()
           
 
Method Summary
 java.lang.Integer getRefId()
          Gets the reference id of the object.
 java.lang.Integer getScopeId()
          Gets the scope of the object.
 WsUser getUser()
          Gets the user that has these permissions.
 boolean isManage()
          Does the user have management permissions for this object?
 boolean isRead()
          Does the user have read permissions for this object?
 boolean isWrite()
          Does the user have write permissions for this object?
 void setManage(boolean manage)
           
 void setRead(boolean read)
           
 void setRefId(java.lang.Integer refId)
           
 void setScopeId(java.lang.Integer scopeId)
           
 void setUser(WsUser user)
           
 void setWrite(boolean write)
           
 java.lang.String toString()
          Gets a string representation of this permissions object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsPermissions

public WsPermissions()
Method Detail

getUser

public WsUser getUser()
Gets the user that has these permissions.

Returns:
user

setUser

public void setUser(WsUser user)

getScopeId

public java.lang.Integer getScopeId()
Gets the scope of the object.

Returns:
scope
See Also:
WsScope

setScopeId

public void setScopeId(java.lang.Integer scopeId)

getRefId

public java.lang.Integer getRefId()
Gets the reference id of the object.

Returns:
reference id

setRefId

public void setRefId(java.lang.Integer refId)

isRead

public boolean isRead()
Does the user have read permissions for this object?

Returns:
read permissions

setRead

public void setRead(boolean read)

isWrite

public boolean isWrite()
Does the user have write permissions for this object?

Returns:
write permissions

setWrite

public void setWrite(boolean write)

isManage

public boolean isManage()
Does the user have management permissions for this object?

Returns:
management permissions

setManage

public void setManage(boolean manage)

toString

public java.lang.String toString()
Gets a string representation of this permissions object.

Overrides:
toString in class java.lang.Object
Returns:
String


Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.