public class BasicRightsAssignment extends Object
Modifier and Type | Class and Description |
---|---|
class |
BasicRightsAssignment.RightsChoice |
static class |
BasicRightsAssignment.RightsOption |
Modifier and Type | Field and Description |
---|---|
protected String |
ccCommercialUse |
protected String |
ccModifications |
protected static String |
DELIM |
protected static String |
FIELD_COMMERCIAL_USE |
protected static String |
FIELD_DONE |
protected static String |
FIELD_INFO |
protected static String |
FIELD_MODIFICATIONS |
protected static String |
FIELD_MORE_INFO |
protected static String |
FIELD_MY_CR_OWNER |
protected static String |
FIELD_MY_CR_YEAR |
protected static String |
FIELD_OFFER |
protected static String |
FIELD_OTHER_COMMERCIAL_USE |
protected static String |
FIELD_OTHER_CR_OWNER |
protected static String |
FIELD_OTHER_CR_YEAR |
protected static String |
FIELD_OTHER_MODIFICATIONS |
protected static String |
FIELD_OTHER_OFFER |
protected static String |
FIELD_TERMS |
protected static String |
FIELD_TITLE |
protected static String |
KEY_CREATE_CC |
protected static String |
KEY_CREATE_PD |
protected static String |
KEY_CREATIVE_COMMONS |
protected static String |
KEY_FAIR_USE |
protected static String |
KEY_LABEL |
protected static String |
KEY_MY_COPYRIGHT |
protected static String |
KEY_NO |
protected static String |
KEY_OTHER_COPYRIGHT |
protected static String |
KEY_PUBLIC_DOMAIN |
protected static String |
KEY_SHARE_ALIKE |
protected static String |
KEY_YES |
protected static String[] |
KEYLIST_TERMS |
protected String |
myCopyrightOwner
Member variable representing the name of the copyright holder (copyright holder is this user)
|
protected String |
myCopyrightYear
Member variable representing the year of the copyright (copyright holder is this user)
|
protected String |
name
A unique identifier that can be used in form fields to distinguish this rights obj from others in the same form
|
protected String |
offer
Member variable representing user's secondary choice of how their work is offered to users (full copyright, new CC license, new PD dedication)
|
protected String |
otherCommercialUse |
protected String |
otherCopyrightOwner
Member variable representing the name of the copyright holder (copyright holder is NOT this user)
|
protected String |
otherCopyrightYear
Member variable representing the year of the copyright (copyright holder is NOT this user)
|
protected String |
otherModifications |
protected static String |
PD_URL |
protected static String |
RENDER_AS_CHECKBOX |
protected static String |
RENDER_AS_CHECKBOXES |
protected static String |
RENDER_AS_DATE_INPUT |
protected static String |
RENDER_AS_RADIO_BUTTONS |
protected static String |
RENDER_AS_SELECT |
protected static String |
RENDER_AS_TEXT_INPUT |
protected static String |
RENDER_AS_TEXTAREA |
protected String |
terms
Member variable representing the status of IP rights for this work (user's copyright, someone else's copyright, existing CC license or existing PD status)
|
protected String[] |
user |
protected static String |
USING_CREATIVE_COMMONS |
protected boolean |
usingCreativeCommons
Member variable representing whether we using the new Creative Commons dialog or the old Sakai Copyright dialog
|
Constructor and Description |
---|
BasicRightsAssignment(Element el)
Construct from info in XML in a DOM element.
|
BasicRightsAssignment(String name,
boolean usingCreativeCommons)
Construct
|
BasicRightsAssignment(String name,
ResourceProperties properties)
Construct from info in ResourceProperties.
|
protected static final String RENDER_AS_TEXT_INPUT
protected static final String RENDER_AS_RADIO_BUTTONS
protected static final String RENDER_AS_TEXTAREA
protected static final String RENDER_AS_SELECT
protected static final String RENDER_AS_DATE_INPUT
protected static final String RENDER_AS_CHECKBOX
protected static final String RENDER_AS_CHECKBOXES
protected String[] user
protected static final String USING_CREATIVE_COMMONS
protected static final String PD_URL
protected static final String DELIM
protected static final String FIELD_COMMERCIAL_USE
protected static final String FIELD_DONE
protected static final String FIELD_INFO
protected static final String FIELD_MODIFICATIONS
protected static final String FIELD_MORE_INFO
protected static final String FIELD_MY_CR_OWNER
protected static final String FIELD_MY_CR_YEAR
protected static final String FIELD_OFFER
protected static final String FIELD_OTHER_OFFER
protected static final String FIELD_OTHER_COMMERCIAL_USE
protected static final String FIELD_OTHER_CR_OWNER
protected static final String FIELD_OTHER_CR_YEAR
protected static final String FIELD_OTHER_MODIFICATIONS
protected static final String FIELD_TERMS
protected static final String FIELD_TITLE
protected static final String KEY_CREATE_CC
protected static final String KEY_CREATE_PD
protected static final String KEY_CREATIVE_COMMONS
protected static final String KEY_FAIR_USE
protected static final String KEY_LABEL
protected static final String KEY_MY_COPYRIGHT
protected static final String KEY_NO
protected static final String KEY_OTHER_COPYRIGHT
protected static final String KEY_PUBLIC_DOMAIN
protected static final String KEY_SHARE_ALIKE
protected static final String KEY_YES
protected static final String[] KEYLIST_TERMS
protected String ccCommercialUse
protected String ccModifications
protected String myCopyrightOwner
protected String myCopyrightYear
protected String name
protected String offer
protected String otherCommercialUse
protected String otherCopyrightOwner
protected String otherCopyrightYear
protected String otherModifications
protected String terms
protected boolean usingCreativeCommons
public BasicRightsAssignment(String name, boolean usingCreativeCommons)
name
- A name for this instance that can be used as a unique identifier in rendering a set of form fields
to input values for this object. Should not contain characters that are not valid in id's and names of html
form-input elements.usingCreativeCommons
- true if the Creative Commons License should be shown as an option.public BasicRightsAssignment(Element el)
el
- The XML DOM element.public BasicRightsAssignment(String name, ResourceProperties properties)
properties
- public void captureValues(ParameterParser params)
params
- public String getCcCommercialUse()
public String getCcModifications()
public String getDefaultCopyrightOwner()
public String getDefaultCopyrightYear()
public String getFieldNameCommercialUse()
public String getFieldNameModifications()
public String getFieldNameMyCopyrightOwner()
public String getFieldNameMyCopyrightYear()
public String getFieldNameOffer()
public String getFieldNameOtherCommercialUse()
public String getFieldNameOtherCopyrightOwner()
public String getFieldNameOtherCopyrightYear()
public String getFieldNameOtherModifications()
public String getFieldNameTerms()
public String getInfoCreativeCommons()
public String getInfoMyCopyright()
public String getInfoOtherCopyright()
public String getInfoPublicDomain()
public String getKeyCreativeCommons()
public String getKeyFairUse()
public List getKeylistTerms()
public String getKeyMyCopyright()
public String getKeyNewCreativeCommons()
public String getKeyNewPublicDomain()
public String getKeyNo()
public String getKeyOtherCopyright()
public String getKeyPublicDomain()
protected List getKeys(String[] array)
array
- An array of strings containing the keys.public String getKeyShareAlike()
public String getKeyYes()
public String getLabelCommercialUse()
public String getLabelCommercialUseNo()
public String getLabelCommercialUseYes()
public String getLabelDone()
public String getLabelFairUse()
public String getLabelModifications()
public String getLabelModificationsNo()
public String getLabelModificationsShareAlike()
public String getLabelModificationsYes()
public String getLabelMoreInfo()
public String getLabelMyCopyrightOwner()
public String getLabelMyCopyrightYear()
public String getLabelNewCreativeCommons()
public String getLabelNewPublicDomain()
public String getLabelOtherCommercialUse()
public String getLabelOtherCommercialUseNo()
public String getLabelOtherCommercialUseYes()
public String getLabelOtherCopyrightOwner()
public String getLabelOtherCopyrightYear()
public String getLabelOtherModifications()
public String getLabelOtherModificationsNo()
public String getLabelOtherModificationsShareAlike()
public String getLabelOtherModificationsYes()
public String getLabelTerms()
public String getMyCopyrightOwner()
public String getMyCopyrightYear()
public String getName()
public String getOffer()
public String getOtherCommercialUse()
public String getOtherCopyrightOwner()
public String getOtherCopyrightYear()
public String getOtherModifications()
public String getString(String key)
key
- public String getString(String category, String item)
key
- public String getTerms()
public String getTitleCreativeCommons()
public String getTitleMyCopyright()
public String getTitleOtherCopyright()
public String getTitlePublicDomain()
public boolean getUsingCreativeCommons()
public void setCcCommercialUse(String ccCommercialUse)
ccCommercialUse
- The ccCommercialUse to set.public void setCcModifications(String ccModifications)
ccModifications
- The ccModifications to set.public void setMyCopyrightOwner(String copyrightOwner)
copyrightOwner
- The copyrightOwner to set.public void setMyCopyrightYear(String copyrightYear)
copyrightYear
- The copyrightYear to set.public void setName(String name)
name
- The name to set.public void setOffer(String offer)
offer
- The offer to set.public void setOtherCommercialUse(String otherCommercialUse)
ccCommercialUse
- The ccCommercialUse to set.public void setOtherCopyrightOwner(String otherCopyrightOwner)
otherCopyrightOwner
- The otherCopyrightOwner to set.public void setOtherCopyrightYear(String otherCopyrightYear)
otherCopyrightYear
- The otherCopyrightYear to set.public void setOtherModifications(String otherModifications)
otherModifications
- The otherModifications to set.public void setTerms(String terms)
terms
- The terms to set.public void setUsingCreativeCommons(boolean usingCreativeCommons)
usingCreativeCommons
- The usingCreativeCommons to set.public Element toXml(Document doc, Stack stack)
doc
- The DOM doc to contain the XML (or null for a string return).stack
- The DOM elements, the top of which is the containing element of the new "rightsAssignment" element.public void addResourceProperties(ResourcePropertiesEdit properties)
properties
- Copyright © 2003–2019 The Sakai Foundation. All rights reserved.