com.objectplanet.survey.event.events
Class NewUserPermissionEvent

java.lang.Object
  extended by com.objectplanet.survey.event.Event
      extended by com.objectplanet.survey.event.events.AdminEvent
          extended by com.objectplanet.survey.event.events.NewUserPermissionEvent

public class NewUserPermissionEvent
extends AdminEvent

NOT YET USED. Represents an event that is fired when a new permission is added for a user.

Author:
Torgeir Lund
Created:
Aug 02, 2016

Nested Class Summary
 
Nested classes/interfaces inherited from class com.objectplanet.survey.event.Event
Event.NonVetoable
 
Constructor Summary
NewUserPermissionEvent(IEventListener source)
          Constructor
 
Method Summary
 int getAccessType()
          Get the access type of the permission just added.
 long getResourceId()
          Get the resource id associated with the new permission created.
 int getResourceType()
          Get the resource type of the resource associated with the new permission created.
 void setAccessType(int accessType)
          Set the access type of the permission just added.
 void setResourceId(long resourceId)
          Set the resource id associated with the new permission created.
 void setResourceType(int resourceType)
          Get the resource type of the resource id associated with the new permission created.
 
Methods inherited from class com.objectplanet.survey.event.events.AdminEvent
getLogin, getUserId, setLogin, setUserId
 
Methods inherited from class com.objectplanet.survey.event.Event
getSource, isVetoed, paramString, toString, veto
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewUserPermissionEvent

public NewUserPermissionEvent(IEventListener source)
Constructor

Parameters:
source - The event source.
Method Detail

getResourceId

public long getResourceId()
Get the resource id associated with the new permission created.

Returns:

setResourceId

public void setResourceId(long resourceId)
Set the resource id associated with the new permission created.

Parameters:
resourceId - Id of the resource

getResourceType

public int getResourceType()
Get the resource type of the resource associated with the new permission created.

Returns:
The resource type

setResourceType

public void setResourceType(int resourceType)
Get the resource type of the resource id associated with the new permission created.

Parameters:
resourceType - The resource type

getAccessType

public int getAccessType()
Get the access type of the permission just added.

Returns:
The access type

setAccessType

public void setAccessType(int accessType)
Set the access type of the permission just added.

Parameters:
accessType - The access type

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016