Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Pass hasContentFilter info
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Mar 7, 2016
1 parent 267f139 commit 74cd771
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/core/classes/class.AJXP_XMLWriter.php
Expand Up @@ -641,6 +641,9 @@ public static function writeRepositoriesData($loggedUser)
if ($repoObject->getUniqueUser()) {
$streamString .= " user_editable_repository=\"true\" ";
}
if ($repoObject->hasContentFilter()){
$streamString .= " hasContentFilter=\"true\"";
}
$slugString = "";
$slug = $repoObject->getSlug();
if (!empty($slug)) {
Expand Down
11 changes: 11 additions & 0 deletions core/src/plugins/gui.ajax/res/js/es6/model/Repository.es6
Expand Up @@ -38,6 +38,7 @@ class Repository {
this.slug = '';
this.owner = '';
this.description = '';
this._hasContentFilter = false;
if(window.ajxpResourcesFolder){
this.icon = window.ajxpResourcesFolder+'/images/actions/16/network-wired.png';
}
Expand Down Expand Up @@ -146,6 +147,13 @@ class Repository {
getOverlay(){
return (this.getOwner() ? resolveImageSource("shared.png", "/images/overlays/ICON_SIZE", 8):"");
}

/**
* @returns {boolean}
*/
hasContentFilter(){
return this._hasContentFilter;
}

/**
* Parses XML Node
Expand All @@ -155,6 +163,9 @@ class Repository {
if(repoNode.getAttribute('allowCrossRepositoryCopy') && repoNode.getAttribute('allowCrossRepositoryCopy') == "true"){
this.allowCrossRepositoryCopy = true;
}
if(repoNode.getAttribute('hasContentFilter') && repoNode.getAttribute('hasContentFilter') == "true"){
this._hasContentFilter = true;
}
if(repoNode.getAttribute('user_editable_repository') && repoNode.getAttribute('user_editable_repository') == "true"){
this.userEditable = true;
}
Expand Down

0 comments on commit 74cd771

Please sign in to comment.