javax.wvcm
Class Principal.GenericPrincipalImpl

java.lang.Object
  extended by javax.wvcm.Resource.GenericResourceImpl
      extended by javax.wvcm.Principal.GenericPrincipalImpl
All Implemented Interfaces:
Principal, Resource
Enclosing interface:
Principal

public static class Principal.GenericPrincipalImpl
extends Resource.GenericResourceImpl
implements Principal

NOT YET STANDARD Implementation of a generic Principal.

Version:
$Revision: 1.1.1.1.2.2 $

Nested Class Summary
 
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 interface javax.wvcm.Principal
ALL, AUTHENTICATED, OWNER, SELF, UNAUTHENTICATED
 
Constructor Summary
Principal.GenericPrincipalImpl(Location location)
          Constructor
 
Method Summary
 void doCreateResource()
          Create a 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 javax.wvcm.Resource.GenericResourceImpl
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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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

Principal.GenericPrincipalImpl

public Principal.GenericPrincipalImpl(Location location)
Constructor

Parameters:
location - a Location
Method Detail

doCreateResource

public void doCreateResource()
                      throws WvcmException
Create a 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