public final class PerspectiveHandler extends Object
Modifier and Type | Method and Description |
---|---|
List<Perspective> |
getActivatedPerspectives()
Returns all activated perspectives.
|
Perspective |
getAdvancedPerspective()
Returns the advanced perspective.
|
List<Perspective> |
getAllPerspectives()
Returns a list of all defined perspectives.
|
Perspective |
getCurrentPerspective(boolean lookupInParentSession)
Returns the perspective applied in the current session, or recursively in parent
if lookupInParentSession is true.
|
Perspective |
getFavoritePerspective(UserReference aUser)
Returns the favorite perspective for a given user.
|
Perspective |
getPerspective(String aPerspectiveName)
Returns the perspective for the given name.
|
List<Perspective> |
getPerspectives(Profile aProfile)
Returns all activated and allowed perspectives for a given profile.
|
Perspective |
getPerspectiveToApply(UserReference aUser)
Returns the perspective to apply.
|
Perspective |
getRecommendedPerspective(UserReference aUser)
Returns the recommended perspective for a given user.
|
static PerspectiveHandler |
newInstance(Repository repository,
Session aSession)
Returns a new instance of the perspective handler.
|
public static PerspectiveHandler newInstance(Repository repository, Session aSession)
public List<Perspective> getAllPerspectives()
public List<Perspective> getActivatedPerspectives()
public List<Perspective> getPerspectives(Profile aProfile)
aProfile
- identifies a user profile.public Perspective getRecommendedPerspective(UserReference aUser)
null
if:
aUser
- identifies a specific user.public Perspective getFavoritePerspective(UserReference aUser)
null
if:
aUser
- identifies a specific user.public Perspective getPerspectiveToApply(UserReference aUser)
aUser
- identifies a specific user.getRecommendedPerspective(UserReference)
,
getFavoritePerspective(UserReference)
,
getPerspectives(Profile)
public Perspective getAdvancedPerspective()
public Perspective getPerspective(String aPerspectiveName)
null
if no perspective is found.public Perspective getCurrentPerspective(boolean lookupInParentSession)
lookupInParentSession
is false,
may return null
.