Files
alfresco-community-repo/source/java/org/alfresco/repo/web/activiti/ActivitiLoggedInUser.java
Gavin Cornwell 6f8b210341 ALF-8615: ACTVT 106: Alfresco WAR includes all the necessary assets to run the Activiti Admin UI
ALF-8616: ACTVT 107: Enterprise build overlays required Activiti Admin UI files

NOTE: To get the Activiti Admin UI you need to do an Enterprise build. If you're using the exploded targets there are no extra steps. 

If you are using the default, WAR based targets you will first need to run "ant include-activiti-admin-ui" in the 'enterpriseprojects' folder. Due to the way we build our WAR file the original source file has to be changed, there is a potential this may be accidentally comitted, hence the extra manual step. In a continuous build this step is automated and the changes reverted when a new build is performed just as all the other enterprise overlay files are.

To see the Activiti Admin UI go to http://localhost:8080/alfresco/activiti-admin. If you login into Explorer first you'll go to straight to the app, otherwise a login dialog will be displayed.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28220 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-06 20:36:57 +00:00

106 lines
2.2 KiB
Java

/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.repo.web.activiti;
import org.activiti.explorer.identity.LoggedInUser;
/**
* Logged in user for Activiti admin ui, based on the authenticated person node
* properties.
*
* @author Frederik Heremans
*/
public class ActivitiLoggedInUser implements LoggedInUser
{
private static final long serialVersionUID = 1L;
private String id;
private String firstName;
private String lastName;
private boolean admin;
private boolean user;
public ActivitiLoggedInUser(String id)
{
this.id = id;
}
public String getFirstName()
{
return firstName;
}
public String getFullName()
{
return getFirstName() + " " + getLastName();
}
public String getId()
{
return id;
}
public String getLastName()
{
return lastName;
}
public String getPassword()
{
// Password is not exposed, not needed anymore after authentication
return null;
}
public boolean isAdmin()
{
return admin;
}
public boolean isUser()
{
return user;
}
public void setFirstName(String firstName)
{
this.firstName = firstName;
}
public void setLastName(String lastName)
{
this.lastName = lastName;
}
public void setAdmin(boolean admin)
{
this.admin = admin;
}
public void setUser(boolean user)
{
this.user = user;
}
}