Class ProfileServiceImpl
- java.lang.Object
-
- org.jbpm.designer.web.profile.impl.ProfileServiceImpl
-
- All Implemented Interfaces:
IDiagramProfileService
@ApplicationScoped public class ProfileServiceImpl extends Object implements IDiagramProfileService
a service to register profiles.
-
-
Constructor Summary
Constructors Constructor Description ProfileServiceImpl()
ProfileServiceImpl(javax.enterprise.inject.Instance<IDiagramProfile> profiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDiagramProfile
findProfile(javax.servlet.http.HttpServletRequest request, String name)
Set<IDiagramProfileFactory>
getFactories()
Collection<IDiagramProfile>
getProfiles(javax.servlet.http.HttpServletRequest request)
void
init(javax.servlet.ServletContext context)
Initialize the service with a context
-
-
-
Constructor Detail
-
ProfileServiceImpl
public ProfileServiceImpl()
-
ProfileServiceImpl
@Inject public ProfileServiceImpl(@Any javax.enterprise.inject.Instance<IDiagramProfile> profiles)
-
-
Method Detail
-
init
public void init(javax.servlet.ServletContext context)
Initialize the service with a context- Specified by:
init
in interfaceIDiagramProfileService
- Parameters:
context
- the servlet context to initialize the profile.
-
findProfile
public IDiagramProfile findProfile(javax.servlet.http.HttpServletRequest request, String name)
- Specified by:
findProfile
in interfaceIDiagramProfileService
- Parameters:
request
- the contextname
- the name of the profile- Returns:
- the profile with the name in the context of that request
-
getProfiles
public Collection<IDiagramProfile> getProfiles(javax.servlet.http.HttpServletRequest request)
- Specified by:
getProfiles
in interfaceIDiagramProfileService
- Parameters:
request
- the context- Returns:
- the profiles for the given context.
-
getFactories
public Set<IDiagramProfileFactory> getFactories()
-
-