@AvailableWhenTenantIsPaused public class ThemeAPIImpl implements ThemeAPI {
protected boolean isMethodAvailableOnRunningTenant(final boolean tenantRunning, final AvailableWhenTenantIsPaused annotation) { return tenantRunning && (annotation == null || !annotation.only()); }
@AvailableWhenTenantIsPaused public class ThemeAPIImpl implements ThemeAPI {
protected boolean isMethodAvailableOnRunningTenant(final boolean tenantRunning, final AvailableWhenTenantIsPaused annotation) { return tenantRunning && (annotation == null || !annotation.only()); }
@AvailableWhenTenantIsPaused public class PageAPIImpl implements PageAPI {
@Override @AvailableWhenTenantIsPaused public TenantResource getBusinessDataModelResource() { return getTenantResource(TenantResourceType.BDM); }
@AvailableWhenTenantIsPaused public class PageAPIImpl implements PageAPI {
@Override @AvailableWhenTenantIsPaused public void pause() throws UpdateException { setTenantPaused(true); }
@Override @AvailableWhenTenantIsPaused public TenantResource getBusinessDataModelResource() { return getTenantResource(TenantResourceType.BDM); }
@Override @AvailableWhenTenantIsPaused public void pause() throws UpdateException { setTenantPaused(true); }
@AvailableWhenTenantIsPaused public class ProfileAPIImpl implements ProfileAPI {
@AvailableWhenTenantIsPaused public class ProfileAPIImpl implements ProfileAPI {
@Override @AvailableWhenTenantIsPaused public void resume() throws UpdateException { setTenantPaused(false); resolveDependenciesForAllProcesses(); }
@Override @AvailableWhenTenantIsPaused public void resume() throws UpdateException { setTenantPaused(false); resolveDependenciesForAllProcesses(); }
@AvailableWhenTenantIsPaused public class IdentityAPIImpl implements IdentityAPI {
@AvailableWhenTenantIsPaused public class IdentityAPIImpl implements IdentityAPI {
@Override @CustomTransactions @AvailableWhenTenantIsPaused public APISession login(final String userName, final String password) throws LoginException { try { return loginInternal(userName, password, null); } catch (final LoginException e) { throw e; } catch (final Exception e) { throw new LoginException(e); } }
@Override @CustomTransactions @AvailableWhenTenantIsPaused public APISession login(final String userName, final String password) throws LoginException { try { return loginInternal(userName, password, null); } catch (final LoginException e) { throw e; } catch (final Exception e) { throw new LoginException(e); } }
@Override @CustomTransactions @AvailableWhenTenantIsPaused public APISession login(final Map<String, Serializable> credentials) throws LoginException, UnknownUserException { checkCredentialsAreNotNullOrEmpty(credentials); try { final Long tenantId = NumberUtils.isNumber(String.valueOf(credentials.get(AuthenticationConstants.BASIC_TENANT_ID))) ? NumberUtils.toLong(String .valueOf(credentials.get(AuthenticationConstants.BASIC_TENANT_ID))) : null; return loginInternal(tenantId, credentials); } catch (final LoginException e) { throw e; } catch (final Exception e) { throw new LoginException(e); } }
@CustomTransactions @AvailableWhenTenantIsPaused protected APISession login(final String userName, final String password, final Long tenantId) throws LoginException { try { return loginInternal(userName, password, tenantId); } catch (final LoginException e) { throw e; } catch (final Exception e) { throw new LoginException(e); } }