Class FriendPolicy
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.server.process.scheme.model.FriendPolicy
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("http://www.sodius.com/ns/process/scheme#")
@OslcResourceShape(title="Friend Policy Resource Shape",
describes="http://www.sodius.com/ns/process/scheme#FriendPolicy")
public class FriendPolicy
extends AbstractResource
Describes the policies of a friend application.
- Since:
- 3.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceTypePolicy(ResourceTypePolicy resourceTypePolicy) Indicates whether link previews of this friend are displayed without their title bar.Indicates whether the large preview of this friend links is displayed first, instead of the small preview.Indicates whether users are prevented from switching between the small and large preview of this friend links.voidsetCompactFetchedOnDemand(Boolean compactFetchedOnDemand) voidsetFramelessPreview(Boolean framelessPreview) Sets whether link previews of this friend are displayed without their title bar.voidvoidsetFriendDisabled(Boolean friendDisabled) voidsetLargePreview(Boolean largePreview) Sets whether the large preview of this friend links is displayed first, instead of the small preview.voidsetLinkAppearanceDisabled(Boolean linkAppearanceDisabled) voidsetResourceTypePolicies(List<ResourceTypePolicy> resourceTypePolicies) voidsetSinglePreview(Boolean singlePreview) Sets whether users are prevented from switching between the small and large preview of this friend links.Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
FriendPolicy
public FriendPolicy()
-
-
Method Details
-
getFriend
@OslcOccurs(ExactlyOne) @OslcValueType(LocalResource) @OslcPropertyDefinition("http://www.sodius.com/ns/process/scheme#friend") public Friend getFriend() -
setFriend
-
isFriendDisabled
@OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcPropertyDefinition("http://www.sodius.com/ns/process/scheme#friendDisabled") public Boolean isFriendDisabled() -
setFriendDisabled
-
isLinkAppearanceDisabled
@OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcPropertyDefinition("http://www.sodius.com/ns/process/scheme#linkAppearanceDisabled") public Boolean isLinkAppearanceDisabled() -
setLinkAppearanceDisabled
-
isCompactFetchedOnDemand
@OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcPropertyDefinition("http://www.sodius.com/ns/process/scheme#compactFetchedOnDemand") public Boolean isCompactFetchedOnDemand() -
setCompactFetchedOnDemand
-
isFramelessPreview
@OslcName("framelessPreview") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcPropertyDefinition("http://www.sodius.com/ns/process/scheme#framelessPreview") public Boolean isFramelessPreview()Indicates whether link previews of this friend are displayed without their title bar.- Returns:
trueif previews are displayed without their title bar.- Since:
- 4.2.0
-
setFramelessPreview
Sets whether link previews of this friend are displayed without their title bar.- Parameters:
framelessPreview-trueto display previews without their title bar.- Since:
- 4.2.0
-
isSinglePreview
@OslcName("singlePreview") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcPropertyDefinition("http://www.sodius.com/ns/process/scheme#singlePreview") public Boolean isSinglePreview()Indicates whether users are prevented from switching between the small and large preview of this friend links.- Returns:
trueif the preview size switch is removed.- Since:
- 4.2.0
-
setSinglePreview
Sets whether users are prevented from switching between the small and large preview of this friend links.- Parameters:
singlePreview-trueto remove the preview size switch.- Since:
- 4.2.0
-
isLargePreview
@OslcName("largePreview") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcPropertyDefinition("http://www.sodius.com/ns/process/scheme#largePreview") public Boolean isLargePreview()Indicates whether the large preview of this friend links is displayed first, instead of the small preview.- Returns:
trueif the large preview is displayed first.- Since:
- 4.2.0
-
setLargePreview
Sets whether the large preview of this friend links is displayed first, instead of the small preview.- Parameters:
largePreview-trueto display the large preview first.- Since:
- 4.2.0
-
getResourceTypePolicies
@OslcName("resourceTypePolicy") @OslcPropertyDefinition("http://www.sodius.com/ns/process/scheme#resourceTypePolicy") @OslcValueType(LocalResource) public List<ResourceTypePolicy> getResourceTypePolicies() -
addResourceTypePolicy
-
setResourceTypePolicies
-