true
false
9596979899100101102103104105
false, false, toBeDeleted.size()); for (Connection c : toBeDeleted) { DeleteContext dc = new DeleteContext(c); dc.setMultiDeleteInfo(mi); IDeleteFeature del = getFeatureProvider().getDeleteFeature(dc); if (del.canDelete(dc)) { del.delete(dc); } } } }
10411042104310441045104610471048104910501051
// check ColumnConfig_Info ColumnConfigInfo column = getJavaInfoByName("column"); { Association association = column.getAssociation(); assertThat(association).isInstanceOf(InvocationChildEllipsisAssociation.class); assertTrue(association.canDelete()); } } /** * Test for {@link GridInfo#command_CREATE(ColumnConfigInfo, ColumnConfigInfo)}.
407408409410411412413414415416417
// permissions { CreationSupport creationSupport = newImage.getCreationSupport(); assertTrue(creationSupport.canReorder()); assertTrue(creationSupport.canReparent()); assertTrue(creationSupport.canDelete()); } // assert that "image" is bound to AST { ASTNode node = getNode("image = "); assertTrue(newImage.isRepresentedBy(node));
484485486487488489490491492493494
CreationSupport creationSupport = image.getCreationSupport(); // permissions assertTrue(creationSupport.canReorder()); assertTrue(creationSupport.canReparent()); // delete assertTrue(creationSupport.canDelete()); image.delete(); assertEditor( "public class Test implements EntryPoint {", " private static final MyImageBundle m_myBundle = GWT.create(MyImageBundle.class);", " public void onModuleLoad() {",
231232233234235236237238239240241
{ LayoutInfo layout = panel.getLayout(); { CreationSupport creationSupport = layout.getCreationSupport(); assertInstanceOf(ImplicitLayoutCreationSupport.class, creationSupport); assertTrue(creationSupport.canDelete()); } { VariableSupport variableSupport = layout.getVariableSupport(); assertInstanceOf(LocalUniqueVariableSupport.class, variableSupport); assertEquals("rowLayout", variableSupport.getName());
190191192193194195196197198199200
// Next, ask the selected avatar whether Customize and Delete is // supported if (selected == true) { AvatarSPI avatar = (AvatarSPI) avatarList.getSelectedValue(); customizeButton.setEnabled(avatar.canConfigure()); deleteButton.setEnabled(avatar.canDelete()); } // Finally, we see if the select avatar is the one currently in use. // If so, do not enable the Use button if (selected == true) {
176177178179180181182183184185186
Permission perm1 = dataRole.getPermissions().get(0); assertThat(perm1.getResourceName(), is("BooksProcedures")); assertFalse(perm1.canCreate()); assertTrue(perm1.canRead()); assertTrue(perm1.canUpdate()); assertTrue(perm1.canDelete()); assertFalse(perm1.canExecute()); assertFalse(perm1.canAlter()); } { // permission 2
933934935936937938939940941942943
// Check if operation allowed by OLAT VFS security callback DirContext resources = getResources(req); VFSDirContext vfsContext = (VFSDirContext) resources; String path = getRelativePath(req); if (!vfsContext.canDelete(path)) { resp.sendError(WebdavStatus.SC_FORBIDDEN); return; } if (isLocked(req)) {
588589590591592593594595596597598
* @return */ public VFSStatus removeQtiSerFiles(Long resourceableId, String ident) { if (resourceableId == null || ident == null || ident.length() == 0) return VFSConstants.NO; LocalFolderImpl item = new LocalFolderImpl(new File(FilePersister.getFullPathToCourseNodeDirectory(Long.toString(resourceableId), ident))); if(item.canDelete().equals(VFSConstants.YES)) return item.delete(); return VFSConstants.NO; }
90919293949596979899100
boolean canWrite = currentContainer.canWrite() == VFSConstants.YES; boolean canDelete = false; boolean canVersion = FolderConfig.versionsEnabled(fc.getCurrentContainer()); for (Iterator<VFSItem> iter = fc.getCurrentContainerChildren().iterator(); iter.hasNext();) { VFSItem child = iter.next(); if (child.canDelete() == VFSConstants.YES) { canDelete = true; break; } }