Subversion Repositories bacoAlunos

Rev

Rev 119 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package pt.estgp.estgweb.domain;

import java.util.Date;
import java.util.Set;


public abstract class UserManagedRoleImpl extends UserImpl
{

    public UserManagedRoleImpl()
    {

    }
 
    /**
     *
     * @return the managed role of implementation object
     */

    public abstract 1.5.0/docs/api/java/lang/String.html">String getManagedRole();

    /**
     *
     * @return roles of student check first if has student role
     */

    public 1.5.0/docs/api/java/lang/String.html">String getRoles()
    {
        if(super.getRoles() == null)
            super.setRoles(getManagedRole());
        else if(super.getRoles().indexOf(getManagedRole()) < 0)
        {
             addRole(getManagedRole());
        }
        return super.getRoles();
    }
}