/** * Displays the access control list of a given resource.<p> * * @param resourceName the name of the resource * * @throws Exception if something goes wrong * * @see CmsObject#getAccessControlList(String) */ public void getAcl(String resourceName) throws Exception { CmsAccessControlList acList = m_cms.getAccessControlList(resourceName); Iterator principals = acList.getPrincipals().iterator(); while (principals.hasNext()) { I_CmsPrincipal p = m_cms.lookupPrincipal((CmsUUID)principals.next()); System.out.println(p.getName() + ": " + acList.getPermissions(p.getId()).getPermissionString()); } }
/** * Displays the access control list of a given resource.<p> * * @param resourceName the name of the resource * * @throws Exception if something goes wrong * * @see CmsObject#getAccessControlList(String) */ public void getAcl(String resourceName) throws Exception { CmsAccessControlList acList = m_cms.getAccessControlList(resourceName); Iterator<CmsUUID> principals = acList.getPrincipals().iterator(); while (principals.hasNext()) { I_CmsPrincipal p = m_cms.lookupPrincipal(principals.next()); m_shell.getOut().println(p.getName() + ": " + acList.getPermissions(p.getId()).getPermissionString()); } }
CmsResource.getParentFolder(getParamResource()), false); Iterator i = acList.getPrincipals().iterator(); while (i.hasNext()) { CmsUUID principalId = (CmsUUID)i.next();
CmsResource.getParentFolder(getParamResource()), false); Iterator<CmsUUID> i = acList.getPrincipals().iterator(); while (i.hasNext()) { CmsUUID principalId = i.next();
CmsResource.getParentFolder(m_cms.getSitePath(m_resource)), false); Iterator<CmsUUID> i = acList.getPrincipals().iterator(); while (i.hasNext()) { CmsUUID principalId = i.next();