Package beans.user.collaborator

Source Code of beans.user.collaborator.CollaboratorRight

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package beans.user.collaborator;

import beans.UserRightsSet;
import framework.beans.security.entities.CollaboratorRightAbstract;
import framework.security.UserRight;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import reportgen.cores.ejb.annotations.DefineQueryEntity;

/**
*
* @author vip
*/
@Entity
@DiscriminatorValue(value="generic")
@DefineQueryEntity(title="Право, закрепленное за сотрудником")
public class CollaboratorRight extends CollaboratorRightAbstract {

    @Override
    public String getInfo() {
        UserRight right = UserRightsSet.getRightFromID(getId().getRightId());
        return right.getDescription();
    }

}
TOP

Related Classes of beans.user.collaborator.CollaboratorRight

TOP
Copyright © 2018 www.massapi.com. 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.