updates for page management security, labels

This commit is contained in:
hudajkhan 2013-10-02 14:58:01 -04:00
parent 8d520895ac
commit 3e5c770506
10 changed files with 60 additions and 17 deletions

View file

@ -54,7 +54,8 @@
<owl:Class rdf:about="&display;IndividualsForClassesPage"/>
<owl:Class rdf:about="&display;InternalClassesPage"/>
<!-- For permissions -->
<owl:Class rdf:about="&display;RequiredAction"/>
<!-- Annotation Properties -->
<owl:AnnotationProperty rdf:about="&rdfs;comment"/>
<owl:AnnotationProperty rdf:about="&rdfs;label"/>
@ -127,7 +128,9 @@
<owl:ObjectProperty rdf:about="&display;restrictResultsByClass"/>
<owl:ObjectProperty rdf:about="&display;getIndividualsForClass"/>
<owl:ObjectProperty rdf:about="&display;hasDataGetter"/>
<owl:ObjectProperty rdf:about="&display;requiresAction">
</owl:ObjectProperty>
<!--Custom properties-->

View file

@ -1,46 +0,0 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix action: <java:edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission#> .
### This file defines the page list menu for vitro. ###
display:pageListPage
a display:Page ;
display:title "Pages" ;
display:urlMapping "/pageList" ;
display:requiresBodyTemplate "pageList.ftl" ;
display:hasDataGetter display:pageListData;
display:requiredAction <java:edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission#ManageMenus> ;
display:cannotDeletePage "true" .
display:pageListData
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
display:queryModel <vitro:contextDisplayModel> ;
display:saveToVar "pages" ;
display:query """
PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?listedPageUri ?listedPageTitle ?listedPageUrlMapping ?listedPageTemplate ?listedPageMenuItem ?listedPageCannotDeletePage
WHERE {
?listedPageUri a display:Page .
OPTIONAL{ ?listedPageUri display:urlMapping ?listedPageUrlMapping. }
OPTIONAL{ ?listedPageUri display:title ?listedPageTitle. }
OPTIONAL {?listedPageUri display:requiresBodyTemplate ?listedPageTemplate .}
OPTIONAL {?listedPageMenuItem display:toPage ?listedPageUri .}
OPTIONAL {?listedPageUri display:cannotDeletePage ?listedPageCannotDeletePage .}
} ORDER BY ?listedPageTitle """ .
###Page Management and Data Getters
#Data getter type labels
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData> rdfs:label "Class Group Page" .
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter> rdfs:label "Browse Page" .
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter> rdfs:label "Class Group Page - Selected Classes" .
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> rdfs:label "Sparql Query Results" .

View file

@ -1,159 +0,0 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix action: <java:edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission#> .
# These are the reqired action objects from the SimplePermission.java.
action:AccessSpecialDataModels
a display:RequiredAction ;
rdfs:label "ACCESS_SPECIAL_DATA_MODELS" .
action:DoBackEndEditing
a display:RequiredAction ;
rdfs:label "DO_BACK_END_EDITING" .
action:DoFrontEndEditing
a display:RequiredAction ;
rdfs:label "DO_FRONT_END_EDITING" .
action:EditOntology
a display:RequiredAction ;
rdfs:label "EDIT_ONTOLOGY" .
action:EditOwnAccount
a display:RequiredAction ;
rdfs:label "EDIT_OWN_ACCOUNT" .
action:EditSiteInformation
a display:RequiredAction ;
rdfs:label "EDIT_SITE_INFORMATION" .
action:LoginDuringMaintenance
a display:RequiredAction ;
rdfs:label "LOGIN_DURING_MAINTENANCE" .
action:ManageMenus
a display:RequiredAction ;
rdfs:label "MANAGE_MENUS" .
action:ManageOwnProxies
a display:RequiredAction ;
rdfs:label "MANAGE_OWN_PROXIES" .
action:ManagePortals
a display:RequiredAction ;
rdfs:label "MANAGE_PORTALS" .
action:ManageProxies
a display:RequiredAction ;
rdfs:label "MANAGE_PROXIES" .
action:ManageSearchIndex
a display:RequiredAction ;
rdfs:label "MANAGE_SEARCH_INDEX" .
action:ManageTabs
a display:RequiredAction ;
rdfs:label "MANAGE_TABS" .
action:ManageUserAccounts
a display:RequiredAction ;
rdfs:label "MANAGE_USER_ACCOUNTS" .
action:QueryFullModel
a display:RequiredAction ;
rdfs:label "QUERY_FULL_MODEL" .
action:QueryUserAccountsModel
a display:RequiredAction ;
rdfs:label "QUERY_USER_ACCOUNTS_MODEL" .
action:RebuildVClassGroupCache
a display:RequiredAction ;
rdfs:label "REBUILD_VCLASS_GROUP_CACHE" .
action:RefreshVisualizationCache
a display:RequiredAction ;
rdfs:label "REFRESH_VISUALIZATION_CACHE" .
action:SeeIndividualEditingPanel
a display:RequiredAction ;
rdfs:label "SEE_INDVIDUAL_EDITING_PANEL" .
action:SeeRevisionInfo
a display:RequiredAction ;
rdfs:label "SEE_REVISION_INFO" .
action:SeeSiteAdminPage
a display:RequiredAction ;
rdfs:label "SEE_SITE_ADMIN_PAGE" .
action:SeeStartupStatus
a display:RequiredAction ;
rdfs:label "SEE_STARTUP_STATUS" .
action:SeeVerbosePropertyInformation
a display:RequiredAction ;
rdfs:label "SEE_VERBOSE_PROPERTY_INFORMATION" .
action:UseAdvancedDataToolsPages
a display:RequiredAction ;
rdfs:label "USE_ADVANCED_DATA_TOOLS_PAGES" .
action:UseSparqlQueryPage
a display:RequiredAction ;
rdfs:label "USE_SPARQL_QUERY_PAGE" .
action:UseBasicAjaxControllers
a display:RequiredAction ;
rdfs:label "USE_BASIC_AJAX_CONTROLLERS" .
action:UseMiscellaneousAdminPages
a display:RequiredAction ;
rdfs:label "USE_MISCELLANEOUS_ADMIN_PAGES" .
action:UseMiscellaneousCuratorPages
a display:RequiredAction ;
rdfs:label "USE_MISCELLANEOUS_CURATOR_PAGES" .
action:UseMiscellaneousEditorPages
a display:RequiredAction ;
rdfs:label "USE_MISCELLANEOUS_EDITOR_PAGES" .
action:UseMiscellaneousPages
a display:RequiredAction ;
rdfs:label "USE_MISCELLANEOUS_PAGES" .