*** This class provides Binary Compatibility only, not Source Compatibility ***
Class DavPerson
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.sas.services.information.metadata.Metadata
com.sas.services.information.metadata.Folder
com.sas.services.information.metadata.DavPerson
- All Implemented Interfaces:
FolderInterface,IdentityInterface,MetadataInterface,PersonInterface,MutableContainerInterface,PublicObjectContainerInterface,PublicObjectInterface, com.sas.services.util.UpgradeInterface,com.sas.storage.editableproperties.LocalizableProperties,Serializable,Remote
@SASScope("ALL")
@BinaryCompatibilityOnly
public class DavPerson
extends Folder
implements PersonInterface, Serializable
DAV Smart object implementation for PersonInterface. Represents a user/person.
- Since:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class com.sas.services.information.metadata.Folder
CREATION_DATE, CURRENT_VERSION, MODIFIED_DATE, OLDEST_VERSION, REPOSITORY_CONTENT_MAPPINGFields inherited from class com.sas.services.information.metadata.Metadata
_actionInterfaces, _children, _isCompatible, _isDestroyPending, _isReadCompatible, _myRefreshInterval, _myState, _omrCreateDate, _omrModifyDate, _repository, _repositoryFlag, _repositoryObject, _treeRefreshTime, formats, gmtZone, OMSOBJ_STRING, REPOSITORY_DAV, REPOSITORY_LOMR, REPOSITORY_NONE, REPOSITORY_OMR, SLASHFields inherited from class java.rmi.server.RemoteObject
refFields inherited from interface com.sas.services.information.metadata.FolderInterface
FOLDER_TYPE_BIPFields inherited from interface com.sas.storage.editableproperties.LocalizableProperties
PROPERTY_DESCRIPTION, PROPERTY_NAMEFields inherited from interface com.sas.services.information.metadata.MetadataInterface
METADATA_STATE_DELETED, METADATA_STATE_DESTROYED, METADATA_STATE_NEW, METADATA_STATE_NORMAL, PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a new DavPerson.Creates a new DavPerson that incorporates the person object passed to the constructor.protectedCreates a new DavPerson that incorporates the person object passed to the constructor.protectedDavPerson(Class theClass) Creates a new DavPerson. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new email to a user's list of email instances.voidaddEmailAddress(String address) Add a new email address to a user's email address list.voidaddExternalIdentity(ExternalIdentityInterface externalIdentity) Add an external identity to the Identity.voidaddLocation(LocationInterface location) Add a location to the user's list of locations.voidaddLogin(LoginInterface login) Add a login to the Identity.voidAdd a phone number to the user's list.voidDelete Internal AccountList<MetadataInterface> Returns the list of objects this person has created.StringGet the identity's display name attribute.StringGet the effective display name for the identity.StringGet the effective display name for the identity.ListGet the user email addresses.ListGet the user's email instancesGet a list of the External Identity objects associated with this Identity.ListGet the list of groups this object is a member of.ListGet a List of the IdentityGroups that this Identity belongs to.Returns the List of IdentityMembershipInterface instances ordered by membership levelStringReturn the type of Identity.Return Internal Account (InternalLoginUserInfo) Options for this PersonListReturn the list of locations for the user.ListGet a list of the Login objects associated with this Identity.List<MetadataInterface> Returns the list of objects this person has modified.StringgetName()Gets the name of the object.ListGet the list of phone numbers for the user.ListGet a List of the subscriber identities owned by this Person.StringgetTitle()Get the Title attribute.StringgetType()Return a type string to identify this object.ListGet a list of the user id's from the logins associated with this Identity.voidRemove an email from a user's list of email instances.voidremoveEmailAddress(String address) Remove an address from a user's list of email addresses.voidremoveExternalIdentity(ExternalIdentityInterface externalIdentity) Remove an external identity from the Identity.voidremoveLocation(LocationInterface location) Remove a location from the user's list of lcoations.voidremoveLogin(LoginInterface login) Remove a Login from the Identity.voidRemove a phone number from the user's list.voidsetDisplayName(String displayName) Set the identity's display name.voidsetInternalAccountOptions(InternalLoginUserInfo intrlLgnUsrInfo) Set Internal Account (InternalLoginUserInfo) Options for this PersonvoidsetInternalAccountPassword(String password) Set Internal Account PasswordvoidsetName(String name) Set the name of the object.voidsetTitle(String title) Set the Person's Title.Methods inherited from class com.sas.services.information.metadata.Folder
addChild, addItem, addItem, addNewItem, addSubfolder, addSubfolder, copyTo, delete, deleteItem, deleteSubfolder, getChildAt, getChildCount, getChildren, getChildren, getContentCreateDate, getContentInfo, getContentModifyDate, getFolderRefresh, getFolderType, getItem, getItemByClass, getItemByType, getItemRefresh, getItems, getItemsByClass, getItemsByType, getItemSublist, getItemSublist, getLocalizableProperties, getParent, getPath, getPublicTypeItem, getSubfolder, getSubfolders, getTotalNumberOfItems, hasContentBackedItems, hasContentBacking, hasDuplicate, hasDuplicateSubfolder, hasDuplicateSubfolder, insertChild, isEmpty, isItemNameUnique, makeSubfolder, makeSubfolder, mapNameToFilesystem, mapUrlToFilesystem, moveMembersOnOverflow, moveTo, newChild, newServiceObject, refresh, removeChild, removeItem, removeSubfolder, setContentCreateDate, setContentModifyDate, setFolderRefresh, setFolderType, setItemRefresh, setLocalizableProperties, setRepository, upgradeFromPreviousVersionMethods inherited from class com.sas.services.information.metadata.Metadata
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addNoteTextStore, addNoteTextStore, addObjectProperty, addObjectProperty, addPermissions, addProcessorInterface, addPrompt, addPropertySet, addRemark, addResponsibleParty, addToList, addTransactionListener, addUsedByPrototype, checkin, checkout, checkPulse, clearInformationService, commit, countAssociatedObjects, deleteAttribute, deleteAttributes, deleteRootObject, destroy, fromByteArray, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getContainer, getCreateDate, getCreatedBy, getDefaultLocalizableProperties, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGUID, getIdentifier, getIdentities, getImplementors, getInformationService, getKeywords, getLockedBy, getModifiedBy, getModifyDate, getNoteTextStore, getNoteTextStores, getNoteTextStoresByRole, getObjectProperties, getObjectURI, getParentPath, getParents, getPath, getPaths, getPathUrl, getPathUrl, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getProcessorInterface, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getTreeRefresh, getTypeDescriptor, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, hashCode, isAuthorized, isCompatible, isConnectionException, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logFormat, logFormat, logFormat, logFormat, logMessage, logMessage, logThrowable, notifyTransactionListeners, removeAccessControl, removeDocument, removeExtension, removeFromList, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, reset, rollback, setAttribute, setAttributes, setCompatibility, setDefaultLocalizableProperties, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setNoteTextStores, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setTreeRefresh, setUsingPrototype, startTransaction, toByteArray, toString, transactionEvent, uncheckout, update, updateFromBag, validateNameAndFolder, validateNameAndFolder, versionMethods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObjectMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLogMethods inherited from class java.rmi.server.RemoteObject
equals, getRef, toStubMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.services.information.metadata.MetadataInterface
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addNoteTextStore, addNoteTextStore, addObjectProperty, addObjectProperty, addPermissions, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getCreateDate, getCreatedBy, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGUID, getIdentities, getImplementors, getKeywords, getLockedBy, getModifiedBy, getModifyDate, getNoteTextStore, getNoteTextStores, getNoteTextStoresByRole, getObjectProperties, getParentPath, getParents, getPath, getPaths, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isObjectAlive, isReadCompatible, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, refresh, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setNoteTextStores, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setRepository, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, versionMethods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getContainer, getIdentifier, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor
-
Constructor Details
-
DavPerson
public DavPerson() throws RemoteExceptionCreates a new DavPerson.- Throws:
RemoteException- if unable to export the remote object.
-
DavPerson
Creates a new DavPerson that incorporates the person object passed to the constructor.- Parameters:
o- DAV person.- Throws:
RemoteException- if unable to export the remote object.
-
DavPerson
protected DavPerson(Class theClass) throws RemoteException Creates a new DavPerson.- Parameters:
theClass- The subclass's class which will be used to determine appropriate RMI socket factories.- Throws:
RemoteException- if unable to export the remote object.
-
DavPerson
Creates a new DavPerson that incorporates the person object passed to the constructor.- Parameters:
o- DAV person.theClass- The subclass's class which will be used to determine appropriate RMI socket factories.- Throws:
RemoteException- if unable to export the remote object.
-
-
Method Details
-
getName
public String getName() throws RemoteExceptionDescription copied from class:MetadataGets the name of the object.- Specified by:
getNamein interfacePublicObjectInterface- Overrides:
getNamein classMetadata- Returns:
- The name String for the object.
- Throws:
RemoteException- in the event of remote object failure.
-
getDisplayName
Description copied from interface:IdentityInterfaceGet the identity's display name attribute.- Specified by:
getDisplayNamein interfaceIdentityInterface- Returns:
- The display name, or null if it hasn't been set.
- Throws:
ServiceException- If a service level error occurs.RemoteException- In the event of remote object failure.
-
getEffectiveDispayName
Description copied from interface:IdentityInterfaceGet the effective display name for the identity. If the display name is non-null, that will be returned. Otherwise, the name is returned.- Specified by:
getEffectiveDispayNamein interfaceIdentityInterface- Returns:
- The effective display name.
- Throws:
ServiceException- If a service level error occurs.RemoteException- In the event of remote object failure.
-
getEffectiveDisplayName
Description copied from interface:IdentityInterfaceGet the effective display name for the identity. If the display name is non-null, that will be returned. Otherwise, the name is returned.- Specified by:
getEffectiveDisplayNamein interfaceIdentityInterface- Returns:
- The effective display name.
- Throws:
ServiceException- If a service level error occurs.RemoteException- In the event of remote object failure.
-
setDisplayName
Description copied from interface:IdentityInterfaceSet the identity's display name. Most users will not have permission to perform this operation. Only user/group administrators will be able to change display names.- Specified by:
setDisplayNamein interfaceIdentityInterface- Parameters:
displayName- The identity's new display name.- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
getType
public String getType() throws RemoteExceptionDescription copied from class:FolderReturn a type string to identify this object.- Specified by:
getTypein interfaceMetadataInterface- Overrides:
getTypein classFolder- Returns:
- The type string ("Folder").
- Throws:
RemoteException- in the event of remote object failure.
-
getLogins
Description copied from interface:IdentityInterfaceGet a list of the Login objects associated with this Identity.- Specified by:
getLoginsin interfaceIdentityInterface- Returns:
- a List of the Logins.
- Throws:
ServiceException- in the event of a repository failure.RemoteException- in the event of remote object failure.
-
addLogin
Description copied from interface:IdentityInterfaceAdd a login to the Identity.- Specified by:
addLoginin interfaceIdentityInterface- Parameters:
login- The Login to add to this Identity.- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
removeLogin
Description copied from interface:IdentityInterfaceRemove a Login from the Identity.- Specified by:
removeLoginin interfaceIdentityInterface- Parameters:
login- The Login to remove from this Identity.- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
getUserIds
Description copied from interface:IdentityInterfaceGet a list of the user id's from the logins associated with this Identity.- Specified by:
getUserIdsin interfaceIdentityInterface- Returns:
- a List of the user id's.
- Throws:
ServiceException- in the event of repository failure.RemoteException- in the event of remote object failure.
-
setName
public void setName(String name) throws RemoteException Description copied from class:FolderSet the name of the object.- Specified by:
setNamein interfaceMetadataInterface- Overrides:
setNamein classFolder- Parameters:
name- The name of the object in the repository.- Throws:
RemoteException- in the event of remote object failure.
-
getEmailAddresses
public List getEmailAddresses() throws RemoteExceptionDescription copied from interface:PersonInterfaceGet the user email addresses.- Specified by:
getEmailAddressesin interfacePersonInterface- Returns:
- A List of strings representing the user's email addresses.
- Throws:
RemoteException- in the event of remote object failure.
-
addEmailAddress
public void addEmailAddress(String address) throws RemoteException Description copied from interface:PersonInterfaceAdd a new email address to a user's email address list.- Specified by:
addEmailAddressin interfacePersonInterface- Parameters:
address- The new address to add.- Throws:
RemoteException- in the event of remote object failure.
-
removeEmailAddress
public void removeEmailAddress(String address) throws RemoteException Description copied from interface:PersonInterfaceRemove an address from a user's list of email addresses.- Specified by:
removeEmailAddressin interfacePersonInterface- Parameters:
address- The address to remove from the user's email list.- Throws:
RemoteException- in the event of remote object failure.
-
getEmails
public List getEmails() throws RemoteExceptionDescription copied from interface:PersonInterfaceGet the user's email instances- Specified by:
getEmailsin interfacePersonInterface- Returns:
- A List containing the user's email instances.
- Throws:
RemoteException- in the event of remote object failure.
-
addEmail
Description copied from interface:PersonInterfaceAdd a new email to a user's list of email instances.- Specified by:
addEmailin interfacePersonInterface- Throws:
RemoteException- in the event of remote object failure.
-
removeEmail
Description copied from interface:PersonInterfaceRemove an email from a user's list of email instances.- Specified by:
removeEmailin interfacePersonInterface- Throws:
RemoteException- in the event of remote object failure.
-
getGroups
public List getGroups() throws RemoteExceptionDescription copied from interface:MetadataInterfaceGet the list of groups this object is a member of.- Specified by:
getGroupsin interfaceMetadataInterface- Specified by:
getGroupsin interfacePersonInterface- Overrides:
getGroupsin classMetadata- Returns:
- The List of GroupInterface objects this object is a member of.
- Throws:
RemoteException- In the event of remote object failure.
-
getIdentityGroups
Description copied from interface:IdentityInterfaceGet a List of the IdentityGroups that this Identity belongs to.- Specified by:
getIdentityGroupsin interfaceIdentityInterface- Returns:
- A List of IdentityGroupInterface objects that this identity is a direct member of.
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
getSubscribers
Description copied from interface:PersonInterfaceGet a List of the subscriber identities owned by this Person.- Specified by:
getSubscribersin interfacePersonInterface- Returns:
- a List of SubscriberInterface objects.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getIdentityType
Description copied from interface:IdentityInterfaceReturn the type of Identity. This is mostly for internal use. Returns either "Person" or "IdentityGroup". To get the user friendly string, just use getType().- Specified by:
getIdentityTypein interfaceIdentityInterface- Returns:
- The identity type string.
- Throws:
ServiceException- If a service level error occurs.RemoteException- In the event of remote object failure.
-
getTitle
Description copied from interface:PersonInterfaceGet the Title attribute.- Specified by:
getTitlein interfacePersonInterface- Returns:
- The value of the Title attribute, or null if unset.
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
setTitle
Description copied from interface:PersonInterfaceSet the Person's Title.- Specified by:
setTitlein interfacePersonInterface- Parameters:
title- The new Title for the person.- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
addLocation
Description copied from interface:PersonInterfaceAdd a location to the user's list of locations.- Specified by:
addLocationin interfacePersonInterface- Parameters:
location- The new location to add.- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
addPhoneNumber
Description copied from interface:PersonInterfaceAdd a phone number to the user's list.- Specified by:
addPhoneNumberin interfacePersonInterface- Parameters:
phone- The new phone number to add.- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
getLocations
Description copied from interface:PersonInterfaceReturn the list of locations for the user. These may be valid addresses, but the description of Location in the metadata doesn't say that, so it could be just a country, etc.- Specified by:
getLocationsin interfacePersonInterface- Returns:
- The List of locations defined for the user.
- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
getPhoneNumbers
Description copied from interface:PersonInterfaceGet the list of phone numbers for the user.- Specified by:
getPhoneNumbersin interfacePersonInterface- Returns:
- The List of phone numbers defined for the user.
- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
removeLocation
Description copied from interface:PersonInterfaceRemove a location from the user's list of lcoations.- Specified by:
removeLocationin interfacePersonInterface- Parameters:
location- The location to remove.- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
removePhoneNumber
Description copied from interface:PersonInterfaceRemove a phone number from the user's list.- Specified by:
removePhoneNumberin interfacePersonInterface- Parameters:
phone- The phone number to remove.- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
setInternalAccountPassword
Description copied from interface:PersonInterfaceSet Internal Account Password- Specified by:
setInternalAccountPasswordin interfacePersonInterface- Parameters:
password- The password (clear text or encoded) to be set for this Person- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
deleteInternalAccount
Description copied from interface:PersonInterfaceDelete Internal Account- Specified by:
deleteInternalAccountin interfacePersonInterface- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
getInternalAccountOptions
Description copied from interface:PersonInterfaceReturn Internal Account (InternalLoginUserInfo) Options for this Person- Specified by:
getInternalAccountOptionsin interfacePersonInterface- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
setInternalAccountOptions
public void setInternalAccountOptions(InternalLoginUserInfo intrlLgnUsrInfo) throws ServiceException, RemoteException Description copied from interface:PersonInterfaceSet Internal Account (InternalLoginUserInfo) Options for this Person- Specified by:
setInternalAccountOptionsin interfacePersonInterface- Throws:
ServiceException- If a metadata error occurs.RemoteException- In the event of remote object failure.
-
getIdentityMembershipLevels
public List<IdentityMembershipInterface> getIdentityMembershipLevels() throws ServiceException, RemoteExceptionDescription copied from interface:IdentityInterfaceReturns the List of IdentityMembershipInterface instances ordered by membership level- Specified by:
getIdentityMembershipLevelsin interfaceIdentityInterface- Returns:
- List<
IdentityMembershipInterface> - Throws:
ServiceException- If a service level error occurs.RemoteException- In the event of remote object failure.
-
getCreatedObjects
Description copied from interface:PersonInterfaceReturns the list of objects this person has created.Note, this can potentially be a fairly expensive request depending on how many objects the user has created.
- Specified by:
getCreatedObjectsin interfacePersonInterface- Returns:
- list of created objects
- Throws:
ServiceException- If a service level error occurs.RemoteException- in the event of remote object failure.
-
getModifiedObjects
Description copied from interface:PersonInterfaceReturns the list of objects this person has modified.Note, this can potentially be a fairly expensive request depending on how many objects the user has modified.
- Specified by:
getModifiedObjectsin interfacePersonInterface- Returns:
- list of modified objects
- Throws:
ServiceException- If a service level error occurs.RemoteException- in the event of remote object failure.
-
getExternalIdentities
public List<ExternalIdentityInterface> getExternalIdentities() throws ServiceException, RemoteExceptionDescription copied from interface:IdentityInterfaceGet a list of the External Identity objects associated with this Identity.- Specified by:
getExternalIdentitiesin interfaceIdentityInterface- Returns:
- a List of the External Identities.
- Throws:
ServiceException- in the event of a repository failure.RemoteException- in the event of remote object failure.
-
addExternalIdentity
public void addExternalIdentity(ExternalIdentityInterface externalIdentity) throws ServiceException, RemoteException Description copied from interface:IdentityInterfaceAdd an external identity to the Identity.- Specified by:
addExternalIdentityin interfaceIdentityInterface- Parameters:
externalIdentity- The external identity to add to this Identity.- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
removeExternalIdentity
public void removeExternalIdentity(ExternalIdentityInterface externalIdentity) throws ServiceException, RemoteException Description copied from interface:IdentityInterfaceRemove an external identity from the Identity.- Specified by:
removeExternalIdentityin interfaceIdentityInterface- Parameters:
externalIdentity- The external identity to remove from this Identity.- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-