***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.information.metadata
Class DAVAccessControlEntry

com.sas.services.information.metadata.DAVAccessControlEntry
All Implemented Interfaces:
AccessControlEntryInterface, MetadataInterface, PublicObjectInterface, java.io.Serializable, java.rmi.Remote

public class DAVAccessControlEntry
implements AccessControlEntryInterface

Represents a WebDAV Access Control Entry

Since:
1.1
See Also:
Serialized Form

Field Summary
 
Fields 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
DAVAccessControlEntry(IdentityInterface principal, java.util.List permissions, boolean isprotected, boolean isinherited)
           
 
Method Summary
 void addIdentity(IdentityInterface identity)
          Add an identity to this ACE.
 void addPermission(PermissionInterface permission)
          Add a permission to this ACE.
 java.util.List getAccessControlTemplates()
          Get the access control templates for this entry.
 java.util.List getIdentities()
          Get all the identities that are associated to this metadata object through permissions.
 java.lang.String getInheritedFrom()
           
 java.util.List getPermissions()
          Get a List of permissions that are associated with this ACE.
 boolean isInherited()
           
 boolean isProtected()
           
 void removeIdentity(IdentityInterface identity)
          Remove an identity from this ACE.
 void removePermission(PermissionInterface permission)
          Remove a permission from this ACE.
 void setIdentities(java.util.List identities)
          Set the set of identities on this ACE.
 void setInheritedFrom(java.lang.String inheritedfrom)
           
 void setPermissions(java.util.List permissions)
          Set the list of permissions on the ACE.
 
Methods inherited from class com.sas.services.information.metadata.VirtualMetadata
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addObjectProperty, addObjectProperty, addPermissions, addProcessorInterface, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getContainer, getCreateDate, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentifier, getImplementors, getKeywords, getLockedBy, getModifyDate, getName, getObjectProperties, getObjectURI, getParent, 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, getType, getTypeDescriptor, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logMessage, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, refresh, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setRepository, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, version
 
Methods inherited from interface com.sas.services.information.metadata.MetadataInterface
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addObjectProperty, addObjectProperty, addPermissions, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getCreateDate, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getImplementors, getKeywords, getLockedBy, getModifyDate, getObjectProperties, getParent, getParentPath, getParents, getPath, getPaths, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getType, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logMessage, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, refresh, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setRepository, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, version
 
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor
 

Constructor Detail

DAVAccessControlEntry

public DAVAccessControlEntry(IdentityInterface principal,
                             java.util.List permissions,
                             boolean isprotected,
                             boolean isinherited)
Method Detail

setInheritedFrom

public void setInheritedFrom(java.lang.String inheritedfrom)
                      throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getInheritedFrom

public java.lang.String getInheritedFrom()

addPermission

public void addPermission(PermissionInterface permission)
                   throws ServiceException,
                          java.rmi.RemoteException
Description copied from interface: AccessControlEntryInterface
Add a permission to this ACE.

Specified by:
addPermission in interface AccessControlEntryInterface
Parameters:
permission - A permission to add to this ACE.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

getPermissions

public java.util.List getPermissions()
                              throws ServiceException,
                                     java.rmi.RemoteException
Description copied from interface: AccessControlEntryInterface
Get a List of permissions that are associated with this ACE.

Specified by:
getPermissions in interface AccessControlEntryInterface
Returns:
a List of Permission objects.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

setIdentities

public void setIdentities(java.util.List identities)
                   throws ServiceException,
                          java.rmi.RemoteException
Description copied from interface: AccessControlEntryInterface
Set the set of identities on this ACE. Any existing identities will be removed, and replaced with this list.

Specified by:
setIdentities in interface AccessControlEntryInterface
Parameters:
identities - The List of IdentityInterface objects to set as the identities on this ACE.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

addIdentity

public void addIdentity(IdentityInterface identity)
                 throws ServiceException,
                        java.rmi.RemoteException
Description copied from interface: AccessControlEntryInterface
Add an identity to this ACE.

Specified by:
addIdentity in interface AccessControlEntryInterface
Parameters:
identity - The identity to add to this ACE.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

removePermission

public void removePermission(PermissionInterface permission)
                      throws ServiceException,
                             java.rmi.RemoteException
Description copied from interface: AccessControlEntryInterface
Remove a permission from this ACE.

Specified by:
removePermission in interface AccessControlEntryInterface
Parameters:
permission - A permission to remove from this ACE.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

removeIdentity

public void removeIdentity(IdentityInterface identity)
                    throws ServiceException,
                           java.rmi.RemoteException
Description copied from interface: AccessControlEntryInterface
Remove an identity from this ACE.

Specified by:
removeIdentity in interface AccessControlEntryInterface
Parameters:
identity - the Identity to remove from this ACE.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

setPermissions

public void setPermissions(java.util.List permissions)
                    throws ServiceException,
                           java.rmi.RemoteException
Description copied from interface: AccessControlEntryInterface
Set the list of permissions on the ACE. Any existing permissions will be removed and replaced with this list.

Specified by:
setPermissions in interface AccessControlEntryInterface
Parameters:
permissions - The List of Permission objects to set on this ACE.
Throws:
ServiceException - in the event of repository errors.
java.rmi.RemoteException - in the event of remote object failure.

getIdentities

public java.util.List getIdentities()
                             throws ServiceException,
                                    java.rmi.RemoteException
Description copied from class: VirtualMetadata
Get all the identities that are associated to this metadata object through permissions.

Specified by:
getIdentities in interface AccessControlEntryInterface
Specified by:
getIdentities in interface MetadataInterface
Overrides:
getIdentities in class VirtualMetadata
Returns:
a List of IdentityInterface objects that have some permission defined for this object.
Throws:
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.

isProtected

public boolean isProtected()

isInherited

public boolean isInherited()

getAccessControlTemplates

public java.util.List getAccessControlTemplates()
                                         throws ServiceException,
                                                java.rmi.RemoteException
Description copied from interface: AccessControlEntryInterface
Get the access control templates for this entry.

Specified by:
getAccessControlTemplates in interface AccessControlEntryInterface
Returns:
A List of access control templates for this entry.
Throws:
ServiceException - If a repository error occurs.
java.rmi.RemoteException - In the event of remote object failure.

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.