public RunServiceAuthorization(BimServer bimServer, long uoid, long soid) { super(bimServer.getServerSettingsCache().getServerSettings().getSessionTimeOutSeconds(), TimeUnit.SECONDS); this.soid = soid; this.setUoid(uoid); }
public SingleProjectAuthorization(BimServer bimServer, long uoid, long poid) { super(bimServer.getServerSettingsCache().getServerSettings().getSessionTimeOutSeconds(), TimeUnit.SECONDS); this.setUoid(uoid); this.poid = poid; }
@Override public BasicServerInfo getBasicServerInfo() { BasicServerInfo basicServerInfo = new BasicServerInfo(getServerSettingsCache().getServerSettings().getSiteAddress()); return basicServerInfo; } }
@Override public String getSiteAddress() throws ServerException, UserException { requireAdminAuthenticationAndRunningServer(); return getBimServer().getServerSettingsCache().getServerSettings().getSiteAddress(); }
@Override public String getSmtpServer() throws ServerException, UserException { requireAdminAuthenticationAndRunningServer(); return getBimServer().getServerSettingsCache().getServerSettings().getSmtpServer(); }
@Override public Boolean isCacheOutputFiles() throws ServerException, UserException { requireAdminAuthenticationAndRunningServer(); return getBimServer().getServerSettingsCache().getServerSettings().getCacheOutputFiles(); }
@Override public Integer getProtocolBuffersPort() throws ServerException, UserException { requireAdminAuthenticationAndRunningServer(); return getBimServer().getServerSettingsCache().getServerSettings().getProtocolBuffersPort(); }
@Override public Boolean isAllowUsersToCreateTopLevelProjects() throws ServerException, UserException { requireAuthentication(); return getBimServer().getServerSettingsCache().getServerSettings().isAllowUsersToCreateTopLevelProjects(); }
@Override public Boolean isCheckinMergingEnabled() throws ServerException, UserException { requireAuthentication(); return getBimServer().getServerSettingsCache().getServerSettings().getCheckinMergingEnabled(); }
@Override public String getServiceRepositoryUrl() throws ServerException, UserException { requireRealUserAuthentication(); return getBimServer().getServerSettingsCache().getServerSettings().getServiceRepositoryUrl(); }
@Override public Boolean isHideUserListForNonAdmin() throws ServerException, UserException { requireAuthentication(); return getBimServer().getServerSettingsCache().getServerSettings().getHideUserListForNonAdmin(); }
@Override public Boolean isPluginStrictVersionChecking() throws ServerException, UserException { requireAuthentication(); return getBimServer().getServerSettingsCache().getServerSettings().isPluginStrictVersionChecking(); }
@Override public String getEmailSenderAddress() throws ServerException, UserException { requireAdminAuthenticationAndRunningServer(); return getBimServer().getServerSettingsCache().getServerSettings().getEmailSenderAddress(); }
@Override public Boolean isSendConfirmationEmailAfterRegistration() throws ServerException, UserException { requireAdminAuthenticationAndRunningServer(); return getBimServer().getServerSettingsCache().getServerSettings().isSendConfirmationEmailAfterRegistration(); }
@Override public Boolean isGenerateGeometryOnCheckin() throws ServerException, UserException { requireAdminAuthenticationAndRunningServer(); return getBimServer().getServerSettingsCache().getServerSettings().isGenerateGeometryOnCheckin(); }
public SWebModulePluginConfiguration getDefaultWebModule() throws ServerException, UserException { requireRealUserAuthentication(); WebModulePluginConfiguration defaultWebModule = getBimServer().getServerSettingsCache().getServerSettings().getWebModule(); return getBimServer().getSConverter().convertToSObject(defaultWebModule); }
public ExplicitRightsAuthorization(BimServer bimServer, long uoid, long soid, long[] readRevisionRoids, long writeProjectPoid, long readExtendedDataRoid, long writeExtendedDataRoid) { super(bimServer.getServerSettingsCache().getServerSettings().getSessionTimeOutSeconds(), TimeUnit.SECONDS); this.soid = soid; this.setUoid(uoid); this.setReadRevisionRoids(readRevisionRoids); this.setWriteProjectPoid(writeProjectPoid); this.setReadExtendedDataRoid(readExtendedDataRoid); this.setWriteExtendedDataRoid(writeExtendedDataRoid); }
@Override public SPluginBundle getPluginBundle(String repository, String groupId, String artifactId) throws UserException, ServerException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return session.executeAndCommitAction(new GetPluginBundle(session, getInternalAccessMethod(), getBimServer(), repository, groupId, artifactId, getBimServer().getServerSettingsCache().getServerSettings().isPluginStrictVersionChecking())); } catch (Exception e) { return handleException(e); } finally { session.close(); } }
@Override public List<SPluginBundle> getAvailablePluginBundles() throws UserException, ServerException { requireRealUserAuthentication(); DatabaseSession session = getBimServer().getDatabase().createSession(); try { return session.executeAndCommitAction( new GetAvailablePluginBundles(session, getInternalAccessMethod(), getBimServer(), getBimServer().getServerSettingsCache().getServerSettings().isPluginStrictVersionChecking())); } catch (Exception e) { return handleException(e); } finally { session.close(); } }