com.github.dynamicextensionsalfresco.annotations.RunAs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations Show documentation
Show all versions of annotations Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.alfresco.repo.security.authentication.AuthenticationUtil;
/**
* Indicates methods that are run as a given user.
*
* The implementation uses Spring AOP. See the {@link Transactional} documentation for limitations regarding Spring AOP.
*
* @author Laurens Fridael
* @see AuthenticationUtil#runAs(org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork, String)
*
*/
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface RunAs {
/**
* The user to run this method as.
*
* @return
*/
String value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy