User.java revision bee2440354b4bc8796e1de0b6cbd60e1f68deba0
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: User.java,v 1.5 2009/01/28 05:34:51 ww203982 Exp $
*
* Portions Copyright 2015 ForgeRock AS.
*/
/**
* Represents a user entry in UMS.
*
* @supported.api
*/
public class User extends PersistentObject {
static {
}
/**
* No args constructor; used to construct the right object as entries are
* read from persistent storage.
*
*/
protected User() throws UMSException {
super();
}
/**
* Construct user entry from session and a given guid.
*
* @param session
* authenticated session maintained by Session Manager
* @param guid
* globally unique identifier for the entity
*/
verifyClass();
}
/**
* Construct User object without a session. Unlike the constructor with a
* session parameter; this one simply creates a User object in memory, using
* the default template. The save() method must be called to save the object
* to the persistent store.
*
* @param attrSet
*
*/
}
/**
* Construct User object without session. Unlike constructor with session,
* this one simply creates a User object in memory. Call the save() method
* to save the object to data store.
*
* @param template
* template to the User
* @param attrSet
*
* @supported.api
*/
{
}
/**
* Return uid for the user
*
* @return uid of the user
*
* @supported.api
*/
}
/**
* Return attribute set according to a supplied search template. The search
* template is used as attribute retrieval guidelines.
*
* @param template
* Search template
* @return attribute set with attribute names defined in the template
*
* @supported.api
*/
}
return attrSet;
}
/**
* Return groups that the user is a member of. If the user is not a member
* of a group as indicated in the "memberof" attribute in the user entry,
* null is returned for this method.
*
* @return String representation of guid for the group(s) that the user is a
* member of; null if the user is not recorded as a member of any
* group.
*
* @supported.api
*/
return null;
} else {
return memberOfGroups.getStringValues();
}
}
/**
* Get the access rights associated with the user; this will return an
* aggregation of all the attribute access rights granted by each of the
* user's roles. The aggregation will only include from the 'guid' parameter
* on up the DIT.
*
* @param guid
* The starting location of the role (rights) aggregation.
* @return AccessRightObject associated with the user
*
* @supported.api
*/
if (debug.messageEnabled()) {
}
if (debug.messageEnabled()) {
}
continue;
roleGuid);
if (debug.messageEnabled()) {
}
}
}
return aro;
}
}