Revision 47784 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/TableManager.java
TableManager.java | ||
---|---|---|
72 | 72 |
import org.gvsig.tools.dynobject.DynStruct; |
73 | 73 |
import org.gvsig.tools.evaluator.Evaluator; |
74 | 74 |
import org.gvsig.tools.i18n.I18nManager; |
75 |
import org.gvsig.tools.identitymanagement.IdentityUtils; |
|
75 | 76 |
import org.gvsig.tools.persistence.PersistenceManager; |
76 | 77 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
77 | 78 |
import org.gvsig.tools.swing.api.ToolsSwingUtils; |
... | ... | |
463 | 464 |
|
464 | 465 |
@Override |
465 | 466 |
public IWindow getMainWindow(Document doc, WindowLayout layout) { |
466 |
IDocumentWindow win = (IDocumentWindow) super.getMainWindow(doc, layout); |
|
467 |
|
|
468 |
FeatureStore store = ((TableDocument)doc).getFeatureStore(); |
|
469 |
if( !IdentityUtils.isAuthorized("document-table-showmainwindow", |
|
470 |
doc, store.getFullName()) ) { |
|
471 |
return null; |
|
472 |
} |
|
473 |
IDocumentWindow win = (IDocumentWindow) super.getMainWindow(doc, layout); |
|
467 | 474 |
if (win == null) { |
468 | 475 |
try { |
469 | 476 |
win = (IDocumentWindow) this.createDocumentWindow(doc); |
Also available in: Unified diff