Search in sources :

Example 11 with ImporterBootstrap

use of org.alfresco.repo.importer.ImporterBootstrap in project acs-community-packaging by Alfresco.

the class Application method getInviteEmailTemplatesFolderName.

/**
 * Returns the Invite Email Templates folder name
 *
 * @param context The spring context
 * @return The invite email folder name
 */
private static String getInviteEmailTemplatesFolderName(WebApplicationContext context) {
    if (inviteEmailTemplatesFolderName == null) {
        ImporterBootstrap bootstrap = (ImporterBootstrap) context.getBean(BEAN_IMPORTER_BOOTSTRAP);
        Properties configuration = bootstrap.getConfiguration();
        inviteEmailTemplatesFolderName = configuration.getProperty("spaces.templates.email.invite1.childname");
    }
    return inviteEmailTemplatesFolderName;
}
Also used : Properties(java.util.Properties) ImporterBootstrap(org.alfresco.repo.importer.ImporterBootstrap)

Example 12 with ImporterBootstrap

use of org.alfresco.repo.importer.ImporterBootstrap in project acs-community-packaging by Alfresco.

the class Application method getRepositoryStoreRef.

/**
 * Returns the repository store URL
 *
 * @param context The spring context
 * @return The repository store URL to use
 */
private static StoreRef getRepositoryStoreRef(WebApplicationContext context) {
    if (repoStoreRef == null) {
        ImporterBootstrap bootstrap = (ImporterBootstrap) context.getBean(BEAN_IMPORTER_BOOTSTRAP);
        repoStoreRef = bootstrap.getStoreRef();
    }
    return repoStoreRef;
}
Also used : ImporterBootstrap(org.alfresco.repo.importer.ImporterBootstrap)

Example 13 with ImporterBootstrap

use of org.alfresco.repo.importer.ImporterBootstrap in project acs-community-packaging by Alfresco.

the class Application method getGlossaryFolderName.

/**
 * Returns the glossary folder name
 *
 * @param context The spring context
 * @return The glossary folder name
 */
private static String getGlossaryFolderName(WebApplicationContext context) {
    if (glossaryFolderName == null) {
        ImporterBootstrap bootstrap = (ImporterBootstrap) context.getBean(BEAN_IMPORTER_BOOTSTRAP);
        Properties configuration = bootstrap.getConfiguration();
        glossaryFolderName = configuration.getProperty("spaces.dictionary.childname");
    }
    return glossaryFolderName;
}
Also used : Properties(java.util.Properties) ImporterBootstrap(org.alfresco.repo.importer.ImporterBootstrap)

Example 14 with ImporterBootstrap

use of org.alfresco.repo.importer.ImporterBootstrap in project acs-community-packaging by Alfresco.

the class Application method getRootPath.

/**
 * Returns the root path for the application
 *
 * @param context The spring context
 * @return The application root path
 */
private static String getRootPath(WebApplicationContext context) {
    if (rootPath == null) {
        ImporterBootstrap bootstrap = (ImporterBootstrap) context.getBean(BEAN_IMPORTER_BOOTSTRAP);
        Properties configuration = bootstrap.getConfiguration();
        rootPath = configuration.getProperty("spaces.company_home.childname");
    }
    return rootPath;
}
Also used : Properties(java.util.Properties) ImporterBootstrap(org.alfresco.repo.importer.ImporterBootstrap)

Example 15 with ImporterBootstrap

use of org.alfresco.repo.importer.ImporterBootstrap in project acs-community-packaging by Alfresco.

the class Application method getGuestHomeFolderName.

/**
 * Returns the Guest Home folder name name
 *
 * @param context The spring context
 * @return The Guest Home folder name
 */
private static String getGuestHomeFolderName(WebApplicationContext context) {
    if (guestHomeFolderName == null) {
        ImporterBootstrap bootstrap = (ImporterBootstrap) context.getBean(BEAN_IMPORTER_BOOTSTRAP);
        Properties configuration = bootstrap.getConfiguration();
        guestHomeFolderName = configuration.getProperty("spaces.guest_home.childname");
    }
    return guestHomeFolderName;
}
Also used : Properties(java.util.Properties) ImporterBootstrap(org.alfresco.repo.importer.ImporterBootstrap)

Aggregations

ImporterBootstrap (org.alfresco.repo.importer.ImporterBootstrap)20 Properties (java.util.Properties)18 ArrayList (java.util.ArrayList)7 AlfrescoRuntimeException (org.alfresco.error.AlfrescoRuntimeException)2 SQLException (java.sql.SQLException)1 RetryingTransactionCallback (org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback)1 WorkflowDeployer (org.alfresco.repo.workflow.WorkflowDeployer)1 SiteInfo (org.alfresco.service.cmr.site.SiteInfo)1 Descriptor (org.alfresco.service.descriptor.Descriptor)1