Skip to content

Commit

Permalink
SAK-32243 Hide profile2 wall by default (sakaiproject#3978)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored and ern committed Mar 14, 2017
1 parent 82df5e5 commit ffec1e1
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2631,7 +2631,10 @@

# Wall Support
# Enable/disable the Profile2 wall page globally (true/false)
# DEFAULT: true
#
# DEPRECATED: UNLESS THERE IS AN EXPRESSED DESIRE FOR THIS FUNCTIONALITY THE WALL WILL BE REMOVED FOR 13.
#
# DEFAULT: false
# profile2.wall.enabled=true

# Use the wall page as the default Profile2 page (true/false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
* Logic interface for the Profile2 wall.
*
* @author [email protected]
* @deprecated The wall functionality will be removed from Sakai for the 13 release.
*/
@Deprecated
public interface ProfileWallLogic {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,11 @@ public interface SakaiProxy {
/**
* Is the profile2.wall.enabled flag set in sakai.properties? If not set, defaults to <code>false</code>.
*
* DEPRECATED: UNLESS THERE IS AN EXPRESSED DESIRE FOR THIS FUNCTIONALITY THE WALL WILL BE REMOVED FOR 13.
*
* @return <code>true</code> if the profile2.wall.enabled flag is set, otherwise returns <code>false</code>.
*/
@Deprecated
public boolean isWallEnabledGlobally();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public class ProfileConstants {
public static final boolean SAKAI_PROP_PROFILE2_PROFILE_INTERESTS_ENABLED = true; //profile2.profile.interests.enabled
public static final boolean SAKAI_PROP_PROFILE2_OFFICIAL_IMAGE_ENABLED = false; //profile2.official.image.enabled
public static final boolean SAKAI_PROP_PROFILE2_GRAVATAR_IMAGE_ENABLED = true; //profile2.gravatar.image.enabled
public static final boolean SAKAI_PROP_PROFILE2_WALL_ENABLED = true; //profile2.wall.enabled
public static final boolean SAKAI_PROP_PROFILE2_WALL_ENABLED = false; //profile2.wall.enabled
public static final boolean SAKAI_PROP_PROFILE2_WALL_DEFAULT = false; //profile2.wall.default
public static final boolean SAKAI_PROP_PROFILE2_GOOGLE_INTEGRATION_ENABLED = false; //profile2.integration.google.enabled
public static final boolean SAKAI_PROP_PROFILE2_IMPORT_ENABLED = false; //profile2.import
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
* Implementation of ProfileWallLogic API for Profile2 wall.
*
* @author [email protected]
* @deprecated The wall functionality will be removed from Sakai for the 13 release.
*/
@Deprecated
public class ProfileWallLogicImpl implements ProfileWallLogic {

private static final Logger log = LoggerFactory.getLogger(ProfileWallLogic.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ public Panel getPanel(String panelId) {
});
}

// DEPRECATED: UNLESS THERE IS AN EXPRESSED DESIRE FOR THIS FUNCTIONALITY THE WALL WILL BE REMOVED FOR 13.
if (sakaiProxy.isWallEnabledGlobally()) {

tabs.add(new AbstractTab(new ResourceModel("link.tab.wall")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public Panel getPanel(final String panelId) {
});
}

// DEPRECATED: UNLESS THERE IS AN EXPRESSED DESIRE FOR THIS FUNCTIONALITY THE WALL WILL BE REMOVED FOR 13.
if (this.sakaiProxy.isWallEnabledGlobally()) {

tabs.add(new AbstractTab(new ResourceModel("link.tab.wall")) {
Expand Down

0 comments on commit ffec1e1

Please sign in to comment.