Class DefaultSilverpeasComponentInstanceProvider
- java.lang.Object
-
- org.silverpeas.core.admin.component.service.DefaultSilverpeasComponentInstanceProvider
-
- All Implemented Interfaces:
SilverpeasComponentInstanceProvider
@Provider public class DefaultSilverpeasComponentInstanceProvider extends Object implements SilverpeasComponentInstanceProvider
- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description DefaultSilverpeasComponentInstanceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<SilverpeasComponentInstance>
getById(String componentInstanceId)
Gets a any silverpeas component instance from the specified identifier.String
getComponentName(String componentInstanceId)
Gets the name of the component from which the specified instance was spawn.Optional<SilverpeasPersonalComponentInstance>
getPersonalById(String personalComponentInstanceId)
Gets a personal silverpeas component instance from the specified identifier.Optional<SilverpeasSharedComponentInstance>
getSharedById(String sharedComponentInstanceId)
Gets a shared silverpeas component instance from the specified identifier.
-
-
-
Method Detail
-
getById
public Optional<SilverpeasComponentInstance> getById(String componentInstanceId)
Description copied from interface:SilverpeasComponentInstanceProvider
Gets a any silverpeas component instance from the specified identifier.- Specified by:
getById
in interfaceSilverpeasComponentInstanceProvider
- Parameters:
componentInstanceId
- a component instance identifier as string.- Returns:
- an optional silverpeas component instance of
SilverpeasComponentInstance
.
-
getSharedById
public Optional<SilverpeasSharedComponentInstance> getSharedById(String sharedComponentInstanceId)
Description copied from interface:SilverpeasComponentInstanceProvider
Gets a shared silverpeas component instance from the specified identifier.- Specified by:
getSharedById
in interfaceSilverpeasComponentInstanceProvider
- Parameters:
sharedComponentInstanceId
- a shared component instance identifier as string.- Returns:
- an optional silverpeas shared component instance of
SilverpeasPersonalComponentInstance
.
-
getPersonalById
public Optional<SilverpeasPersonalComponentInstance> getPersonalById(String personalComponentInstanceId)
Description copied from interface:SilverpeasComponentInstanceProvider
Gets a personal silverpeas component instance from the specified identifier.- Specified by:
getPersonalById
in interfaceSilverpeasComponentInstanceProvider
- Parameters:
personalComponentInstanceId
- a personal component instance identifier as string.- Returns:
- an optional silverpeas personal component instance of
SilverpeasPersonalComponentInstance
.
-
getComponentName
public String getComponentName(String componentInstanceId)
Description copied from interface:SilverpeasComponentInstanceProvider
Gets the name of the component from which the specified instance was spawn. The component instance identifier is made up of the name of the component with a local identifier that is peculiar to the type of the component. This method is a centralized way to get the component name from a component instance identifier.- Specified by:
getComponentName
in interfaceSilverpeasComponentInstanceProvider
- Parameters:
componentInstanceId
- the unique identifier of the component instance.- Returns:
-
-