|
MapGuide API Reference
|
| virtual void MgResourceService::InheritPermissionsFrom | ( | MgResourceIdentifier * | resource | ) | [pure virtual] |
Sets the permissions for all descendants of a specified folder to be inherited from the folder.
| virtual void InheritPermissionsFrom(MgResourceIdentifier resource); |
| virtual void InheritPermissionsFrom(MgResourceIdentifier resource); |
| virtual void InheritPermissionsFrom(MgResourceIdentifier resource); |
| resource | (MgResourceIdentifier) Folder that permissions are to be inherited from. You must include the trailing slash in the identifier. |
// Assuming $resourceService is already initialized. $resourceID= new MgResourceIdentifier("Library://Geography/"); $resourceService->InheritPermissionsFrom($resourceID);
| MgPermissionDeniedException | |
| MgResourceNotFoundException | |
| MgInvalidRepositoryTypeException | |
| MgInvalidRepositoryNameException | |
| MgInvalidResourcePathException | |
| MgInvalidResourceNameException | |
| MgInvalidResourceTypeException |