org.broadleafcommerce.openadmin.server.security.domain.AdminUser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of broadleaf-open-admin-platform Show documentation
Show all versions of broadleaf-open-admin-platform Show documentation
BroadleafCommerce Open Admin Platform
/*
* Copyright 2008-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.broadleafcommerce.openadmin.server.security.domain;
import org.broadleafcommerce.common.sandbox.domain.SandBox;
import java.io.Serializable;
import java.util.Set;
/**
*
* @author jfischer
*
*/
public interface AdminUser extends Serializable {
public Long getId();
public String getName();
public void setName(String name);
public String getLogin();
public void setLogin(String login);
public String getPassword();
public void setPassword(String password);
public String getEmail();
public void setEmail(String email);
public Set getAllRoles();
public void setAllRoles(Set allRoles);
public String getUnencodedPassword();
public void setUnencodedPassword(String unencodedPassword);
/**
* Stores the user's phone number.
* @param phone
*/
public void setPhoneNumber(String phone);
/**
* Returns the users phone number.
* @return
*/
public String getPhoneNumber();
/**
* Sets the users active status. A user whose active status is set to false
* will not be able to login.
*
* @param activeStatus
*/
public void setActiveStatusFlag(Boolean activeStatus);
/**
* Returns the users active status. A user whose active status is set to
* false will not be able to login.
*
* @return
*/
public Boolean getActiveStatusFlag();
/**
* The current sandbox associated with this user.
* This is primarily intended to be used by the BLC-CMS workflow
* processes.
*
* If null, the user is using their own SandBox.
*
* @return
*/
public SandBox getOverrideSandBox();
/**
* Overrides the user's sandbox. This could be used
* to setup shared sandboxes. Setting to null will
* mean that the user is setup to use the sandbox associated
* with their user.
*
* @param sandbox
*/
public void setOverrideSandBox(SandBox sandbox);
public Set getAllPermissions();
public void setAllPermissions(Set allPermissions);
}