Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 uid=1(daemon) gid=1(daemon) grupos=1(daemon) Safe-mode: OFF (not secure) /opt/apex_led/www/js/shindig/features/src/main/javascript/features/opensocial-reference/ drwxrwxr-x | |
| Viewing file: Select action/file-type: /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*global opensocial */
/**
* @fileoverview Representation of an group of people ids.
*/
/**
* @class
* Base interface for all id spec objects.
*
* @name opensocial.IdSpec
*/
/**
* Base interface for all id spec objects. Use this class when specifying which
* people you want to fetch.
*
* For example, opensocial.newIdSpec({userId : 'VIEWER', groupId : 'FRIENDS'})
* means you are looking for all of the viewer's friends.
* For example, opensocial.newIdSpec({userId : 'VIEWER',
* groupId : 'FRIENDS', networkDistance : 2})
* means you are looking for all of the viewer's friends of friends.
* For example, opensocial.newIdSpec({userId : 'OWNER'})
* means you are looking for the owner.
*
* Private, see opensocial.newIdSpec() for usage.
*
* @private
* @constructor
*/
opensocial.IdSpec = function(opt_params) {
this.fields_ = opt_params || {};
};
/**
* @static
* @class
* All of the fields that id specs can have.
*
* <p>
* <b>See also:</b>
* <a
* href="opensocial.IdSpec.html#getField">opensocial.IdSpec.getField()</a>
* </p>
*
* @name opensocial.IdSpec.Field
*/
opensocial.IdSpec.Field = {
/**
* A string or an array of strings representing the user id. Can be
* one of the opensocial.IdSpec.PersonId values.
* @member opensocial.IdSpec.Field
*/
USER_ID : 'userId',
/**
* A string representing the group id or one of the
* opensocial.IdSpec.GroupId values. Defaults to SELF.
* @member opensocial.IdSpec.Field
*/
GROUP_ID : 'groupId',
/**
* An optional numeric parameter, used to specify how many "hops"
* are allowed between two people still considered part of the
* same group.
* Defaults to 1 (they must be the same person or
* directly be connected by the group).
*
* Not all containers will support networkDistances greater than 1.
*
* @member opensocial.IdSpec.Field
*/
NETWORK_DISTANCE : 'networkDistance'
};
/**
* @static
* @class
* Constant person IDs available when fetching person information.
*
* @name opensocial.IdSpec.PersonId
*/
opensocial.IdSpec.PersonId = {
/**
* @member opensocial.IdSpec.PersonId
*/
OWNER : 'OWNER',
/**
* @member opensocial.IdSpec.PersonId
*/
VIEWER : 'VIEWER'
};
/**
* @static
* @class
* Constant group IDs available when fetching collections of people.
*
* @name opensocial.IdSpec.GroupId
*/
opensocial.IdSpec.GroupId = {
/**
* @member opensocial.IdSpec.GroupId
*/
SELF : 'SELF',
/**
* @member opensocial.IdSpec.GroupId
*/
FRIENDS : 'FRIENDS',
/**
* @member opensocial.IdSpec.GroupId
*/
ALL : 'ALL'
};
/**
* Gets the id spec's data that's associated with the specified key.
*
* @param {String} key The key to get data for;
* see the <a href="opensocial.IdSpec.Field.html">Field</a> class
* for possible values
* @param {Map.<opensocial.DataRequest.DataRequestFields, Object>}
* opt_params Additional
* <a href="opensocial.DataRequest.DataRequestFields.html">params</a>
* to pass to the request.
* @return {String} The data
* @member opensocial.IdSpec
*/
opensocial.IdSpec.prototype.getField = function(key, opt_params) {
return opensocial.Container.getField(this.fields_, key, opt_params);
};
/**
* Sets data for this id spec associated with the given key.
*
* @param {String} key The key to set data for
* @param {String} data The data to set
*/
opensocial.IdSpec.prototype.setField = function(key, data) {
return (this.fields_[key] = data);
};
|
:: Command execute :: | |
--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4799 ]-- |