Synergy Home Page

au.edu.swin.synergy.plugin.userdb.event
Class BUpdatePrivilegedCE

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--au.edu.swin.synergy.kernel.BCommandEvent
              |
              +--au.edu.swin.synergy.plugin.userdb.event.BUserDBCE
                    |
                    +--au.edu.swin.synergy.plugin.userdb.event.BAdminCE
                          |
                          +--au.edu.swin.synergy.plugin.userdb.event.BUpdatePrivilegedCE
Direct Known Subclasses:
BOwnerCE, BUpdateGroupCE

public abstract class BUpdatePrivilegedCE
extends BAdminCE

This is the super class for all events doing anything at all with any kind of privileged item. This includes both BUsers and BGroups.

Author:
Tristan Austin Please complete these missing tags
Copyright Belongs To:
 
See Also:
Serialized Form

Field Summary
protected  BPrivileged item
          The user to be updated
static int kDeleteSelf
          The user has tried to delete themselves
static int kFailed
          Indicates failure
static int kInvalidPrivilege
          Indicates the privilege is invalid
static int kLowPrivilege
          Indicates the user trying to update doesn't have the appropriate privilages to make the attempted update
static int kNameTooShort
          Indicates the name is too short
static int kNotFound
          Indicates that the user is was not found to update
static int kSuccess
          Indicates success
 
Fields inherited from class au.edu.swin.synergy.kernel.BCommandEvent
connectionID, index, kBroadcast, kClient, kClientDone, kLocal, kServer, kServerDone, networkStatus, serialVersionUID
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BUpdatePrivilegedCE(Object source, BPrivileged newItem, BCommandComplete complete)
          Please complete the missing tags for BTestCE
 
Method Summary
 BPrivileged getItem()
          Please complete the missing tags for getMessage
 int getStatus()
          Gets the status of the update to the given value.
 void setItem(BPrivileged newItem)
          Please complete the missing tags for setUsers
 void setStatus(int status)
          Sets the status of the update to the given value.
 
Methods inherited from class au.edu.swin.synergy.kernel.BCommandEvent
decrementThreadCount, doComplete, doInit, getAutoComplete, getCompletionObject, getCompletionStatus, getConnectionID, getIndex, getNetworkStatus, getPipe, getUndoable, setAutoComplete, setCompletionObject, setCompletionStatus, setConnectionID, setIndex, setNetworkStatus, setPipe, setThreadCount, setUndoable
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kSuccess

public static final int kSuccess
Indicates success

kFailed

public static final int kFailed
Indicates failure

kLowPrivilege

public static final int kLowPrivilege
Indicates the user trying to update doesn't have the appropriate privilages to make the attempted update

kNotFound

public static final int kNotFound
Indicates that the user is was not found to update

kNameTooShort

public static final int kNameTooShort
Indicates the name is too short

kInvalidPrivilege

public static final int kInvalidPrivilege
Indicates the privilege is invalid

kDeleteSelf

public static final int kDeleteSelf
The user has tried to delete themselves

item

protected BPrivileged item
The user to be updated
Constructor Detail

BUpdatePrivilegedCE

public BUpdatePrivilegedCE(Object source,
                           BPrivileged newItem,
                           BCommandComplete complete)
Please complete the missing tags for BTestCE
Parameters:
-  
Throws:
-  
Method Detail

getItem

public BPrivileged getItem()
Please complete the missing tags for getMessage
Parameters:
-  
Returns:
 
Throws:
-  
Pre Condition:
 
Post Condition:
 

setItem

public void setItem(BPrivileged newItem)
Please complete the missing tags for setUsers
Parameters:
-  
Returns:
 
Throws:
-  
Pre Condition:
 
Post Condition:
 

getStatus

public int getStatus()
Gets the status of the update to the given value.
Parameters:
-  
Returns:
The status kSuccess, or kFailure Please complete the missing tags for getStatus
Pre Condition:
 
Post Condition:
 

setStatus

public void setStatus(int status)
Sets the status of the update to the given value.
Parameters:
status - kSuccess, or kFailure Please complete the missing tags for setStatus
Returns:
 
Pre Condition:
 
Post Condition:
 

Synergy Home Page