Package com.starbase.starteam

Examples of com.starbase.starteam.User


     *
     * @param userID a user's ID
     * @return the name of the user with ID userID
     */
    protected final String getUserName(int userID) {
        User u = this.server.getUser(userID);
        if (null == u) {
            return "";
        }
        return u.getName();
    }
View Full Code Here


     *
     * @param userID a user's ID
     * @return the name of the user with ID userID
     */
    protected String getUserName(int userID) {
        User u = this.server.getUser(userID);
        if (null == u) {
            return "";
        }
        return u.getName();
    }
View Full Code Here

     *
     * @param userID a user's ID
     * @return the name of the user with ID userID
     */
    protected final String getUserName(int userID) {
        User u = this.server.getUser(userID);
        if (null == u) {
            return "";
        }
        return u.getName();
    }
View Full Code Here

     * Adds the revision to the modification set.
     *
     * @param revision
     */
    private void addRevision(File revision, String status) {
        User user = revision.getServer().getUser(revision.getModifiedBy());

        if ((user != null) && (user.getName().equals("BuildMaster"))) {
            return;
        }

        Modification mod = new Modification();
        mod.type = "StarTeam";
        String fileName = revision.getName();
        String folderName = revision.getParentFolder().getFolderHierarchy();
        Modification.ModifiedFile modFile = mod.createModifiedFile(fileName, folderName);
        modFile.action = status;
        mod.modifiedTime = revision.getModifiedTime().createDate();
        mod.userName = user.getName();
        mod.comment = revision.getComment();

        //  Only get emails for users still on the system
        if (user != null && canLookupEmails) {

            // Try to obtain email to add.  This is only allowed if logged on
            // user is SERVER ADMINISTRATOR
            try {
                // check if user account exists
                UserAccount useracct =
                    user.getServer().getAdministration().findUserAccount(user.getID());
                if (useracct == null) {
                    LOG.warn("User account " + user.getID() + " not found for email address.");
                } else {
                    mod.emailAddress = useracct.getEmailAddress();
                }
            } catch (ServerException sx) {
                // Logged on user does not have permission to get user's email.
View Full Code Here

     * Adds the revision to the modification set.
     *
     * @param revision
     */
    private void addRevision(File revision, String status) {
        User user = revision.getServer().getUser(revision.getModifiedBy());

        if ((user != null) && (user.getName().equals("BuildMaster"))) {
            return;
        }

        Modification mod = new Modification();
        mod.type = status;
        mod.fileName = revision.getName();
        mod.folderName = revision.getParentFolder().getFolderHierarchy();
        mod.modifiedTime = revision.getModifiedTime().createDate();
        mod.userName = user.getName();
        mod.comment = revision.getComment();

        //  Only get emails for users still on the system
        if (user != null && canLookupEmails) {

            // Try to obtain email to add.  This is only allowed if logged on
            // user is SERVER ADMINISTRATOR
            try {
                // check if user account exists
                UserAccount useracct =
                    user.getServer().getAdministration().findUserAccount(user.getID());
                if (useracct == null) {
                    LOG.warn("User account " + user.getID() + " not found for email address.");
                } else {
                    mod.emailAddress = useracct.getEmailAddress();
                }
            } catch (ServerException sx) {
                // Logged on user does not have permission to get user's email.
View Full Code Here

     *
     * @param userID a user's ID
     * @return the name of the user with ID userID
     */
    protected final String getUserName(int userID) {
        User u = this.server.getUser(userID);
        if (null == u) {
            return "";
        }
        return u.getName();
    }
View Full Code Here

     *
     * @param userID a user's ID
     * @return the name of the user with ID userID
     */
    protected final String getUserName(int userID) {
        User u = this.server.getUser(userID);
        if (null == u) {
            return "";
        }
        return u.getName();
    }
View Full Code Here

     *
     * @param userID a user's ID
     * @return the name of the user with ID userID
     */
    protected final String getUserName(int userID) {
        User u = this.server.getUser(userID);
        if (null == u) {
            return "";
        }
        return u.getName();
    }
View Full Code Here

TOP

Related Classes of com.starbase.starteam.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.