List of usage examples for java.lang IllegalAccessException IllegalAccessException
public IllegalAccessException()
IllegalAccessException
without a detail message. From source file:org.pentaho.platform.web.http.api.resources.services.SchedulerService.java
public Job addBlockout(JobScheduleRequest jobScheduleRequest) throws IOException, IllegalAccessException, SchedulerException { if (isScheduleAllowed()) { jobScheduleRequest.setActionClass(BlockoutAction.class.getCanonicalName()); jobScheduleRequest.getJobParameters() .add(getJobScheduleParam(IBlockoutManager.DURATION_PARAM, jobScheduleRequest.getDuration())); jobScheduleRequest.getJobParameters() .add(getJobScheduleParam(IBlockoutManager.TIME_ZONE_PARAM, jobScheduleRequest.getTimeZone())); updateStartDateForTimeZone(jobScheduleRequest); return createJob(jobScheduleRequest); }//w w w. j ava 2 s. c o m throw new IllegalAccessException(); }
From source file:MailHandlerDemo.java
/** * No objects are allowed.//from w w w .j ava 2 s. c om * @throws IllegalAccessException always. */ private MailHandlerDemo() throws IllegalAccessException { throw new IllegalAccessException(); }
From source file:com.aimluck.eip.schedule.util.ScheduleUtils.java
public static void createShareScheduleActivity(EipTSchedule schedule, String loginName, List<String> recipients, String mode, int userid) { try {/*from w w w . j a v a 2 s.co m*/ if (recipients != null && recipients.size() > 0) { ALActivity RecentActivity = ALActivity.getRecentActivity("Schedule", schedule.getScheduleId(), 1f); boolean isDeletePrev = RecentActivity != null && RecentActivity.isReplace(loginName); String message = ""; if ("new".equals(mode)) { message = ALLocalizationUtils.getl10n("SCHEDULE_ADD_A_SCHEDULE"); } else if ("edit".equals(mode)) { message = ALLocalizationUtils.getl10n("SCHEDULE_EDIT_A_SCHEDULE"); } else if ("delete".equals(mode)) { message = ALLocalizationUtils.getl10n("SCHEDULE_DELETE_A_SCHEDULE"); } else { throw new IllegalAccessException(); } String title = new StringBuilder(ALLocalizationUtils.getl10n("SCHEDULE_SCHEDULE_BRACKET")) .append(schedule.getName()).append(message).toString(); String portletParams = new StringBuilder("?template=ScheduleDetailScreen").append("&entityid=") .append(schedule.getScheduleId()).append("&view_date=") .append(ALDateUtil.format(schedule.getStartDate(), "yyyy-MM-dd-00-00")).toString(); ALActivityService.create( new ALActivityPutRequest().withAppId("Schedule").withUserId(userid).withLoginName(loginName) .withPortletParams(portletParams).withRecipients(recipients).withTitle(title) .withPriority(1f).withExternalId(String.valueOf(schedule.getScheduleId()))); if (isDeletePrev) { RecentActivity.delete(); } } } catch (IllegalAccessException e) { } }