Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
GTNPORTAL-3482 Deprecated class of UserImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
nttuyen authored and trongtt committed May 29, 2014
1 parent 775ff88 commit 6e06d62
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
Expand Up @@ -27,6 +27,7 @@
import org.exoplatform.services.organization.OrganizationService;
import org.exoplatform.services.organization.User;
import org.exoplatform.services.organization.UserStatus;
import org.exoplatform.services.organization.impl.UserImpl;
import org.gatein.common.logging.LogLevel;
import org.gatein.common.logging.Logger;
import org.gatein.common.logging.LoggerFactory;
Expand Down
Expand Up @@ -29,9 +29,12 @@
/**
* TODO: This is temporary implementation, which should be removed after https://issues.jboss.org/browse/EXOJCR-1780 will be
* fixed and available in GateIn.
* Because issue https://issues.jboss.org/browse/EXOJCR-1780 was fixed and this class will be removed soon.
* You should use {@org.exoplatform.services.organization.impl.UserImpl} instead of this class for avoiding error in future.
*
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a>
*/
@Deprecated
public class UserImpl extends org.exoplatform.services.organization.impl.UserImpl implements Serializable {
private String displayName;

Expand Down
Expand Up @@ -68,7 +68,7 @@

def beanIdField = uicomponent.getBeanIdField();
def beanId = uicomponent.getBeanIdFor(bean);
if (bean instanceof org.exoplatform.services.organization.idm.UserImpl) {
if (bean instanceof org.exoplatform.services.organization.impl.UserImpl) {
if(!uicomponent.getFieldValue(bean, "enabled")) {
rowStyle = "font-style: italic; background: #dedfdf";
} else {
Expand Down Expand Up @@ -100,7 +100,7 @@
}%>

<!-- EnableDisableUser action -->
<% if (bean instanceof org.exoplatform.services.organization.idm.UserImpl) {%>
<% if (bean instanceof org.exoplatform.services.organization.impl.UserImpl) {%>
<td headers="DisableEnableUser">
<div class="ActionContainer">
<%
Expand Down Expand Up @@ -145,7 +145,7 @@
}
classIcon = action + "Icon";
if (action == "DisableEnableUser") {
if (bean instanceof org.exoplatform.services.organization.idm.UserImpl) {
if (bean instanceof org.exoplatform.services.organization.impl.UserImpl) {
if (uicomponent.getFieldValue(bean, "enabled")) {
title = "Disabled User";
classIcon = "CheckDisable";
Expand Down
4 changes: 2 additions & 2 deletions web/portal/src/main/webapp/groovy/webui/core/UIGrid.gtmpl
Expand Up @@ -64,7 +64,7 @@
if (even) rowClass = "EvenRow";
else rowClass = "OddRow portlet-table-alternate";
even = !even;
if (bean instanceof org.exoplatform.services.organization.idm.UserImpl) {
if (bean instanceof org.exoplatform.services.organization.impl.UserImpl) {
if(!uicomponent.getFieldValue(bean, "enabled")) {
rowStyle = "font-style: italic; background: darkgray";
} else {
Expand Down Expand Up @@ -118,7 +118,7 @@
}
classIcon = action + "Icon";
if (action == "DisableEnableUser") {
if (bean instanceof org.exoplatform.services.organization.idm.UserImpl) {
if (bean instanceof org.exoplatform.services.organization.impl.UserImpl) {
if (uicomponent.getFieldValue(bean, "enabled")) {
title = "Disabled User";
classIcon = "CheckDisable";
Expand Down
Expand Up @@ -33,7 +33,7 @@
import org.exoplatform.services.organization.User;
import org.exoplatform.services.organization.UserProfile;
import org.exoplatform.services.organization.UserProfileHandler;
import org.exoplatform.services.organization.idm.UserImpl;
import org.exoplatform.services.organization.impl.UserImpl;
import org.exoplatform.web.application.ApplicationMessage;
import org.exoplatform.web.security.AuthenticationRegistry;
import org.exoplatform.web.url.navigation.NavigationResource;
Expand Down

0 comments on commit 6e06d62

Please sign in to comment.