Package com.sogou.qadev.service.cynthia.bean

Examples of com.sogou.qadev.service.cynthia.bean.Right


   */
  public void removeRight(String username) {
    Iterator it=this.rightSet.iterator();
    while(it.hasNext())
    {
      Right rt = (Right)it.next();
      if(rt.username.equals(username)){
        it.remove();
      }
    }
  }
View Full Code Here


   * @param templateId
   * @param roleId
   * @see com.sogou.qadev.service.cynthia.bean.Flow#removeRight(java.lang.String, com.sogou.qadev.service.cynthia.bean.UUID, com.sogou.qadev.service.cynthia.bean.UUID)
   */
  public void removeRight(String username, UUID templateId, UUID roleId){
    this.rightSet.remove(new Right(username, templateId, roleId));
  }
View Full Code Here

     
      UUID templateId = daf.createUUID(XMLUtil.getSingleNodeTextContent(rightNode, "templateId"));
      if (templateId == null) {
        continue;
      }
      this.rightSet.add(new Right(username, templateId, roleId));
    }
  }
View Full Code Here

   * @param templateId
   * @param roleId
   * @see com.sogou.qadev.service.cynthia.bean.Flow#addRight(java.lang.String, com.sogou.qadev.service.cynthia.bean.UUID, com.sogou.qadev.service.cynthia.bean.UUID)
   */
  public void addRight(String username, UUID templateId, UUID roleId){
    this.rightSet.add(new Right(username, templateId, roleId));
  }
View Full Code Here

   * @param roleId
   * @return
   * @see com.sogou.qadev.service.cynthia.bean.Flow#hasRight(java.lang.String, com.sogou.qadev.service.cynthia.bean.UUID, com.sogou.qadev.service.cynthia.bean.UUID)
   */
  public boolean hasRight(String username, UUID templateId, UUID roleId){
    return this.rightSet.contains(new Right(username, templateId, roleId));
  }
View Full Code Here

TOP

Related Classes of com.sogou.qadev.service.cynthia.bean.Right

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.