Package com.centraview.common

Examples of com.centraview.common.AuthorizationFailedException


   */
  public Collection getAttendeesForEvent(int userID, int eventID)
      throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Events", userID, this.dataSource))
      throw new AuthorizationFailedException("Events - getEvents");

    Collection returnCollection = new ArrayList();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
View Full Code Here


   * @throws NoteException
   */
  public int addNote(int individualID, NoteVO noteVO) throws NoteException, AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Notes", individualID, this.dataSource)) {
      throw new AuthorizationFailedException("Notes - addNote");
    }

    CVDal cvdal = new CVDal(dataSource);

    int noteID = 0;
View Full Code Here

   * @throws NoteException
   */
  public NoteVO getNote(int individualID, int noteID) throws NoteException, AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(individualID, "Notes", noteID, ModuleFieldRightMatrix.VIEW_RIGHT, this.dataSource)) {
      throw new AuthorizationFailedException("User cannot access Notes module.");
    }

    NoteVO noteVO;

    CVDal cvdal = new CVDal(this.dataSource);
View Full Code Here

   * @throws NoteException
   */
  public void updateNote(int individualID, NoteVO noteVO) throws NoteException, AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(individualID, "Notes", noteVO.getNoteId(), ModuleFieldRightMatrix.UPDATE_RIGHT, this.dataSource)) {
      throw new AuthorizationFailedException("User does note have permission to update this Note record.");
    }

    CVDal cvdal = new CVDal(this.dataSource);

    try {
View Full Code Here

   * @return void
   */
  public void deleteNote(int individualID, int noteID) throws AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(individualID, "Notes", noteID, ModuleFieldRightMatrix.DELETE_RIGHT, this.dataSource)) {
      throw new AuthorizationFailedException("User cannot delete this note.");
    }

    CVDal cvdal = new CVDal(this.dataSource);

    try {
View Full Code Here

   * @return NoteList containg the list of note records.
   */
  public NoteList getNoteList(int individualID, HashMap hashmap) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Notes", individualID, this.dataSource)) {
      throw new AuthorizationFailedException("Notes - ListNote");
    }

    Integer intStart = (Integer) hashmap.get("startATparam");
    Integer intEnd = (Integer) hashmap.get("EndAtparam");
    String strSearch = (String) hashmap.get("searchString");
View Full Code Here

  */

   public int addTimeSheet(int indvId , TimeSheetVO tsvo)throws AuthorizationFailedException
   {
     if(!CVUtility.isModuleVisible("Time Sheets",indvId, this.dataSource))
       throw new AuthorizationFailedException("Time Sheets - addTimeSheet");

     CVDal dl = new CVDal(dataSource);
    int timeSheetId = 0;

    try
View Full Code Here


   public void deleteTimeSheet(int individualID, int timesheetID) throws AuthorizationFailedException
   {
     if(!CVUtility.isModuleVisible("Time Sheets",individualID, this.dataSource))
       throw new AuthorizationFailedException("Time Sheets - deleteTimeSheet");

     try
     {
      CVDal dl = new CVDal(dataSource);
      dl.setSql("hr.deletetimesheet");
View Full Code Here

  public void deleteTimeSlip(int individualID, String timeSlipIds) throws AuthorizationFailedException
  {

    if(!CVUtility.isModuleVisible("Time Sheets",individualID, this.dataSource))
      throw new AuthorizationFailedException("Time Sheets - deleteTimeSlip");


    if (timeSlipIds != null)
    {
      int timeSlipIdsLen = timeSlipIds.length();
View Full Code Here


  public int updateTimeSheet(int individualID, TimeSheetVO tsvo) throws AuthorizationFailedException
  {
    if(!CVUtility.isModuleVisible("Time Sheets", individualID, this.dataSource))
      throw new AuthorizationFailedException("Time Sheets - updateTimeSheet");

    int iTimeSheetId = 0;
    try
    {
View Full Code Here

TOP

Related Classes of com.centraview.common.AuthorizationFailedException

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.