com.cassinidivision.oce.users
Class U_User

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
                  extended bycom.cassinidivision.oce.users.base._U_User
                      extended bycom.cassinidivision.oce.users.U_User
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

public class U_User
extends com.cassinidivision.oce.users.base._U_User

Encapsulates the notion of human (or manual) system users, what roles/permissions/behaviour they exert over the system, and related matters.

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_User()
           
 
Method Summary
static NSArray allDisabledUsersInEditingContext(EOEditingContext anEditingContext)
          Returns all currently disabled users in alphabetical name order.
static NSArray allValidUsersInEditingContext(EOEditingContext anEditingContext)
          Returns all active users in alphabetical name order.
 void awakeFromInsertion(EOEditingContext ec)
           
 void clearLocks()
          Clear all known locks for the current user.
 void lockObject(EOEnterpriseObject anObject)
          Lock an enterprise object, associating the lock with the current user instance.
 void unlockObject(EOEnterpriseObject anObject)
          Attempt to unlock an enterprise object, if the lock has been registered with the current user.
 
Methods inherited from class com.cassinidivision.oce.users.base._U_User
email, setEmail
 
Methods inherited from class com.cassinidivision.oce.users.U_Actor
actorWithUserNamePasswordEditingContext, allPermissions, coverPassword, currentlyActive, hasPermissionWithName, hasRoleWithName, isTheSameActor, ownLock, setCoverPassword, setCurrentlyActive
 
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, 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_User

public U_User()
Method Detail

allValidUsersInEditingContext

public static NSArray allValidUsersInEditingContext(EOEditingContext anEditingContext)
Returns all active users in alphabetical name order.

Parameters:
anEditingContext - The editing context used to fetch the users.
Returns:
An array of user instances.

allDisabledUsersInEditingContext

public static NSArray allDisabledUsersInEditingContext(EOEditingContext anEditingContext)
Returns all currently disabled users in alphabetical name order.

Parameters:
anEditingContext - The editing context used to fetch the users.
Returns:
An array of user instances.

awakeFromInsertion

public void awakeFromInsertion(EOEditingContext ec)

clearLocks

public void clearLocks()
Clear all known locks for the current user.


lockObject

public void lockObject(EOEnterpriseObject anObject)
Lock an enterprise object, associating the lock with the current user instance.

Parameters:
anObject - The enterprise object to lock.

unlockObject

public void unlockObject(EOEnterpriseObject anObject)
Attempt to unlock an enterprise object, if the lock has been registered with the current user. Throws a RuntimeException instance if the EO in question was locked by someone else.

Parameters:
anObject - The enterprise object in question.