org.apache.wvcm
Class PrincipalImpl

java.lang.Object
  extended by org.apache.wvcm.ResourceImpl
      extended by org.apache.wvcm.PrincipalImpl
All Implemented Interfaces:
Principal, Resource
Direct Known Subclasses:
PrincipalImpl.GroupImpl

public class PrincipalImpl
extends ResourceImpl
implements Principal

Implementation of Principal.

Version:
$Revision: 1.1.1.1.2.3 $

Nested Class Summary
static class PrincipalImpl.GroupImpl
          Implementation of a group
static class PrincipalImpl.RoleImpl
          Implementation of a Role
 
Nested classes/interfaces inherited from class org.apache.wvcm.ResourceImpl
ResourceImpl.LoadedProperties, ResourceImpl.XmlPropertyValue
 
Nested classes/interfaces inherited from interface javax.wvcm.Principal
Principal.GenericPrincipalImpl, Principal.Group, Principal.Role
 
Nested classes/interfaces inherited from interface javax.wvcm.Resource
Resource.GenericResourceImpl
 
Field Summary
 
Fields inherited from class org.apache.wvcm.ResourceImpl
dnsp, MISSING_PROPERTY_VALUE
 
Fields inherited from interface javax.wvcm.Principal
ALL, AUTHENTICATED, OWNER, SELF, UNAUTHENTICATED
 
Constructor Summary
PrincipalImpl(Location location)
          Constructor
 
Method Summary
 void doCreateResource()
          Create an Principal on the server.
 java.util.List getGroupMembership()
          Get the list of groups (Principal.Group) in which the principal is directly a member.
 
Methods inherited from class org.apache.wvcm.ResourceImpl
accessor, addLockToken, commit, doBind, doCopy, doLock, doLock, doReadAccessControlList, doReadContent, doReadProperties, doRebind, doSearch, doUnbind, doUnlock, doUnlock, doWriteAccessControlList, doWriteContent, doWriteProperties, equals, folderAccessor, folderAccessor, getActiveLockTokens, getAttribute, getClientHttpMethod, getComment, getContentCharacterSet, getContentIdentifier, getContentLanguage, getContentLength, getContentType, getCreationDate, getCreationUser, getCreatorDisplayName, getDisplayName, getHttpMethod, getLastModified, getLockTokens, getModificationDate, getModificationUser, getOwner, getParentBindingList, getPrincipalFolderList, getPrivilegeFolderList, getProperty, getPropertyContainer, getPropertyNameList, getProviderList, getResourceIdentifier, getSupportedPrivilegeList, getUpdatedPropertyList, getWorkspaceFolderList, hashCode, listOfRemovedAttributes, listOfSetProperties, loadedProperties, location, removeAttribute, removeLockToken, setAttribute, setComment, setContentCharacterSet, setContentLanguage, setContentType, setCreatorDisplayName, setDisplayName, setHttpMethod, setHttpMethod, setProperty, setPropertyContainer, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.wvcm.Resource
doBind, doCopy, doLock, doLock, doReadAccessControlList, doReadContent, doReadProperties, doRebind, doSearch, doUnbind, doUnlock, doUnlock, doWriteAccessControlList, doWriteContent, doWriteProperties, getAttribute, getComment, getContentCharacterSet, getContentIdentifier, getContentLanguage, getContentLength, getContentType, getCreationDate, getCreationUser, getCreatorDisplayName, getDisplayName, getLastModified, getLockTokens, getModificationDate, getModificationUser, getOwner, getParentBindingList, getPrincipalFolderList, getPrivilegeFolderList, getProperty, getPropertyNameList, getProviderList, getResourceIdentifier, getSupportedPrivilegeList, getUpdatedPropertyList, getWorkspaceFolderList, location, removeAttribute, setAttribute, setComment, setContentCharacterSet, setContentLanguage, setContentType, setCreatorDisplayName, setDisplayName, setProperty
 

Constructor Detail

PrincipalImpl

public PrincipalImpl(Location location)
Constructor

Method Detail

doCreateResource

public void doCreateResource()
                      throws WvcmException
Create an Principal on the server.

Specified by:
doCreateResource in interface Principal
Throws:
WvcmException - Preconditions:
(resource-must-be-null): A resource MUST NOT exist at the location of this Resource.
(location-ok): The location of this Principal MUST identify a valid location to create this Resource. A client can determine the location of folders that can contain principals from the PrincipalFolderList property.
WvcmException - Postconditions:
(initialize-resource): A new Principal resource exists at the location of this Resource.

getGroupMembership

public java.util.List getGroupMembership()
                                  throws WvcmException
Get the list of groups (Principal.Group) in which the principal is directly a member.

Specified by:
getGroupMembership in interface Principal
Returns:
a List
Throws:
WvcmException - if this principal was not created with PropertyNameList.PropertyName.GROUP_MEMBERSHIP as a wanted property


Copyright (c) 2003 - Apache Software Foundation