com.cassinidivision.oce.users
Class U_Actor

java.lang.Object
  extended bycom.webobjects.eocontrol.EOCustomObject
      extended bycom.webobjects.eocontrol.EOGenericRecord
          extended bycom.cassinidivision.oce.users.base._U_Actor
              extended bycom.cassinidivision.oce.users.U_Actor
All Implemented Interfaces:
_EOPrivateMemento, EODeferredFaulting, EOEnterpriseObject, EOFaulting, EOKeyValueCoding, EOKeyValueCoding._BestBindingCreation._ForwardingBindingCheck, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCodingAdditions, EORelationshipManipulation, EOValidation, NSKeyValueCoding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._ReflectionKeyBindingCreation.Callback, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable
Direct Known Subclasses:
com.cassinidivision.oce.users.base._U_DataFeed, com.cassinidivision.oce.users.base._U_User

public class U_Actor
extends com.cassinidivision.oce.users.base._U_Actor

Abstract class for representing actors or "agents" who interact with a system.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.eocontrol.EOGenericRecord
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding
 
Nested classes inherited from class com.webobjects.eocontrol.EOCustomObject
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCodingAdditions
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCoding
EOKeyValueCoding._BestBindingCreation, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCoding._StoredForwardingBinding
 
Nested classes inherited from class com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Nested classes inherited from class com.webobjects.eocontrol._EOPrivateMemento
_EOPrivateMemento.DefaultImplementation
 
Field Summary
 
Fields inherited from class com.webobjects.eocontrol.EOGenericRecord
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
U_Actor()
           
 
Method Summary
static U_Actor actorWithUserNamePasswordEditingContext(String aUserName, String aPassword, EOEditingContext anEditingContext)
          Retrieve an actor matching the username and password supplied.
 NSArray allPermissions()
          Retrieve all the permission instances granted to the current actor.
 String coverPassword()
          Implemented for internal reasons (currently returns a blank string).
 boolean currentlyActive()
          Determines if the actor is registered active or disabled.
 boolean hasPermissionWithName(String name)
          Determine if this actor has been granted with the named permission.
 boolean hasRoleWithName(String aName)
          Determine if this actor is associated with the named role.
 boolean isTheSameActor(U_Actor actor)
          Compare the current actor instance with another.
 boolean ownLock(U_Lock aLock)
          Uncover if the current actor owns the requested lock (convenience method).
 void setCoverPassword(String value)
          Specify an actor's unencrypted password (which will be stored encrypted).
 void setCurrentlyActive(boolean value)
          Set the status of the actor (active or disabled).
 
Methods inherited from class com.cassinidivision.oce.users.base._U_Actor
addToLocks, addToRoles, className, isActive, locks, name, password, removeFromLocks, removeFromRoles, roles, setClassName, setIsActive, setLocks, setName, setPassword, setRoles, setUserName, userName
 
Methods inherited from class com.webobjects.eocontrol.EOGenericRecord
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _otherStorageBinding, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation
 
Methods inherited from class com.webobjects.eocontrol.EOCustomObject
__classDescription, __clearPendingChanges, __editingContext, __globalID, __hasAuxillaryObservers, __hasPendingChanges, __hasPendingUpdate, __isInitialized, __isPendingDeletion, __isPendingInsertion, __isShared, __lastSnapshot, __originalSnapshot, __retainCount, __setAuxillaryObservers, __setEditingContext, __setGlobalID, __setInitialized, __setLastSnapshot, __setOriginalSnapshot, __setPendingDeletion, __setPendingInsertion, __setPendingUpdate, __setRetainCount, __setShared, _createKeyGetBindingForKey, _createKeySetBindingForKey, _createStoredKeyGetBindingForKey, _createStoredKeySetBindingForKey, _fieldKeyBinding, _forwardingBindingNeededForClass, _methodKeyGetBinding, _methodKeySetBinding, addObjectToBothSidesOfRelationshipWithKey, addObjectToPropertyWithKey, allPropertyKeys, attributeKeys, awakeFromClientUpdate, awakeFromFetch, awakeFromInsertion, canAccessFieldsDirectly, changesFromSnapshot, classDescriptionForDestinationKey, clearFault, clearProperties, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, faultHandler, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hashCode, inverseForRelationshipKey, invokeRemoteMethod, isFault, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey, shouldUseStoredAccessors, snapshot, storedValueForKey, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, toManyRelationshipKeys, toOneRelationshipKeys, toString, turnIntoFault, unableToSetNullForKey, updateFromSnapshot, userPresentableDescription, validateClientUpdate, validateForDelete, validateForInsert, validateForSave, validateForUpdate, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath, valuesForKeys, valuesForKeysWithMapping, willChange, willRead, willReadRelationship
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

U_Actor

public U_Actor()
Method Detail

actorWithUserNamePasswordEditingContext

public static U_Actor actorWithUserNamePasswordEditingContext(String aUserName,
                                                              String aPassword,
                                                              EOEditingContext anEditingContext)
Retrieve an actor matching the username and password supplied.

Parameters:
aUserName - The actor's login name.
aPassword - The actor's password.
anEditingContext - The editing context to fetch the actor instance within.
Returns:
The first actor EO instance found matching the details, or null if none matched.

coverPassword

public String coverPassword()
Implemented for internal reasons (currently returns a blank string). Should not be called directly.

Returns:
String

setCoverPassword

public void setCoverPassword(String value)
Specify an actor's unencrypted password (which will be stored encrypted).

Parameters:
value - The unencrypted password value.

hasRoleWithName

public boolean hasRoleWithName(String aName)
Determine if this actor is associated with the named role.

Parameters:
aName - The name of a role.
Returns:
true if the actor is associated with the role, false otherwise.

hasPermissionWithName

public boolean hasPermissionWithName(String name)
Determine if this actor has been granted with the named permission.

Parameters:
name - The permission name.
Returns:
true if the actor has been granted permission, false otherwise.

allPermissions

public NSArray allPermissions()
Retrieve all the permission instances granted to the current actor.

Returns:
Array of U_Permission instances.

currentlyActive

public boolean currentlyActive()
Determines if the actor is registered active or disabled.

Returns:
true if the actor is active, false otherwise.

setCurrentlyActive

public void setCurrentlyActive(boolean value)
Set the status of the actor (active or disabled).

Parameters:
value - The active status (true or false).

ownLock

public boolean ownLock(U_Lock aLock)
Uncover if the current actor owns the requested lock (convenience method).

Parameters:
aLock - A lock instance.
Returns:
true if the actor owns the lock, false otherwise.

isTheSameActor

public boolean isTheSameActor(U_Actor actor)
Compare the current actor instance with another.

Parameters:
actor - Another actor instance.
Returns:
true if the instances match (their global IDs are identical), false otherwise.